OpenVZ Forum


Home » Mailing lists » Users » help to optimize container
help to optimize container [message #43354] Tue, 30 August 2011 10:49 Go to next message
contenidos2000-openvz is currently offline  contenidos2000-openvz
Messages: 1
Registered: August 2011
Junior Member
Hello

I have an openvz node with only one container (Cpanel server).

Yesterday I had many memories issues:

"Unable to fork: Cannot allocate memory"

Can someone help me to optimize my node setting ?

I have a 4Gb node and I can use all node resources for the container.

This is my resources output:

http://pastebin.com/iPXnf0Se

It appears this parameter failed:

cat /proc/user_beancounters
Version: 2.5
       uid  resource                     held             
maxheld              barrier                limit              failcnt
            privvmpages                230416             
1045032               900000              1000000               363565




This is my node settting:

 cat /etc/vz/conf/100.conf

VERSION="2"

ONBOOT="yes"


NUMPROC="10230:10230"
AVNUMPROC="5115:5115"
NUMTCPSOCK="10230:10230"
NUMOTHERSOCK="10230:10230"
VMGUARPAGES="491520:9223372036854775807"

# Secondary parameters
KMEMSIZE="419090432:460999475"
TCPSNDBUF="97794730:139696810"
TCPRCVBUF="97794730:139696810"
OTHERSOCKBUF="48897365:90799445"
DGRAMRCVBUF="48897365:48897365"
OOMGUARPAGES="917504:9223372036854775807"
PRIVVMPAGES="900000:1000000"

# Auxiliary parameters
LOCKEDPAGES="20463:20463"
SHMPAGES="30695:30695"
PHYSPAGES="0:9223372036854775807"
NUMFILE="163680:163680"
NUMFLOCK="1000:1100"
NUMPTY="512:512"
NUMSIGINFO="1024:1024"
DCACHESIZE="91533669:94279680"
NUMIPTENT="400:500"
DISKSPACE="203811210:224192332"
DISKINODES="5000000:6000000"
CPUUNITS="139987"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
ORIGIN_SAMPLE="1vs"

DISK_QUOTA="yes"
OSTEMPLATE="centos-5-x86_64"
IP_ADDRESS="xxx.xxx.xxx.xxx"
NAMESERVER="208.67.222.222 208.67.220.220"
HOSTNAME="xxx.xxxxxx.xxx"
QUOTAUGIDLIMIT="800"
DISKSPACE="204857600:215302400"
QUOTATIME="1200"



Any help ?  Thanks in advance.

roberto
RE: help to optimize container [message #43355 is a reply to message #43354] Tue, 30 August 2011 11:50 Go to previous message
Esm is currently offline  Esm
Messages: 15
Registered: August 2011
Junior Member
Hi Roberto,



My experience is that you could best allocate more memory to your container
and raise the privvmpages to a value higher than the maxheld value. See if
your memory problem is gone or work from there to allocate more resources.



I hope it helped…



Cheers,



Esmé





Van: users-bounces@openvz.org [mailto:users-bounces@openvz.org] Namens
contenidos2000-openvz@yahoo.com.ar
Verzonden: dinsdag 30 augustus 2011 12:49
Aan: Openvz
Onderwerp: [Users] help to optimize container



Hello



I have an openvz node with only one container (Cpanel server).



Yesterday I had many memories issues:



"Unable to fork: Cannot allocate memory"



Can someone help me to optimize my node setting ?



I have a 4Gb node and I can use all node resources for the container.



This is my resources output:



http://pastebin.com/iPXnf0Se



It appears this parameter failed:



cat /proc/user_beancounters
Version: 2.5
uid resource held maxheld
barrier limit failcnt
privvmpages 230416 1045032
900000 1000000 363565







This is my node settting:



cat /etc/vz/conf/100.conf

VERSION="2"

ONBOOT="yes"


NUMPROC="10230:10230"
AVNUMPROC="5115:5115"
NUMTCPSOCK="10230:10230"
NUMOTHERSOCK="10230:10230"
VMGUARPAGES="491520:9223372036854775807"

# Secondary parameters
KMEMSIZE="419090432:460999475"
TCPSNDBUF="97794730:139696810"
TCPRCVBUF="97794730:139696810"
OTHERSOCKBUF="48897365:90799445"
DGRAMRCVBUF="48897365:48897365"
OOMGUARPAGES="917504:9223372036854775807"
PRIVVMPAGES="900000:1000000"

# Auxiliary parameters
LOCKEDPAGES="20463:20463"
SHMPAGES="30695:30695"
PHYSPAGES="0:9223372036854775807"
NUMFILE="163680:163680"
NUMFLOCK="1000:1100"
NUMPTY="512:512"
NUMSIGINFO="1024:1024"
DCACHESIZE="91533669:94279680"
NUMIPTENT="400:500"
DISKSPACE="203811210:224192332"
DISKINODES="5000000:6000000"
CPUUNITS="139987"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
ORIGIN_SAMPLE="1vs"

DISK_QUOTA="yes"
OSTEMPLATE="centos-5-x86_64"
IP_ADDRESS="xxx.xxx.xxx.xxx"
NAMESERVER="208.67.222.222 208.67.220.220"
HOSTNAME="xxx.xxxxxx.xxx"
QUOTAUGIDLIMIT="800"
DISKSPACE="204857600:215302400"
QUOTATIME="1200"



Any help ? Thanks in advance.



roberto
Previous Topic: reason to keep destroyed ctid.conf files
Next Topic: Kernel branches status change (stable: RHEL6, frozen: 2.6.27, 2.6.32, devel: none)
Goto Forum:
  


Current Time: Tue May 21 02:57:37 GMT 2024

Total time taken to generate the page: 0.01461 seconds