OpenVZ Forum


Home » General » Discussions » Curious about physpages vs RSS
Curious about physpages vs RSS [message #33153] Thu, 25 September 2008 08:54 Go to next message
devonblzx is currently offline  devonblzx
Messages: 127
Registered: December 2006
Senior 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?


http://static.openvz.org/userbars/openvz-user-2.png
ByteOnSite President
Re: Curious about physpages vs RSS [message #33160 is a reply to message #33153] Thu, 25 September 2008 16:00 Go to previous messageGo to next message
kenjy is currently offline  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 16:27 Go to previous messageGo to next message
devonblzx is currently offline  devonblzx
Messages: 127
Registered: December 2006
Senior 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?


http://static.openvz.org/userbars/openvz-user-2.png
ByteOnSite President

[Updated on: Thu, 25 September 2008 16:28]

Report message to a moderator

Re: Curious about physpages vs RSS [message #34191 is a reply to message #33153] Fri, 12 December 2008 03:11 Go to previous message
cdarnell is currently offline  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.
Previous Topic: Remote Backups / Vzdump
Next Topic: Regarding live virtual migration
Goto Forum:
  


Current Time: Sat Dec 07 17:28:13 GMT 2019