Difference between revisions of "UBC parameters"
(more contents added) |
(LONG_MAX) |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{UBC toc}} | |
− | By importance, the parameters are divided into 3 groups: primary parameters, | + | All the existing parameters are listed in the [[UBC parameters table]]. |
− | secondary parameters and auxiliary parameters. | + | |
+ | 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 | More detailed description of the parameters and the resource control | ||
− | mechanisms governed by the parameters is provided | + | mechanisms governed by the parameters is provided in the appropriate articles. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== General information about all parameters == | == General information about all parameters == | ||
Line 84: | Line 34: | ||
<li>The parameters control | <li>The parameters control | ||
− | how the resources are distributed between | + | how the resources are distributed between containers in terms of |
− | * limits, i.e. upper boundaries on what this | + | * limits, i.e. upper boundaries on what this container can consume, and |
− | can consume, and | + | * guarantees, i.e. 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. mechanisms ensuring that this | ||
− | can get the assigned “resources” regardless of the activity and the amount | ||
− | of resources required by other | ||
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 container's |
guarantees. | guarantees. | ||
They guarantee availability of resources and certain service level | They guarantee availability of resources and certain service level | ||
Line 102: | Line 49: | ||
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 [[LONG_MAX]]. |
</li> | </li> | ||
Line 127: | Line 74: | ||
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. See more at [[UBC parameter units]]. |
</li> | </li> | ||
− | </ | + | </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]].}} |
Latest revision as of 13:48, 25 January 2011
|
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 in the appropriate articles.
General information about all parameters[edit]
All resource control parameters have some common properties and some differences.
- Most parameters provide both accounting of some system resource
and allow controlling its consumption.
The exceptions are
physpages
(accounting only) andvmguarpages
(no accounting, control only), explained below. - Each parameter has 2 configuration variables, called
barrier
andlimit
. Although both 2 variables are changeable, only one or none of them may be effectively used for the resource control for some parameters. For example,physpages
is an accounting-only parameter and both its configuration variables are not effectively used in the current OpenVZ version. The description of each parameter explains the meaning of thebarrier
and thelimit
and what they should be set to if they are not effectively used. In general, for all parameters thebarrier
should not be greater than thelimit
. - The parameters control
how the resources are distributed between containers in terms of
- limits, i.e. upper boundaries on what this container can consume, and
- guarantees, i.e. mechanisms ensuring that this container can get the assigned “resources” regardless of the activity and the amount of resources required by other containers.
guar
” in their names, i.e.vmguarpages
andoomguarpages
are container's guarantees. They guarantee availability of resources and certain service level up to the value, specified by thebarrier
, and do not guarantee above thebarrier
. However, these parameters do not impose usage restrictions. The guarantees are discussed in more detail in the paragraphs describing these parameters. Thelimit
ofvmguarpages
andoomguarpages
should be set to the maximal value LONG_MAX. -
For some resource limiting parameters, such as
kmemsize
, bothbarrier
andlimit
settings are effectively used. If the resource usage exceeds thebarrier
but doesn't exceed thelimit
, vital operations (such as process stack expansion) are still allowed to allocate new resources, and other ones are not allowed. A gap between thebarrier
and thelimit
gives applications better chances to handle resource shortage gracefully. For other resource limiting parameters, such asnumproc
,barrier
andlimit
should be set to the same value. -
Each parameter has “natural units of measurement” — the units
of measurement of values shown via
/proc/user_beancounters
interface and accepted by vzctl. Values related to parameters with names starting withnum
are measured in pieces. Values related to parameters with names ending withpages
are measured in memory pages (memory page is equal to 4 kilobytes on IA-32 hardware). The remaining values (parameters ending withsize
andbuf
) are measured in bytes. See more at UBC parameter units.
The properties of parameters are summarized in UBC parameter properties.
Note: Continue reading with UBC primary parameters, UBC secondary parameters and UBC auxiliary parameters. |