OpenVZ Forum


Home » General » Support » How to properly set memory limits
Re: How to properly set memory limits [message #719 is a reply to message #633] Sat, 07 January 2006 13:30 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

What you've done is a bit incorrect. See, there is a barrier and a limit for each resource -- for some resources like kmemsize barrier is not equal to limit, so you should scale them up accordingly.

In your particular case, you should have used something like this (I have taken all the parameter's values from /proc/user_beancounters output you have have provided and doubled all the values):

vzctl set NNN \
  --kmemsize 4915200:5242880 \
  --privvmpages 98304:107150 \
  --numproc 130 \
  --tcprcvbuf 638976:1048576 \
  --dgramrcvbuf 264192 \
  --save


And the next very important thing to do is to validate the resulting configuration, to make sure it is consistent:
$ /usr/sbin/vzcfgvalidate /etc/sysconfig/vz-scripts/NNN.conf
Validation completed: success


If configuration is not valid, you'll get the suggestions of how to fix it.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png

[Updated on: Sat, 07 January 2006 13:31]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: what sripts runs when you vzctl into a ve?
Next Topic: Hybodus OpenVZ Template :)
Goto Forum:
  


Current Time: Fri Aug 23 17:51:27 GMT 2024

Total time taken to generate the page: 0.03847 seconds