Editing UBC parameters
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: | ||
− | + | All the existing parameters are listed in the below 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. | ||
− | + | == 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) 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 | + | how the resources are distributed between Virtual Environments in terms of |
− | * limits, i.e. upper boundaries on what this | + | * limits, i.e. upper boundaries on what this Virtual Environment can consume, and |
− | * guarantees, i.e. mechanisms ensuring that this | + | * guarantees, i.e. 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. <code>vmguarpages</code> and <code>oomguarpages</code> are | + | i.e. <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 | + | set to the maximal value ($2147483647$ 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 | + | are measured in bytes. |
</li> | </li> | ||
− | </ | + | </ul> |
− | |||
− | |||
− | |||
− |