Editing UBC parameters

Jump to: navigation, search

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}}
+
All the existing parameters are listed in the below table.
  
All the existing parameters are listed in the [[UBC parameters table]].
+
By importance, the parameters are divided into 3 groups: primary parameters,
 +
secondary parameters and auxiliary parameters.
 +
More detailed description of the parameters and the resource control
 +
mechanisms governed by the parameters is provided below.
  
By importance, the parameters are divided into 3 groups: [[UBC primary parameters|primary parameters]],
+
== Resource control parameters table ==
[[UBC secondary parameters|secondary parameters]] and [[UBC auxiliary parameters|auxiliary parameters]].
+
 
More detailed description of the parameters and the resource control
+
{| class="wikitable"
mechanisms governed by the parameters is provided in the appropriate articles.
+
! 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) entries.
 +
|}
  
 
== General information about all parameters ==
 
== General information about all parameters ==
Line 34: Line 84:
  
 
<li>The parameters control
 
<li>The parameters control
how the resources are distributed between containers in terms of
+
how the resources are distributed between Virtual Environments in terms of
* limits, i.e.&nbsp;upper boundaries on what this container can consume, and
+
* limits, i.e.&nbsp;upper boundaries on what this Virtual Environment can consume, and
* guarantees, i.e.&nbsp;mechanisms ensuring that this container can get the assigned “resources” regardless of the activity and the amount of resources required by other containers.
+
* guarantees, i.e.&nbsp;mechanisms ensuring that this Virtual Environment
 +
can get the assigned “resources” regardless of the activity and the amount
 +
of resources required by other Virtual Environments.
  
 
The parameters containing “<code>guar</code>” in their names,
 
The parameters containing “<code>guar</code>” in their names,
i.e.&nbsp;<code>vmguarpages</code> and <code>oomguarpages</code> are container's
+
i.e.&nbsp;<code>vmguarpages</code> and <code>oomguarpages</code> are Virtual Environment's
 
guarantees.
 
guarantees.
 
They guarantee availability of resources and certain service level
 
They guarantee availability of resources and certain service level
Line 49: Line 101:
  
 
The <code>limit</code> of <code>vmguarpages</code> and <code>oomguarpages</code> should be
 
The <code>limit</code> of <code>vmguarpages</code> and <code>oomguarpages</code> should be
set to the maximal value [[LONG_MAX]].
+
set to the maximal value (i.e. <code>2147483647</code> on a 32-bit architecture).
 
</li>
 
</li>
  
Line 74: Line 126:
 
in memory pages (memory page is equal to 4 kilobytes on IA-32 hardware).
 
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>)
 
The remaining values (parameters ending with <code>size</code> and <code>buf</code>)
are measured in bytes. See more at [[UBC parameter units]].
+
are measured in bytes.
 
</li>
 
</li>
  
 
</ol>
 
</ol>
 
The properties of parameters are summarized in [[UBC parameter properties]].
 
 
{{Note|Continue reading with [[UBC primary parameters]], [[UBC secondary parameters]] and [[UBC auxiliary parameters]].}}
 

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Templates used on this page: