Editing Proc/user beancounters
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 51: | Line 51: | ||
the <code>limit</code> for the parameter. | the <code>limit</code> for the parameter. | ||
− | == Units == | + | == Units of measurement == |
− | + | As also discussed in [[UBC parameter units]], all values related to parameters with | |
+ | names starting with <code>num</code> are measured in pieces. Values related to parameters | ||
+ | with names ending with pages are measured in memory pages (memory page is 4 kilobytes on | ||
+ | x86 and x86_64 hardware, others may differ). Values related to other parameters are measured in bytes. | ||
== Settings == | == Settings == | ||
Line 58: | Line 61: | ||
General notes about parameters and their barrier and limit settings | General notes about parameters and their barrier and limit settings | ||
are provided in [[UBC parameters]]. Parameters not having limit setting have | are provided in [[UBC parameters]]. Parameters not having limit setting have | ||
− | [[ | + | [[MAX_ULONG]] in the corresponding field. |
== Reading == | == Reading == | ||
− | |||
− | |||
If you want to print UBC values for a specific container, the following construct can be helpful | If you want to print UBC values for a specific container, the following construct can be helpful | ||
Line 70: | Line 71: | ||
Or with headers, though slightly harder to remember: | Or with headers, though slightly harder to remember: | ||
− | <nowiki>sed -nr "1,2p;/${CTID}:/,+23p | + | <nowiki>sed -nr "1,2p;/${CTID}:/,+23p' /proc/user_beancounters</nowiki> |
Here <code>${CTID}</code> is the ID of the container you are interested in. | Here <code>${CTID}</code> is the ID of the container you are interested in. |