Re: How to properly set memory limits [message #719 is a reply to message #633] |
Sat, 07 January 2006 13:30   |
|
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
[Updated on: Sat, 07 January 2006 13:31] Report message to a moderator
|
|
|