vz-sample.conf

### ---------------------------------------------------------------------------
# this a example based on :
# * 2 x Dual Core AMD Opteron(tm) Processor 270 2.4GHz
# * 8GB of memory
#
# root@vz01:/etc/vz/conf# vzcpucheck
# Current CPU utilization: 63500
# Power of the node: 482264
# root@vz01:/etc/vz/conf# vzcalc -v 10
# Resource Current(%) Promised(%) Max(%)
# Low Mem 0.11 7.72 7.72
# Total RAM 0.37 n/a n/a
# Mem + Swap 0.37 15.84 n/a
# Alloc. Mem 0.58 15.84 28.59
# Num. Proc 0.01 n/a 2.78
# --------------------------------------------
# Memory 0.58 15.84 28.59
#
# 1GB guarantee (see VMGUARPAGES)
# 12.5 % of CPU guarantee (this is based on bogomips and depends of CPUs)
# 50 % of cpu limit (this is based on bogomips and depends of CPUs)
### ---------------------------------------------------------------------------
# UBC interdependencies table Importance
### ---------------------------------------------------------------------------
# KMEMSIZE(bar) >= 40KB x AVNUMPROC + DCACHESIER(lim) Mandatory
# PRIVVMPAGES(bar) >= VMGUARPAGES(bar) Recommeded
# TCPSNDBUF(lim) - TCPSNDBUF(bar) >= 2.5KB x NUMTCPSOCK Mandatory
# OTHERSOCKBUF(lim) - OTHERSOCKBUF(bar) >= 2.5KB x NUMOTHERSOCK Mandatory
# TCPRCVBUF(lim) - TCPRCVBUF(bar) >= 2.5KB x NUMTCPSOCK Recommeded
# TCPRCVBUF(bar) >= 64KB Recommeded
# TCPSNDBUF(bar) >= 64KB Recommeded
# DGRAMRCVBUF(bar) >= 129KB Optional
# OTHERSOCKBUF(bar) >= 129KB Optional
# NUMFILE = AVNUMPROC x 32 Recommeded
# DCACHESIZE(bar) >= NUMFILE x 384 bytes Recommeded
# BARRIER <= LIMIT Mandatory
### ---------------------------------------------------------------------------

ONBOOT="no"

### ---------------------------------------------------------------------------
# UBC parameters (in form of barrier:limit)
# Primary parameters
### ---------------------------------------------------------------------------

# The maximal number of processes and threads the VPS may create.
NUMPROC="4096:4096"

# The average number of processes and threads.
AVNUMPROC="2048:2048"

# 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.
# 2.5KB x NUMTCPSOCK = 10485760 (used by TCPSNDBUF, TCPRCVBUF, OTHERSOCKBUF)
NUMTCPSOCK="4096:4096"

# 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).
NUMOTHERSOCK="4096:4096"

# The memory allocation guarantee, in pages (one page is 4 KBytes). VPS
# 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.
# 256*4KB = 1GBytes
VMGUARPAGES="262144:9223372036854775807"

### ---------------------------------------------------------------------------
# Secondary parameters
### ---------------------------------------------------------------------------

# The size of unswappable kernel memory allocated for the internal kernel
# structures for the processes of a particular VPS.
# KMEMSIZE(barrier) >= 40KB x AVNUMPROC + DCACHESIER(limit)
KMEMSIZE="134217728:134217728"

# 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.
# TCPSNDBUF(limit) - TCPSNDBUF(barrier) >= 2.5KB x NUMTCPSOCK
# TCPSNDBUF(barrier) >= 64KB
# 20MB:30MB
TCPSNDBUF="20971520:31457280"

# 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.
# TCPRCVBUF"(limit) - TCPRCVBUF(barrier) >= 2.5KB x NUMTCPSOCK
# TCPRCVBUF(barrier) >= 64KB
# 20MB:30MB
TCPRCVBUF="20971520:31457280"

# The total size of UNIX-domain socket buffers, UDP, and other datagram
# protocol send buffers.
# OTHERSOCKBUF(limit) - OTHERSOCKBUF(barrier) >= 2.5KB x NUMOTHERSOCK
# OTHERSOCKBUF >= 129KB
# 20MB:30MB
OTHERSOCKBUF="20971520:31457280"

# The total size of receive buffers of UDP and other datagram protocols.
# DGRAMRCVBUF >= 129KB
# 20MB:30MB
DGRAMRCVBUF="20971520:31457280"

# The out-of-memory guarantee, in pages (one page is 4 KB). Any VPS 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.
OOMGUARPAGES="262144:9223372036854775807"

### ---------------------------------------------------------------------------
# Auxiliary parameters
### ---------------------------------------------------------------------------
# The memory not allowed to be swapped out (locked with the mlock() system

# call), in pages.
LOCKEDPAGES="16384:32768"

# The total size of shared memory (including IPC, shared anonymous mappings and
# tmpfs objects) allocated by the processes of a particular VPS, in pages.
SHMPAGES="65536:65536"

# 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.
# PRIVVMPAGES(barrier) >= VMGUARPAGES(barrier)
PRIVVMPAGES="262144:524287"

# The number of files opened by all VPS processes.
# NUMFILE = AVNUMPROC x 32
NUMFILE="65536:65536"

# The number of file locks created by all VPS processes.
NUMFLOCK="1024:1024"

# The number of pseudo-terminals, such as an ssh session, the screen or xterm
# applications, etc.
NUMPTY="16:16"

# The number of siginfo structures (essentially, this parameter limits the size
# of the signal delivery queue).
NUMSIGINFO="1024:1024"

# The total size of dentry and inode structures locked in the memory.
# DCACHESIZE >= NUMFILE x 384 bytes
DCACHESIZE="50331648:50331648"

# The total size of RAM used by the VPS processes. This is an accounting-only
# parameter currently. It shows the usage of RAM by the VPS. For the memory
# pages used by several different VPSs (mappings of shared libraries, for
# example), only the corresponding fraction of a page is charged to each VPS.
# The sum of the physpages usage for all VPSs corresponds to the total number
# of pages used in the system by all the accounted users.
PHYSPAGES="0:9223372036854775807"
# The number of IP packet filtering entries.
NUMIPTENT="256:256"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="1048576:1153434"
DISKINODES="200000:220000"
QUOTATIME="0"


### ---------------------------------------------------------------------------
# CPU fair sheduler parameter
### ---------------------------------------------------------------------------


# Guaranteed CPU power. This is a positive integer number, which determines the
# minimal guaranteed share of the CPU the Virtual Private Server receives. The
# total CPU power in CPUUNITS is its Bogomips number multiplied by 25. OpenVZ
# reporting tools consider one 1 GHz PIII Intel processor to be approximately
# equivalent to 50,000 CPU units.
# 1 x Dual Core AMD Opteron(tm) Processor 270 (4981.12 bogomips) = 120566
# 2 x Dual Core AMD Opteron(tm) Processor 270 (4981.12 bogomips) = 241132
# 4 x Dual Core AMD Opteron(tm) Processor 270 (4981.12 bogomips) = 482264
# 25%
CPUUNITS="60283"
# Allowed CPU power. This is a positive number indicating the share of the CPU
# time in per cent the VPS may never exceed. You may estimate this share as
# (allowed VPS CPUUNITS/CPU power)*100%.
# 50%
CPULIMIT="241132"

### ---------------------------------------------------------------------------
HOSTNAME="adviseo03"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
OSTEMPLATE="ubuntu-6.06-i386-minimal"
ORIGIN_SAMPLE="vps.basic"
Comments