| Curious about physpages vs RSS [message #33153] |
Thu, 25 September 2008 04:54  |
devonblzx Messages: 88 Registered: December 2006 |
Member |
From: *dhcp.bycy.mi.charter.com
|
|
Hello,
I have been trying to figure out the actual RAM usage of some of my containers, I know physpages somewhat represents this but the numbers seem strange.
For example, when I added up all the physpages current values from /proc/user_beancounters of all running VPS's it turns out 1400MB of usage. When I looked at the wiki, I saw about adding kmem and the buffers which took it up to 1460MB, but when I type free -m it turns out...
# free -m
total used free shared buffers cached
Mem: 7899 7539 359 0 533 4972
-/+ buffers/cache: 2034 5864
Swap: 4110 0 4109
(2034MB Used after +/- buffers/cache)
When I add up the RSS values in 'ps aux' of all running VPS's, it turns out 1950MB, a much closer value.
Any ideas or explanations would be great. Which number is reliable?
|
|
|
| Re: Curious about physpages vs RSS [message #33160 is a reply to message #33153] |
Thu, 25 September 2008 12:00   |
kenjy Messages: 50 Registered: July 2008 Location: Mexico |
Member |
From: *jornada.com.mx
|
|
is this the output of fee -m insite a VE?
Because as far I know a VE should not display values for buffers/cache and swap in free or top output.
another question, the total ammount of ram in your hardware node its Mem:7899 ?
what distro are you ussing?
http://kenjy.net |Live net !!!
|
|
|
| Re: Curious about physpages vs RSS [message #33161 is a reply to message #33160] |
Thu, 25 September 2008 12:27   |
devonblzx Messages: 88 Registered: December 2006 |
Member |
From: *dhcp.bycy.mi.charter.com
|
|
No, that is the free -m on the main node. Free -m inside the VPS would not give me what I needed as I was adding up the physpages and RSS inside all the VE's not just one...
It's CentOS5 x8664 with 8GB of RAM, what is so surprising?
[Updated on: Thu, 25 September 2008 12:28] Report message to a moderator
|
|
|
| Re: Curious about physpages vs RSS [message #34191 is a reply to message #33153] |
Thu, 11 December 2008 22:11  |
cdarnell Messages: 3 Registered: June 2008 |
Junior Member |
From: 65.248.129*
|
|
From the wiki - the definition states: The sum of the physpages usage for all containers corresponds to the total number of pages used in the system by all containers.
I also found the sum of the containers on one of the openvz servers totalled a mere 3.3 gigs.
total used free shared buffers cached
Mem: 7973 7807 165 0 688 2717
-/+ buffers/cache: 4401 3572
I would guess RSS to be more acruate for what we understand and need. I would ultimately check meminfo. Interesting though, I've definitely meant to try to take all this in myself and leverage the bean counters more for resource usage.
|
|
|