Difference between revisions of "UBC parameter units"
m (Reverted edits by Rebeca123 (Talk) to last revision by Botinki Kira) |
|||
Line 5: | Line 5: | ||
# entries with names like 'num*' are measured in items. i.e. <code>numproc</code> - number of processes, <code>numiptent</code> - number of iptables entries. | # entries with names like 'num*' are measured in items. i.e. <code>numproc</code> - number of processes, <code>numiptent</code> - number of iptables entries. | ||
# other entries like <code>kmemsize</code>, <code>tcprcvbuf</code>, <code>tcpsndbuf</code> are measured in bytes | # other entries like <code>kmemsize</code>, <code>tcprcvbuf</code>, <code>tcpsndbuf</code> are measured in bytes | ||
− | + | ||
== Overriding default units == | == Overriding default units == | ||
Revision as of 15:08, 13 July 2010
|
- 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 $CTID --kmemsize 512k
- Set privvmpages limit to 256 Mb
# vzctl set $CTID --privvmpages 256m
- Set tcprcvbuf limit to 1000 pages (totals to almost 4 Mb on x86)
# vzctl set $CTID --tcprcvbuf 1000p