Long Long time ago I wrote how I migrated from Xen to OpenVZ. This post will show you how to manage your VE memory.
First you set the veid=yournumberofve and the rest is copy paste ; Look at the examples:
Guaranteed 64MB and 128MB Burstable
1 2 3 4 | veid=01 vzctl set ${veid} --vmguarpages 64M --save vzctl set ${veid} --oomguarpages 64M --save vzctl set ${veid} --privvmpages 64M:128M --save |
Guaranteed 128MB and 256MB Burstable
1 2 3 4 | veid=01 vzctl set ${veid} --vmguarpages 128M --save vzctl set ${veid} --oomguarpages 128M --save vzctl set ${veid} --privvmpages 128M:256M --save |
Guaranteed 256MB and 512MB Burstable
1 2 3 4 | veid=01 vzctl set ${veid} --vmguarpages 256M --save vzctl set ${veid} --oomguarpages 256M --save vzctl set ${veid} --privvmpages 256M:512M --save |
Guaranteed 512MB and 1024MB Burstable
1 2 3 4 | veid=01 vzctl set ${veid} --vmguarpages 512M --save vzctl set ${veid} --oomguarpages 512M --save vzctl set ${veid} --privvmpages 512M:1024M --save |
Guaranteed 1024MB and 2048MB Burstable
1 2 3 4 | veid=01 vzctl set ${veid} --vmguarpages 1024M --save vzctl set ${veid} --oomguarpages 1024M --save vzctl set ${veid} --privvmpages 1024M:2048M --save |
You don’t need to reboot, enjoy the OpenVZ benefits;)
Leave a Reply