Set Unlimited Resources on Openvz for the guest OS

vzctl set 100 --applyconfig unlimited --save

This should be refected in /etc/vz/conf/100.conf

cat /etc/vz/conf/100.conf

# Configuration file generated by vzsplit for 1 containers
# on HN with total amount of physical mem 4037 Mb
# low memory 845 Mb, swap size 8189 Mb, Max treads 8000
# Resourse commit level 0:
# Free resource distribution. Any parameters may be increased
# Primary parameters
NUMPROC=”unlimited”
AVNUMPROC=”unlimited”
NUMTCPSOCK=”1801439850948198″
NUMOTHERSOCK=”1801439850948198″
VMGUARPAGES=”unlimited”

# Secondary parameters
KMEMSIZE=”unlimited”
TCPSNDBUF=”4611686018427387903:unlimited”
TCPRCVBUF=”4611686018427387903:unlimited”
OTHERSOCKBUF=”4611686018427387903:unlimited”
DGRAMRCVBUF=”unlimited”
OOMGUARPAGES=”unlimited”
PRIVVMPAGES=”unlimited”

# Auxiliary parameters
LOCKEDPAGES=”unlimited”
SHMPAGES=”unlimited”
PHYSPAGES=”0:unlimited”
NUMFILE=”unlimited”
NUMFLOCK=”unlimited”
NUMPTY=”unlimited”
NUMSIGINFO=”unlimited”
DCACHESIZE=”unlimited”
NUMIPTENT=”unlimited”
DISKSPACE=”440401920:440401920″
DISKINODES=”440000000:440000000″
CPUUNITS=”239962″
VE_ROOT=”/vz/root/$VEID”
VE_PRIVATE=”/vz/private/$VEID”
OSTEMPLATE=”centos-5-i386-default-5.2-20081210″
ORIGIN_SAMPLE=”unlimited”
HOSTNAME=”webserverpage.com”
IP_ADDRESS=”192.168.x.x”
NAMESERVER=”8.8.x.x”
ONBOOT=”yes”
DISK_QUOTA=”no”
SWAPPAGES=”0:2097152″

Leave a Reply