Linux Container Resources

If you have entered new values for one or several resource parameters and then decided to change them to the default values from the Container template, you can reset the new values by clicking the curved arrow against the corresponding parameter(s).

After you have customized the Container parameters and checked their interdependencies, click Create/Submit.

To customize the resources of several Containers at once, use one of the Virtuozzo Automator group change wizards.

The CPU-related resource management is based on the following parameters:

Parameter

Description

cpuunits

This is a positive integer number that determines the minimal guaranteed share of the CPU time your virtual environment will receive.

cpulimit

cpulimit_mhz

This is a positive number indicating the CPU time, in percent or megahertz, the corresponding virtual environment is not allowed to exceed.

burst_cpulimit

The CPU power limit, in percent, the virtual environment cannot exceed. The limitations set in this parameter are applied to the virtual environment when it exceeds the limit specified in the burst_cpu_avg_usage parameter.

burst_cpu_avg_usage

The CPU usage limit, in percent, set for the virtual environment. This limit is calculated as the ratio of the current virtual environment CPU usage to the CPU limit (i.e to the value of the CPULIMIT parameter) set for the virtual environment. If the limit is not specified, the full CPU power of the physical server is considered as the CPU limit. Upon exceeding the burst_cpu_avg_usage limit, the burst_cpulimit limit is applied to the virtual environment.

cpus

The number of CPUs set to handle all the processes inside the given virtual environment. By default, any virtual environment is allowed to consume the CPU time of all processors on the physical server.

The disk-related resource management is based on the following parameters:

Parameter

Description

diskspace

Total size of disk space consumed by the virtual environment.

Linux When the space used by the virtual environment hits the soft limit, thevirtual environment can allocate additional disk space up to the hard limit during the grace period indicated by the quotatime parameter value.

Linux diskinodes

Total number of disk inodes (files, directories, and symbolic links) allocated by the virtual environment. When the number of inodes used by the virtual environment hits the soft limit, the virtual environment can create additional inodes up to the hard limit during the grace period indicated by the quotatime parameter value.

Linuxquotaugidlimit

Number of user/group IDs allowed for the virtual environment internal disk quota. If set to 0, UID/GID quota will not be enabled.

Linuxquotatime

The grace period for the disk quota overusage defined in seconds. The virtual environment is allowed to temporarily exceed its quota soft limits for no more than the QUOTATIME period.

Linuxioprio

The virtual environment priority for disk I/O operations. The allowed range of values is 0-7. The greater the priority, the more time the virtual environment has for writing to and reading from the disk. The default virtual environment priority is 4.

iolimit

The bandwidth the virtual environment is allowed to use for its disk input and output operations.

iopslimit

The maximum number of disk input and output operations per second a Container is allowed to perform.

This screen displays information on the memory-based or system-based virtual environment resources, or both, depending on your memory configuration:

  • If the memory management mode is enabled for the virtual environment, it can be allocated memory in much the same way as a certain amount of physical memory is installed on a physical computer. This is the recommended mode for managing virtual environments for most administrators.
  • If the system management mode is enabled, the virtual environment's performance depends on the values of quite a number of fine-grained parameters. The primary parameters are the starting point for defining the relative power of a virtual environment. The secondary parameters are dependent on the primary ones and are calculated from them according to a set of constraints. The auxiliary parameters help improve fault isolation among applications in a virtual environment and the way applications handle errors and consume resources.
  • If both resource management modes are used, the more restrictive value is taken into account each time the system makes the decision whether to allocate this or that resource to the virtual environment.

Memory parameters

Parameter

Description

 

slmmemorylimit

An approximation of the size of the physical memory allocated to the virtual environment. In other words, the virtual environment performance is similar to the performance of a physical computer with as much physical memory installed as is indicated in this parameter.

Primary system parameters

Parameter

Description

numproc

The maximal number of processes the virtual environment may create.

numtcpsock

The number of TCP sockets (PF_INET family, SOCK_STREAM type). This parameter limits the number of TCP connections and, thus, the number of clients the server application can handle in parallel.

numothersock

The number of sockets other than TCP ones. Local (UNIX-domain) sockets are used for communications inside the system. UDP sockets are used, for example, for Domain Name Service (DNS) queries. UDP and other sockets may also be used in some very specialized applications (SNMP agents and others).

 

vmguarpages

The memory allocation guarantee, in pages. r applications are guaranteed to be able to allocate additional memory so long as the amount of memory accounted as privvmpages (see the auxiliary parameters) does not exceed the configured barrier of the vmguarpages parameter. Above the barrier, additional memory allocation is not guaranteed and may fail in case of overall memory shortage.

avnumproc

The average number of processes and threads.

Secondary system parameters

Parameter

Description

kmemsize

The size of unswappable kernel memory allocated for the internal kernel structures for the processes of a particular virtual environment.

Note: For the Containers 64-bit version for IA-64 processors, it takes 4 (four) times more the size of the kernel memory than that for the Virtuozzo Containers 32-bit version to handle one and the same process.

tcpsndbuf

The total size of send buffers for TCP sockets, i.e. the amount of kernel memory allocated for the data sent from an application to a TCP socket, but not acknowledged by the remote side yet.

tcprcvbuf

The total size of receive buffers for TCP sockets, i.e. the amount of kernel memory allocated for the data received from the remote side, but not read by the local application yet.

othersockbuf

The total size of UNIX-domain socket buffers, UDP, and other datagram protocol send buffers.

dgramrcvbuf

The total size of receive buffers of UDP and other datagram protocols.

oomguarpages

The out-of-memory guarantee, in pages. Any virtual environment process will not be killed even in case of heavy memory shortage if the current memory consumption (including both physical memory and swap) does not reach the oomguarpages barrier.

privvmpages

The size of private (or potentially private) memory allocated by an application. The memory that is always shared among different applications is not included in this resource parameter.

Auxiliary system parameters

Parameter

Description

lockedpages

The memory not allowed to be swapped out (locked with the mlock() system call), in pages.

shmpages

The total size of shared memory (including IPC, shared anonymous mappings and tmpfs objects) allocated by the processes of a particular virtual environment, in pages.

numfile

The number of files opened by all virtual environment processes.

numflock

The number of file locks created by all virtual environment processes.

numpty

The number of pseudo-terminals, such as an ssh session, screen or xterm applications, etc.

numsiginfo

The number of siginfo structures (essentially, this parameter limits the size of the signal delivery queue).

dcachesize

The total size of dentry and inode structures locked in the memory.

numiptent

The number of IP packet filtering entries.

Notes: The parameters containing "pages" in their names are measured in 4096-byte pages in the Virtuozzo Containers 32-bit version and in 16384-byte pages in the Virtuozzo Containers 64-bit version for IA-64 processors. In the Virtuozzo Containers 64-bit versions, all the system parameter values are 64-bit and, therefore, can exceed the values in the Virtuozzo Containers 32-bit version (where the parameters values are 32-bit). For example, the limit of the oomguarpages parameter in the Virtuozzo Containers 64-bit version for IA-64 processors can be maximally set to 9223372036854775807 instead of 2147483647 in the Virtuozzo Containers 32-bit version. To learn more about the difference between the Virtuozzo Containers 64-bit and 32-bit versions turn to the Virtuozzo Containers for 64-bit Processors section of the Virtuozzo Containers User's Guide.

The information on the available parameters is presented in the table with the following columns:

Column Name

Description

Parameter

The name of the resource parameter.

Current Usage

Indicates the consumption of the corresponding resource by the Container at the moment of calling the current Virtuozzo Automator page. The units in which the consumption is measured are specified in the Units column. If the current usage is not available (n/a), it means that either the Container is not running, or the nature of the resource does not suggest its changing over time.

Soft Limit

The limit on the consumption of the given resource by the Container that can be exceeded only if the system is not fully loaded. The units in which the limit is measured are specified in the Units column.

Hard Limit

The limit on the consumption of the given resource by the current Container that cannot be exceeded under any circumstances. The units in which the limit is measured are specified in the Units column.

Units

The units in which the resource values are measured.

Description

The description of the resource parameter.

The Memory Configuration group lets you choose the way to manage the Container resources:

  • The Old-style UBC resource management option tells the system to use all those fine-grained parameters for system resources allocation that have always been part of the Virtuozzo traditional resource management.
  • The SLM resource management option allows you to reduce a set of memory-related parameters to a single slmmemorylimit parameter, which essentially denotes the amount of RAM the given Container is allowed to use.
  • The Use both UBC and SLM simultaneously option validates both of the schemes above for putting restrictions on the usage of system resources by the Container.

Note: This group of options is displayed only if SLM is globally enabled on the physical server.

If you have entered new values for one or several resource parameters and then decided to change them to the default values from the Container template, you can reset the new values by clicking the curved arrow against the corresponding parameter(s).