Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

UBC parameter units

302 bytes added, 01:47, 10 July 2007
added suffixes table, more text
== Overriding default units ==
You When using [[vzctl]] to set beancounter parameters, you can set parameter units explicitly when appropriate, (i.e. for exampleall parameters which names are not starting with <code>num</code>*). The following suffixes are available{| class="wikitable"| g, G || gigabytes|-| m, M || megabytes|-| k, K || kilobytes|-| p, P || [[memory page]]s|} === Examples ===
* Set kmemsize limit to 512 Kb
<pre>
# vzctl set $VEID --kmemsize 512k
</pre>
* Set privvmpages limit to 256 Mb
<pre>
# vzctl set $VEID --privvmpages 256m
</pre>
* Set tcprcvbuf limit to 1000 pages (totals to almost 4 Mb on x86)
<pre>
# vzctl set $VEID --tcprcvbuf 1000p
</pre>
[[Category: HOWTO]]