OpenVZ Forum


Home » General » Discussions » /proc/meminfo inside VE
/proc/meminfo inside VE [message #31156] Thu, 19 June 2008 17:02 Go to next message
Zirafarafa is currently offline  Zirafarafa
Messages: 13
Registered: April 2008
Junior Member
Hi all

I have two identically configured servers, running 2.6.18-53.1.19.el5.028stab053.14

They each have 2 Gb RAM, and 2 Gb swap.

cat /proc/meminfo | grep Total
MemTotal:      2073252 kB
HighTotal:     1179440 kB
LowTotal:       893812 kB
SwapTotal:     2096472 kB
VmallocTotal:   110584 kB
HugePages_Total:     0


This output is the same on both servers

However, each is running a VE (with identical configs except for the ip and hostname)

Inside VE 102 (on host 1), I get a different /proc/meminfo to VE 103 (on host 2):

On Host 1:
vzctl exec 102 "cat /proc/meminfo | grep Total"
MemTotal:      1600000 kB
HighTotal:           0 kB
LowTotal:      1600000 kB
SwapTotal:           0 kB
VmallocTotal:        0 kB
HugePages_Total:     0


On Host 2:
vzctl exec 103 "cat /proc/meminfo | grep Total"
MemTotal:      2073252 kB
HighTotal:           0 kB
LowTotal:      2073252 kB
SwapTotal:           0 kB
VmallocTotal:        0 kB
HugePages_Total:     0


Can anyone explain the difference in this output?
Re: /proc/meminfo inside VE [message #31171 is a reply to message #31156] Fri, 20 June 2008 08:12 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Is vzctl version the same? Note that newer vzctl sets meminfo parameter to "privvmpages:1", while older sets it to "off". See --meminfo description in vzctl man page for details.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: /proc/meminfo inside VE [message #31183 is a reply to message #31156] Fri, 20 June 2008 11:14 Go to previous message
Zirafarafa is currently offline  Zirafarafa
Messages: 13
Registered: April 2008
Junior Member
same vzctl and vzctl-lib version (3.0.22)

Same setting for /proc/sys/kernel/ve_meminfo (both 0)
Previous Topic: Template metadata for fedora-8
Next Topic: Open VZ + VirtualBox together???
Goto Forum:
  


Current Time: Fri May 03 22:33:20 GMT 2024

Total time taken to generate the page: 0.01698 seconds