On Wed, Jan 5, 2011 at 2:14 PM, Sergio Daniel Troiano <sergio.troi...@elserver.com> wrote: > > Hi, > > i'm using LXC and it works excellent! > > The only problem that i found is the information within the container on the > file called /proc/stat is global., > I have got a lot of containers which must send out their stat information (in > special the value called "procs_running") because other server uses those > data to calculate a kind of "load balance". > > I need to know how many processes are running or ready to run diferentiating > each container. > > I've tried to get the total looking up in every /proc/pid/status (Field > "State:") then addend each "running" match i could get the result. > > But it was not possible because my while script has got a high frequency > (it is necesary because i need to get an average) > The result is a high load on my server
you'll want to mount the cgroup filesystem (you probably already have) and look in it for all kinds of goodies and psuedo-files relating to your containers. the one your looking for is called `tasks`. C Anthony ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users