Open main menu

OpenVZ Virtuozzo Containers Wiki β

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 ==
{{Main|UBC parameter units}}
+
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
[[LONG_MAX]] in the corresponding field.
+
[[MAX_ULONG]] in the corresponding field.
  
 
== Reading ==
 
== Reading ==
Line 70: Line 73:
 
Or with headers, though slightly harder to remember:
 
Or with headers, though slightly harder to remember:
  
   <nowiki>sed -nr "1,2p;/${CTID}:/,+23p" /proc/user_beancounters</nowiki>
+
   <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.

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Templates used on this page: