Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

UBC parameters

1,468 bytes removed, 13:48, 25 January 2011
LONG_MAX
All the existing parameters are listed in the below table.{{UBC toc}}
All the existing parameters are listed in the [[UBC parameters table]]. By importance, the parameters are divided into 3 groups: [[UBC primary parameters|primary parameters]],[[UBC secondary parameters|secondary parameters ]] and [[UBC auxiliary parameters|auxiliary parameters]].
More detailed description of the parameters and the resource control
mechanisms governed by the parameters is provided below. == Resource control parameters table == {| class="wikitable"! Name !! Description|-| colspan="2" align="center" | Primary parameters|-| numproc || Number of processes and threads.|-| numtcpsock || Number of TCP sockets.|-| numothersock || Number of sockets other than TCP.|-| vmguarpages || Memory allocation guarantee, in pages.|-| colspan="2" align="center" | Secondary parameters|-| kmemsize || Size of unswappable kernel memory, allocated for processes in this [[VE]].|-| tcpsndbuf || Total size of TCP send buffers.|-| tcprcvbuf || Total size of TCP receive buffers.|-| othersockbuf || Total size of UNIX-domain socket buffers, UDP and other datagram protocol send buffers.|-| dgramrcvbuf || Receive buffers of UDP and other datagram protocols.|-| oomguarpages || The guaranteed amount of memory for the case the memory is “over-booked” (out-of-memory kill guarantee), in pages.|-| privvmpages || Memory allocation limit, in pages.|-| colspan="2" align="center" | Auxiliary parameters|-| lockedpages || Process pages not allowed to be swapped out (pages locked by <code>mlock(2)</code>).|-| shmpages || Total size of shared memory (IPC, shared anonymous mappings and <code>tmpfs</code> objects), in pages.|-| physpages || Total number of RAM pages used by processes.|-| numfile || Number of open files.|-| numflock || Number of file locks.|-| numpty || Number of pseudo-terminals.|-| numsiginfo || Number of <code>siginfo</code> structures.|-| dcachesize || Total size of <code>dentry</code> and <code>inode</code> structures locked in memory.|-| numiptent || Number of NETFILTER (IP packet filtering) entriesappropriate articles.|}
== General information about all parameters ==
<li>The parameters control
how the resources are distributed between Virtual Environments containers in terms of* limits, i.e.&nbsp;upper boundaries on what this Virtual Environmentcontainer can consume, and* guarantees, i.e.&nbsp;mechanisms ensuring that this Virtual Environmentcontainer can get the assigned “resources” regardless of the activity and the amountof resources required by other Virtual Environmentscontainers.
The parameters containing “<code>guar</code>” in their names,
i.e.&nbsp;<code>vmguarpages</code> and <code>oomguarpages</code> are Virtual Environmentcontainer's
guarantees.
They guarantee availability of resources and certain service level
The <code>limit</code> of <code>vmguarpages</code> and <code>oomguarpages</code> should be
set to the maximal value ($2147483647$ on a 32-bit architecture)[[LONG_MAX]].
</li>
in memory pages (memory page is equal to 4 kilobytes on IA-32 hardware).
The remaining values (parameters ending with <code>size</code> and <code>buf</code>)
are measured in bytes. See more at [[UBC parameter units]].
</li>
</ulolThe properties of parameters are summarized in [[UBC parameter properties]]. {{Note|Continue reading with [[UBC primary parameters]], [[UBC secondary parameters]] and [[UBC auxiliary parameters]].}}