[Lxc-users] /proc/stat

Sergio Daniel Troiano sergio.troiano at elserver.com
Wed Jan 5 20:14:32 UTC 2011


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
  

 I look forward any help

Thanks!
Sergio D. Troiano
Development Team.


Av. de los Incas 3085
(C1426ELA) Capital Federal 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110105/e711d8c2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: elserver.gif
Type: image/gif
Size: 1027 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110105/e711d8c2/attachment.gif>


More information about the lxc-users mailing list