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 86: | Line 86: | ||
The following are some examples to demonstrate the use of different units when specifying the value of a parameter. Where <code>$CTID</code> is the container ID. | The following are some examples to demonstrate the use of different units when specifying the value of a parameter. Where <code>$CTID</code> is the container ID. | ||
− | * Set <code>kmemsize</code> limit to 512 | + | * Set <code>kmemsize</code> limit to 512 Kb |
<pre> | <pre> | ||
# vzctl set $CTID --kmemsize 512k | # vzctl set $CTID --kmemsize 512k | ||
</pre> | </pre> | ||
− | * Set <code>privvmpages</code> limit to 256 | + | * Set <code>privvmpages</code> limit to 256 Mb |
<pre> | <pre> | ||
# vzctl set $CTID --privvmpages 256m | # vzctl set $CTID --privvmpages 256m | ||
</pre> | </pre> | ||
− | * Set <code>tcprcvbuf</code> limit to 1000 pages (totals to almost 4 | + | * Set <code>tcprcvbuf</code> limit to 1000 pages (totals to almost 4 Mb on x86) |
<pre> | <pre> | ||
# vzctl set $CTID --tcprcvbuf 1000p | # vzctl set $CTID --tcprcvbuf 1000p |