Abilty to read VE /proc without being constrained by UBC [message #8650] |
Thu, 30 November 2006 09:53  |
rickb
Messages: 368 Registered: October 2006
|
Senior Member |
|
|
I know this is a contradiction in some ways, but is it possible to read the /proc filesystem of a VE without invoking "vzctl enter VEID" or is there some way for the UBC not to be applied to the execution?
The reason this would be useful to me, is that I am developing an openvz VE resource reporting tool as posted in the discussions forum. One thing that the application needs to do is read /proc files from each VE such as /proc/net/dev, /proc/stat to read some VE specific statistics. Right now I am running "vzctl exec VEID cat FILE" from on the HN and it works fine most of the time. However if the VE has a resource exhausted such as numfile, privvmpages, kmemsize, the "cat" cannot execute and the stats collection fails.
Ideally we would be able to read each VEs proc directory from something like /proc/VE_PROC/VEID/ from the HN. VE_PROC is just a name I made up for this example. ie, inside VE 50, /proc/stat would be /proc/VE_PROC/50/stat on the HN.
Thanks!
Rick Blundell
-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions
UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
|
|
|
|
|