*SOLVED* Memory usage query [message #12441] |
Sat, 28 April 2007 09:30 |
arpad
Messages: 16 Registered: November 2006
|
Junior Member |
|
|
Hi!
I think I'm a little bit confused. I used to set privvmpages to control the memory usage of a VE like this:
vzctl set <VEID> --privvmpages 320M:320M --save
Now this VE exceeded this limit .I checked the current memory usage and I there is some differences between the memory usage showed by cat /proc/user_beancounters and the summarized memory usage from the output of ps vax.
The /proc/user_beancounters says there is 72807 pages allocated it's ~284MB (with 4K/page).
The sum of the ps vax's RSS field gives me just ~237MB.
Why the difference is so big? There are only approx. 25 process on this node.
How can I set that the node can use all of the 320M what I planned?
Thanks,
Arpad
[Updated on: Wed, 02 May 2007 07:12] by Moderator Report message to a moderator
|
|
|
Re: Memory usage [message #12443 is a reply to message #12441] |
Sat, 28 April 2007 10:32 |
rickb
Messages: 368 Registered: October 2006
|
Senior Member |
|
|
privvmpages is not memory in use, its allocated memory. you can malloc() your heart out, and throw your privvmpages thru the ceiling, without copying any bits to your ram, rss. check the UBC wiki page for privvmpages and physpages definitions.
I wouldn't set privvm that low, 75% of the HN's physical memory is a good estimate, assuming you have more then a few VEs on the node.
-------------
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
|
|
|
|
|
|