View container devices on HN [message #34613] |
Wed, 21 January 2009 00:48  |
sspt
Messages: 100 Registered: August 2006 Location: Portugal
|
Senior Member |
|
|
I'm gathering the container's bandwidth by dumping the data:
vzctl exec CID cat /proc/net/dev
Is there any way I can access to that net device within the HN, without entering into the container?
|
|
|
|
Re: View container devices on HN [message #34638 is a reply to message #34636] |
Thu, 22 January 2009 17:09  |
sspt
Messages: 100 Registered: August 2006 Location: Portugal
|
Senior Member |
|
|
Hi,
I've a script to gather the containers net usage, currently using the following:
vzctl exec CID cat /proc/net/dev
The problem
If the container is reaching it's privvmpages, kmemsize, etc, I won't be able to retreive the data, if the container is restarted in the meantime I won't be able to account the bandwidth usage.
Solution
If was able to access to it (container's /proc/net/dev) from the HN I would be able to gather the data even if the CID is out of resources
|
|
|