Chris Schuld's Blog

personal musings on the composition of software

Written By: Chris Schuld Sunday, September 6th, 2009

Here are commands to help adjust the memory / RAM for an OpenVZ VPS:

64MB Guaranteed, 128MB Burstable

cid=1000
vzctl set ${cid} --vmguarpages 64M --save
vzctl set ${cid} --oomguarpages 64M --save
vzctl set ${cid} --privvmpages 64M:128M --save

256MB Guaranteed, 512MB Burstable

cid=1000
vzctl set ${cid} --vmguarpages 256M --save
vzctl set ${cid} --oomguarpages 256M --save
vzctl set ${cid} --privvmpages 256M:512M --save

512MB Guaranteed, 1024MB Burstable

cid=1000
vzctl set ${cid} --vmguarpages 512M --save
vzctl set ${cid} --oomguarpages 512M --save
vzctl set ${cid} --privvmpages 512M:1024M --save

1024MB Guaranteed, 2048MB Burstable

cid=1000
vzctl set ${cid} --vmguarpages 1024M --save
vzctl set ${cid} --oomguarpages 1024M --save
vzctl set ${cid} --privvmpages 1024M:2048M --save
Categories: Featured, OpenVZ

4 Responses to " Adjusting RAM for an OpenVZ VPS "

  1. Don Kamote says:

    Thanks for this helpul blog.

    Now I know how to exactly set its RAM

  2. Amat says:

    Chris

    thank you very much for this.

    can you pls post something like this for Cpu Units also. it will really appreciated ..

    THanks

  3. Amar says:

    btw wht is the ${cid}???

  4. Amar says:

    i used to 512MB guranteed config. and in the cpanel i am gettin this

    Critical Warning (VZ): You are only only allowed to use 272 Megabytes of ram! 512 Megabytes is recommended. !!
    !! Warning (VZ): You are only only guaranteed 370 Megabytes of ram when the system is out of ram! 512 Megabytes is recommended. !!

    whts the problem???

Leave a Reply

About Chris

Chris Schuld

Thank you for visiting my website. I use this site for a myriad of things: maintaining software I have open sourced, connecting with my readers and friends and documenting all of this little things "I wished I would have written down." You can read more about me or contact me.


thanks for visiting... happy coding

Recent Comments