Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

UBC parameter units

733 bytes added, 06:19, 17 August 2006
no edit summary
== UBC default units ==

# entries which name has word 'page' are measured in memory pages (4kb on x86 and x86-64, 16kb for IA64). These are privvmpages, oomguarpages and others.
# entries with names like 'num*' are measured in items. i.e. numproc - number of processes, numiptent - number of iptables entries.
# other entries like kmemsize, tcprcvbuf/tcpsndbuf are measured in bytes

== Overriding default units ==

You can set parameter units implicitly when appropriate, for example:

* Set kmemsize limit to 512 Kb
<pre>
# vzctl set --kmemsize 512k
</pre>

* Set privvmpages limit to 256 Mb
<pre>
# vzctl set --privvmpages 256m
</pre>

* Set tcprcvbuf limit to 1000 pages (4 Mb on x86)
<pre>
# vzctl set --tcprcvbuf 1000p
</pre>