Editing UBC secondary 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 5: | Line 5: | ||
== kmemsize == | == kmemsize == | ||
− | Size of unswappable memory | + | Size of unswappable memory, allocated by the operating system kernel. |
It includes all the kernel internal data structures associated with the | It includes all the kernel internal data structures associated with the | ||
− | + | Virtual Environment's processes, except the network buffers discussed below. | |
These data structures reside in the first gigabyte of the computer's RAM, | These data structures reside in the first gigabyte of the computer's RAM, | ||
so called [[UBC systemwide configuration#“Low memory”|“low memory”]]. | so called [[UBC systemwide configuration#“Low memory”|“low memory”]]. | ||
Line 19: | Line 19: | ||
It is important to have a certain safety gap between the <code>barrier</code> and | It is important to have a certain safety gap between the <code>barrier</code> and | ||
the <code>limit</code> of the <code>kmemsize</code> parameter | the <code>limit</code> of the <code>kmemsize</code> parameter | ||
− | (for example, 10%, as in [[UBC | + | (for example, 10%, as in [[UBC examples]]). Equal <code>barrier</code> and <code>limit</code> of |
the <code>kmemsize</code> parameter may lead to the situation where the kernel will | the <code>kmemsize</code> parameter may lead to the situation where the kernel will | ||
− | need to kill | + | need to kill Virtual Environment's applications to keep the <code>kmemsize</code> |
usage under the limit. | usage under the limit. | ||
<code>Kmemsize</code> limits can't be set arbitrarily high. | <code>Kmemsize</code> limits can't be set arbitrarily high. | ||
− | The total amount of <code>kmemsize</code> consumable by all | + | The total amount of <code>kmemsize</code> consumable by all Virtual Environments |
in the system plus the socket buffer space (see below) is limited by the | in the system plus the socket buffer space (see below) is limited by the | ||
hardware resources of the system. | hardware resources of the system. | ||
Line 49: | Line 49: | ||
do not have strong negative effect on the applications, but just reduce | do not have strong negative effect on the applications, but just reduce | ||
performance of network communications. | performance of network communications. | ||
− | |||
− | |||
<code>Tcpsndbuf</code> limits can't be set arbitrarily high. | <code>Tcpsndbuf</code> limits can't be set arbitrarily high. | ||
− | The total amount of <code>tcpsndbuf</code> consumable by all | + | The total amount of <code>tcpsndbuf</code> consumable by all Virtual Environments |
in the system plus the <code>kmemsize</code> and other socket buffers is limited | in the system plus the <code>kmemsize</code> and other socket buffers is limited | ||
by the hardware resources of the system. | by the hardware resources of the system. | ||
Line 84: | Line 82: | ||
<code>Tcprcvbuf</code> limits can't be set arbitrarily high. | <code>Tcprcvbuf</code> limits can't be set arbitrarily high. | ||
− | The total amount of <code>tcprcvbuf</code> consumable by all | + | The total amount of <code>tcprcvbuf</code> consumable by all Virtual Environments |
in the system plus the <code>kmemsize</code> and other socket buffers is limited | in the system plus the <code>kmemsize</code> and other socket buffers is limited | ||
by the hardware resources of the system. | by the hardware resources of the system. | ||
Line 98: | Line 96: | ||
<code>Othersockbuf</code> configuration should satisfy | <code>Othersockbuf</code> configuration should satisfy | ||
− | <math>othersockbuf_{lim} - othersockbuf_{bar} \ge 2.5KB \cdot numothersock | + | <math>othersockbuf_{lim} - othersockbuf_{bar} \ge 2.5KB \cdot numothersock</math> |
Increased limit for <code>othersockbuf</code> is necessary for high performance of | Increased limit for <code>othersockbuf</code> is necessary for high performance of | ||
Line 106: | Line 104: | ||
<code>Othersockbuf</code> limits can't be set arbitrarily high. | <code>Othersockbuf</code> limits can't be set arbitrarily high. | ||
− | The total amount of <code>othersockbuf</code> consumable by all | + | The total amount of <code>othersockbuf</code> consumable by all Virtual Environments |
in the system plus the <code>kmemsize</code> and other socket buffers | in the system plus the <code>kmemsize</code> and other socket buffers | ||
is limited by the hardware resources of the system. | is limited by the hardware resources of the system. | ||
Line 119: | Line 117: | ||
<code>Dgramrcvbuf</code> limits usually don't need to be high. | <code>Dgramrcvbuf</code> limits usually don't need to be high. | ||
− | Only if the | + | Only if the Virtual Environments needs to send and receive very large |
datagrams, the <code>barrier</code>s for both <code>othersockbuf</code> and | datagrams, the <code>barrier</code>s for both <code>othersockbuf</code> and | ||
<code>dgramrcvbuf</code> parameters should be raised. | <code>dgramrcvbuf</code> parameters should be raised. | ||
Line 133: | Line 131: | ||
<code>Dgramrcvbuf</code> limits can't be set arbitrarily high. | <code>Dgramrcvbuf</code> limits can't be set arbitrarily high. | ||
− | The total amount of <code>dgramrcvbuf</code> consumable by all | + | The total amount of <code>dgramrcvbuf</code> consumable by all Virtual Environments |
in the system plus the <code>kmemsize</code> and other socket buffers | in the system plus the <code>kmemsize</code> and other socket buffers | ||
is limited by the hardware resources of the system. | is limited by the hardware resources of the system. | ||
Line 139: | Line 137: | ||
== oomguarpages == | == oomguarpages == | ||
− | + | FIXME | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== privvmpages == | == privvmpages == | ||
− | + | FIXME | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |