OpenVZ Forum


Home » General » Support » OpenVZ and a better administration of memory with zope server
OpenVZ and a better administration of memory with zope server [message #15540] Sat, 04 August 2007 19:16 Go to next message
gaper is currently offline  gaper
Messages: 9
Registered: May 2007
Location: México
Junior Member
I have 3 virtual machines running with openvz, one of them have running zope (a server applications in python http://www.zope.org/), but sometimes zope kills itself with the load of work, when I check/proc/user_beancounters I see these mistakes (I readed that the failcnt column should have only zero values):

      105:  kmemsize         605135    1161764   59163173   62277025          0
            lockedpages           0          0       2048       2048          0
            privvmpages         889       8507     237764     237764          0
            shmpages              1          1     102400     102400          0
            dummy                 0          0          0          0          0
            numproc               7         19         65         65          0
            physpages           474       1534          0 2147483647          0
            vmguarpages           0          0     237764 2147483647          0
            oomguarpages        474       1534     209715 2147483647          0
            numtcpsock           27         27         80         80          0
            numflock              1          2        100        110          0
            numpty                0          0         16         16          0
            numsiginfo            0          2        256        256          0
            tcpsndbuf        241056          0    5368709   10737418          0
            tcprcvbuf        442368          0    5368709   10737418          0
            othersockbuf      51336      56576    5368709   10737418          0
            dgramrcvbuf           0          0    2684354    5368709          0
            numothersock         24         36         80         80          0
            dcachesize            0          0   16106127   16106127          0
            numfile             192        376       2048       2048          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            29         83        128        128          0
      104:  kmemsize        1434199    1942392   59163173   62277025          0
            lockedpages           0          0       2048       2048          0
            privvmpages       33873      41349     237764     237764          0
            shmpages              1          1     102400     102400          0
            dummy                 0          0          0          0          0
            numproc              27         39         65         65          0
            physpages          6034       7126          0 2147483647          0
            vmguarpages           0          0     237764 2147483647          0
            oomguarpages       6034       7126     209715 2147483647          0
            numtcpsock           30         30         80         80          0
            numflock              4          5        100        110          0
            numpty                0          0         16         16          0
            numsiginfo            0          2        256        256          0
            tcpsndbuf        267840          0    5368709   10737418          0
            tcprcvbuf        491520          0    5368709   10737418          0
            othersockbuf      53568      63736    5368709   10737418          0
            dgramrcvbuf           0          0    2684354    5368709          0
            numothersock         26         34         80         80          0
            dcachesize            0          0   16106127   16106127          0
            numfile             609        788       2048       2048          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            91         91        128        128          0
      106:  kmemsize        1284733    1998938   59163173   62277025          0
            lockedpages           0          0       2048       2048          0
            privvmpages       60973      69072     237764     237764     247630
            shmpages              0       1008     102400     102400          0
            dummy                 0          0          0          0          0
            numproc              17         32         65         65          0
            physpages         47432      49131          0 2147483647          0
            vmguarpages           0          0     237764 2147483647          0
            oomguarpages      47432      49131     209715 2147483647          0
            numtcpsock           30         52         80         80          0
            numflock              2          8        100        110          0
            numpty                0          3         16         16          0
            numsiginfo            0         14        256        256          0
            tcpsndbuf        370512     814736    5368709   10737418       9006
            tcprcvbuf        522768     878568    5368709   10737418         99
            othersockbuf      51336      58032    5368709   10737418          0
            dgramrcvbuf           0       8376    2684354    5368709          0
            numothersock         24         33         80         80          0
            dcachesize            0          0   16106127   16106127          0
            numfile             496        833       2048       2048          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            75         91        128        128          0


THE content of my configuration file (/etc/vz/conf/106.conf) is:

ONBOOT="yes"

# UBC parameters (in form of barrier:limit)
# Primary parameters
AVNUMPROC="64:64"
#AVNUMPROC="40:40"
#NUMPROC="65:65"
NUMPROC="80:80"
#NUMTCPSOCK="80:80"
NUMTCPSOCK="128:128"
#NUMOTHERSOCK="80:80"
NUMOTHERSOCK="128:128"
VMGUARPAGES="237764:2147483647"
# Secondary parameters
KMEMSIZE="59163173:62277025"
TCPSNDBUF="5368709:10737418"
TCPRCVBUF="5368709:10737418"
OTHERSOCKBUF="5368709:10737418"
DGRAMRCVBUF="2684354:5368709"
OOMGUARPAGES="209715:2147483647"
# Auxiliary parameters
LOCKEDPAGES="2048:2048"
SHMPAGES="102400:102400"
PRIVVMPAGES="237764:237764"
NUMFILE="2048:2048"
#NUMFLOCK="100:110"
NUMFLOCK="128:128"

#NUMPTY="16:16"
NUMPTY="8:8"
#NUMSIGINFO="256:256"
NUMSIGINFO="128:128"
DCACHESIZE="16106127:16106127"

PHYSPAGES="0:2147483647"
#NUMIPTENT="128:128"
NUMIPTENT="192:192"

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

# CPU fair sheduler parameter
CPUUNITS="30027"
VE_ROOT="/var/lib/vz/root/$VEID"
VE_PRIVATE="/var/lib/vz/private/$VEID"
OSTEMPLATE="debian-4.0-i386-minimal"
ORIGIN_SAMPLE="vps.basic"
HOSTNAME="zope.jornada.com.mx"
IP_ADDRESS="132.248.10.14"
NAMESERVER="132.248.204.1"
IPTABLES="iptable_nat iptable_filter"


This configuration its based in this one:

http://wiki.vpslink.com/index.php?title=Vpslink5

My hardware node have 3gb of ram and I have destined 1gb for the virtual enviroment 106 with zope. ¿ Guys can you give me a hand please?

[Updated on: Sat, 04 August 2007 19:21]

Report message to a moderator

Re: OpenVZ and a better administration of memory with zope server [message #15541 is a reply to message #15540] Sat, 04 August 2007 20:19 Go to previous message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
you should increase the ubc metrics that have failures. increase each failed ubc by 50% until you can operate your applications without failures. this will yield a config that suits your application memory requirements.



Rick


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Previous Topic: Activated NFS and now the ve won't bring up network
Next Topic: Limiting swap
Goto Forum:
  


Current Time: Fri Aug 09 02:11:25 GMT 2024

Total time taken to generate the page: 0.02876 seconds