2,253
edits
Changes
Automated import of articles *** existing text overwritten ***
[<b>--physpages </b><i>pages</i>]
[<b>--swappages </b><i>pages</i>]
[<b>--ram </b><i>bytes</i>]
[<b>--swap </b><i>bytes</i>]
[<b>--cpuunits </b><i>num</i>]
[<b>--cpulimit </b><i>num</i>]
inside the Container.</p>
==== Resource VSwap limits ==== <p style="margin-left:11%; margin-top: 1em">The followingoptions sets memory and swap limits for VSwap-enabledkernels (kernel version 042stab042 or greater).</p> <p style="margin-left:11%; margin-top: 1em">Argument is inbytes, with an optional suffix. Available suffixes are:</p> <table width="100%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="6%"> <p><b>T</b>, <b>t</b></p></td><td width="5%"></td><td width="44%"> <p>terabytes;</p></td><td width="34%"></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="6%"> <p><b>G</b>, <b>g</b></p></td><td width="5%"></td><td width="44%"> <p>gigabytes;</p></td><td width="34%"></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="6%"> <p><b>M</b>, <b>m</b></p></td><td width="5%"></td><td width="44%"> <p>megabytes;</p></td><td width="34%"></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="6%"> <p><b>K</b>, <b>k</b></p></td><td width="5%"></td><td width="44%"> <p>kilobytes;</p></td><td width="34%"></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="6%"> <p><b>P</b>, <b>p</b></p></td><td width="5%"></td><td width="44%"> <p>memory pages (arch-specific).</p></td><td width="34%"></td></tr></table> <p style="margin-left:11%;"><b>--ram</b> <i>bytes</i></p> <p style="margin-left:22%;">Sets physical memory (RAM)available to a container. Actually, the option is a shortcutfor setting <b>--physpages</b> limit (the barrier is set to0).</p> <p style="margin-left:11%;"><b>--swap</b> <i>bytes</i></p> <p style="margin-left:22%;">Set swap space available to acontainer. Actually, the option is a shortcut for setting<b>--swappages</b> limit (the barrier is set to 0).</p> <p style="margin-left:11%; margin-top: 1em">Here is anexample of setting container 777 to have 512 megabytes ofRAM and 1 gigabyte of swap:</p> <pre style="margin-left:11%;"> vzctl set 777 --ram 512M --swap 1G --save</pre> ==== User Beancounter limits ====
<p style="margin-left:11%; margin-top: 1em">The following
options sets barrier and limit for various user
beancounters. </p> <p style="margin-left:11%; margin-top: 1em">Note that forVSwap-enabled kernels (version 042stab042 or greater) theselimits are optional, you must only set <b>--ram</b> and--swap (see above). For older kernels, these limits areobligatory.</p> <p style="margin-left:11%; margin-top: 1em">Each option requires one or two arguments. Incase of one argument, <b>vzctl</b> sets barrier and limit tothe same value. In case of two colon-separated arguments,the first is a barrier, and the second is a limit. Eachargument is either a number, a number with a suffix, or aspecial value <b>unlimited</b>.</p>
<p style="margin-left:11%; margin-top: 1em">Arguments are
<i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:22%;">The limitFor VSwap-enabled kernels(042stab042 or greater), if set, is used toshow a total this parameter limits the amount of swap space available inside theto a container. The barrier of this parameter is currentlyshould beignored. The default value is set to <b>unlimited0</b>, meaningand the limit to a total size of swap will thatcan be reported as 0used by a container.</p>
<p style="margin-left:22%; margin-top: 1em">Note that inFor olderorder for (pre-VSwap) kernels, the value limit is used to be shown as show a total amount of swap space,available inside the container. The<b>--meminfo</b> barrier of this parameter should be set to is ignored. The default value other thanis<b>noneunlimited</b>, meaning total swap will be reported as0.</p>
==== CPU fair scheduler parameters ====
==== Memory output parameters ====
<p style="margin-left:11%; margin-top: 1em">This ForVSwap-enabled kernels (042stab042 or greater), thisparameteris ignored. For older kernels, it controls thecontrol output of /proc/meminfo inside a container. <b><br>
--meminfo none</b></p>
<p style="margin-left:22%; margin-top: 1em">Default is
<b>privvmpages:1</b>.</p>
==== iptables control parameters ====
management, <b>none</b> - no access) to a device designated
by the special file /dev/<i>device</i>. Device file is
created in a container by <b>vzctl</b>. Example: <b/p> <pre style="margin-left:22%;"> vzctlset 777 --devnodes sdb:rwq</b>.</ppre>
<p style="margin-left:11%;"><b>--devices