Editing UBC parameter units
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
− | |||
{{UBC toc}} | {{UBC toc}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == Overriding | + | # entries which name has word 'page' are measured in [[memory page]]s (4K on x86 and x86_64, 16K for IA64). These are <code>privvmpages</code>, <code>oomguarpages</code> and others. |
+ | # 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 | ||
+ | #[http://www.superiorpapers.com research paper help] | ||
+ | == Overriding default units == | ||
− | When using [[vzctl]] to set beancounter parameters | + | 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" | {| class="wikitable" | ||
− | + | | g, G || gigabytes | |
− | |||
− | |||
− | |||
− | | g | ||
|- | |- | ||
− | | m | + | | m, M || megabytes |
|- | |- | ||
− | | k | + | | k, K || kilobytes |
|- | |- | ||
− | | p | + | | p, P || [[memory page]]s |
− | |} | + | |} |
− | |||
=== Examples === | === Examples === | ||
− | + | * Set kmemsize limit to 512 Kb | |
− | |||
− | * Set | ||
<pre> | <pre> | ||
# vzctl set $CTID --kmemsize 512k | # vzctl set $CTID --kmemsize 512k | ||
</pre> | </pre> | ||
− | * Set | + | * Set privvmpages limit to 256 Mb |
<pre> | <pre> | ||
# vzctl set $CTID --privvmpages 256m | # vzctl set $CTID --privvmpages 256m | ||
</pre> | </pre> | ||
− | * Set | + | * Set tcprcvbuf limit to 1000 pages (totals to almost 4 Mb on x86) |
<pre> | <pre> | ||
# vzctl set $CTID --tcprcvbuf 1000p | # vzctl set $CTID --tcprcvbuf 1000p |