UBC parameter units

From OpenVZ Linux Containers Wiki

Jump to: navigation, search

User Beancounters have default units which are used when viewing and setting the parameter values. When setting the values for some parameters, you are able to specify different units thereby avoiding the need to do manual conversion of units and making life a little easier!

User Beancounters
Definition
/proc/user_beancounters
/proc/bc/
General information
Units of measurement
Parameters description
Primary parameters
numproc, numtcpsock, numothersock, vmguarpages
Secondary parameters
kmemsize, tcpsndbuf, tcprcvbuf, othersockbuf, dgramrcvbuf, oomguarpages, privvmpages
Auxiliary parameters
lockedpages, shmpages, physpages, numfile, numflock, numpty, numsiginfo, dcachesize, numiptent, swappages
Internals
User pages accounting
RSS fractions accounting
On-demand accounting
UBC consistency
Consistency formulae
System-wide configuration
Configuration examples
Basic
Derived
Intermediate configurations
Tables
List of parameters
Parameter properties
Consistency
Config examples

Contents

[edit] Pages

Parameters which have the suffix "page" are measured in numbers of pages. These include:

When using vzctl to set these beancounter parameters, you can override the default units of "pages" by using a valid suffix.


[edit] Numbers of Items

Parameters with the prefix "num" are measured in numbers of items:


[edit] Bytes

Other parameters are measured in bytes:

When using vzctl to set these beancounter parameters, you can override the default units of "bytes" by using a valid suffix.


[edit] Overriding Default Units

When using vzctl to set beancounter parameters which use "Pages" or "Bytes" as the default units, alternative units may be specified using one of the following suffixes:

Suffix Alternative Suffix Units
g G gigabytes
m M megabytes
k K kilobytes
p P pages

[edit] Examples

The following are some examples to demonstrate the use of different units when specifying the value of a parameter. Where $CTID is the container ID.

# vzctl set $CTID --kmemsize 512k
# vzctl set $CTID --privvmpages 256m
# vzctl set $CTID --tcprcvbuf 1000p
Personal tools
Namespaces
Variants
Actions
Navigation
Sites
Toolbox