Changes

Jump to: navigation, search

Proc/user beancounters

28 bytes added, 11:12, 11 March 2008
m
Robot: Automated text replacement (-VE +container)
The field '''<code>uid</code>''' is a numeric identifier of the container<ref>The name “uid” is related to the fact that OpenVZ Resource Management can be used without virtualization and containers.</ref>.
For accountable parameters, the field '''<code>held</code>''' shows the current counter for the container (resource “usage”), and the field '''<code>maxheld</code>''' shows the counter's maximum for the last accounting period. The accounting period is usually the lifetime of the container<ref>The lifetime of a container is the period from the start of the VE container till the time all processes in the VE container exited and all resources used by these processes are freed. Usually, the lifetime is just the time between the start and the stop of the container.</ref>.
The field '''<code>failcnt</code>''' shows the number of refused “resource allocations” for the whole lifetime of the process group.
== Reading ==
If you want to print UBC values for a specific VEcontainer, the following construct can be helpful
<nowiki>egrep -A23 '^[[:space:]]+${CTID}:' /proc/user_beancounters</nowiki>
Here <code>${CTID}</code> is the ID of the VE container you are interested in.
In case you want to print UBC values for a few containers at once, set CTID to something like <code>(101|102|103)</code>.
2,253
edits

Navigation menu