Re: [RFC][PATCH] Per container statistics

2007-05-24 Thread Paul Menage
On 5/24/07, Balbir Singh <[EMAIL PROTECTED]> wrote: I thought about this approach, but did not implement the code this way because a system could have thousands of containers and expecting a statistics application to open a file descriptor each time for each container will turn out to be an expe

Re: [RFC][PATCH] Per container statistics

2007-05-24 Thread Balbir Singh
Paul Menage wrote: > Hi Balbir, > > On 5/14/07, Balbir Singh <[EMAIL PROTECTED]> wrote: >> >> This patch implements per container statistics infrastructure and re-uses >> code from the taskstats interface. A new set of container operations are >> registered with commands and attributes. It should

Re: [RFC][PATCH] Per container statistics

2007-05-21 Thread Paul Menage
Hi Balbir, On 5/14/07, Balbir Singh <[EMAIL PROTECTED]> wrote: This patch implements per container statistics infrastructure and re-uses code from the taskstats interface. A new set of container operations are registered with commands and attributes. It should be very easy to extend per contain

Re: [RFC][PATCH] Per container statistics

2007-05-15 Thread Balbir Singh
Kirill Korotaev wrote: > oh, please no... Andrew, this loop can be very very long when having > 10,000 > tasks on the machine... > we have had enough such issues in OpenVZ and just don't want to come through > this again. > Also sum of RUNNING + UNINTERRUPTIBLE is required for per-container loada

Re: [RFC][PATCH] Per container statistics

2007-05-15 Thread Kirill Korotaev
Balbir Singh wrote: > This patch is inspired by the discussion at http://lkml.org/lkml/2007/4/11/187 > and implements per container statistics as suggested by Andrew Morton > in http://lkml.org/lkml/2007/4/11/263. The patch is on top of 2.6.21-mm1 > with Paul's containers v9 patches (forward ported