Difference between revisions of "UBC parameter units"
m (formatting) |
(added suffixes table, more text) |
||
Line 8: | Line 8: | ||
== Overriding default units == | == Overriding default units == | ||
− | + | When using [[vzctl]] to set beancounter parameters, you can set units explicitly when appropriate (i.e. for all 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 | * Set kmemsize limit to 512 Kb | ||
<pre> | <pre> | ||
− | # vzctl set --kmemsize 512k | + | # vzctl set $VEID --kmemsize 512k |
</pre> | </pre> | ||
* Set privvmpages limit to 256 Mb | * Set privvmpages limit to 256 Mb | ||
<pre> | <pre> | ||
− | # vzctl set --privvmpages 256m | + | # vzctl set $VEID --privvmpages 256m |
</pre> | </pre> | ||
* Set tcprcvbuf limit to 1000 pages (totals to almost 4 Mb on x86) | * Set tcprcvbuf limit to 1000 pages (totals to almost 4 Mb on x86) | ||
<pre> | <pre> | ||
− | # vzctl set --tcprcvbuf 1000p | + | # vzctl set $VEID --tcprcvbuf 1000p |
</pre> | </pre> | ||
[[Category: HOWTO]] | [[Category: HOWTO]] |
Revision as of 01:47, 10 July 2007
|
- entries which name has word 'page' are measured in memory pages (4K on x86 and x86_64, 16K 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
When using vzctl to set beancounter parameters, you can set units explicitly when appropriate (i.e. for all parameters which names are not starting with num
*). The following suffixes are available:
g, G | gigabytes |
m, M | megabytes |
k, K | kilobytes |
p, P | memory pages |
Examples
- Set kmemsize limit to 512 Kb
# vzctl set $VEID --kmemsize 512k
- Set privvmpages limit to 256 Mb
# vzctl set $VEID --privvmpages 256m
- Set tcprcvbuf limit to 1000 pages (totals to almost 4 Mb on x86)
# vzctl set $VEID --tcprcvbuf 1000p