Difference between revisions of "UBC parameter units"
(added UBC toc, minor fixes) |
(implicitly->explicitly! Removed from kernel category as UBC is subcat of kernel now) |
||
Line 8: | Line 8: | ||
== Overriding default units == | == Overriding default units == | ||
− | You can set parameter units | + | You can set parameter units explicitly when appropriate, for example: |
* Set kmemsize limit to 512 Kb | * Set kmemsize limit to 512 Kb | ||
Line 25: | Line 25: | ||
</pre> | </pre> | ||
− | |||
[[Category: HOWTO]] | [[Category: HOWTO]] |
Revision as of 07:34, 22 August 2006
|
- 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
You can set parameter units explicitly when appropriate, for example:
- Set kmemsize limit to 512 Kb
# vzctl set --kmemsize 512k
- Set privvmpages limit to 256 Mb
# vzctl set --privvmpages 256m
- Set tcprcvbuf limit to 1000 pages (totals to almost 4 Mb on x86)
# vzctl set --tcprcvbuf 1000p