User`s guide

Reference 97
Resource management settings control the amount of resources a VPS can consume. If the
setting has bar:lim after it than this setting requires specifying both barrier and limit values
separated by colons.
--applyconfig name
This option lets you set the resource parameters for the
VPS not one by one, but by reading them from the VPS
sample configuration file. All VPS sample
configuration files are located in the
/etc/sysconfig/vz-scripts directory and are
named according to the following pattern:
ve-
name.conf-sample, so you should specify
only the
name part of the corresponding sample name
after the --applyconfig option. Note that the
names of sample configuration files cannot contain
spaces. The --applyconfig option applies all the
parameters from the sample file to the given VPS,
except for the OSTEMPLATE, VE_ROOT, and
VE_PRIVATE parameters, should they exist in the
sample configuration file.
--numproc bar:lim
Number of processes and threads allowed. Upon hitting
this limit, VPS will not be able to start new process or
thread. In this version of OpenVZ, the limit shall be set
to the same value as the barrier.
--numtcpsock bar:lim
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. In
this version of OpenVZ, the limit shall be set to the
same value as the barrier.
--numothersock bar:lim
Number of socket other than TCP. Local (UNIX-
domain) sockets are used for communications inside the
system. UDP sockets are used for Domain Name
Service (DNS) queries, for example. In this version of
OpenVZ, the limit shall be set to the same value as the
barrier.
--vmguarpages bar:lim
Memory allocation guarantee, in pages (one page is 4
Kb). Applications are guaranteed to be able to allocate
memory while the amount of memory accounted as
privvmpages does not exceed the configured barrier
of the vmguarpages parameter. Above the barrier,
memory allocation may fail in case of overall memory
shortage. In this version of OpenVZ, the limit shall be
set to the same value as the barrier.
--kmemsize bar:lim
Size of unswappable kernel memory (in bytes),
allocated for internal kernel structures of the processes
of a particular VPS. Typical amounts of kernel memory
are 16-50 Kb per process.
--tcpsndbuf bar:lim
Total size (in bytes) of send buffers for TCP sockets –
amount of kernel memory allocated for data sent from
an application to a TCP socket, but not acknowledged
by the remote side yet.
--tcprcvbuf bar:lim
Total size (in bytes) of receive buffers for TCP sockets.
Amount of kernel memory received from the remote
side but not read by the local application yet.