[Users] help to optimize container

Esmé de Wolf esme at elements.nl
Tue Aug 30 07:50:36 EDT 2011


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 at openvz.org [mailto:users-bounces at openvz.org] Namens
contenidos2000-openvz at 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

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openvz.org/pipermail/users/attachments/20110830/a6301a76/attachment.html


More information about the Users mailing list