OpenVZ Forum


Home » General » Support » HN beancounters and system memory.
Re: HN beancounters and system memory. [message #38780 is a reply to message #38775] Wed, 27 January 2010 09:41 Go to previous message
glic3rinu is currently offline  glic3rinu
Messages: 16
Registered: January 2009
Junior Member
I'm getting more and more confused Sad

Executing 'free -m' in all containers..

HN# for i in 103 105 106 107; do vzctl exec $i "free -m"; done

vid   total used  free shared buffers cached
103:  4000  2797  1202   0      0       0
105:  1536  839   696    0      0       0
106:  1536  416   1119   0      0       0
107: 12000  8480  3519   0      0       0
------------------------------------------------
           12532

*Note: I cut some irrelevant information for better view

Comparing with executing free in the HN...

HN# free -m
             total used free shared buffers cached
Mem:         12008 8299 3708   0      288    4231
-/+ buffers/cache: 3779 8229
Swap:         8575  0   8575


How is possible that the container with vid 107 have more memory (8480MB) than the reported by command free in the HN (8299MB)? (Note: swap usage=0)

vzmemcheck reports something similar:

# vzmemcheck -vA
Output values in Mbytes
veid  LowMem   RAM    MemSwap  Alloc
util   util    util    util
107   1219.66 3436.54 3436.54 8899.95
114    0.02    0.02    0.02    0.02
103    14.31  986.88  986.88  2811.73
105    7.77   600.83  600.83   849.09
106    9.02   223.00  223.00   449.64
---------------------------------------------------
Sum: 1250.77 5247.26  5247.27 13010.42

*Note: I cut some irrelevant information for better view

HN# free -m
             total used free shared buffers cached
Mem:         12008 8643 3364  0     316     4491
-/+ buffers/cache: 3835 8172
Swap:         8575  0   8575

The total memory used by containers (without caches) (5247.26MB) are higher than the total system memory (without caches) (3835MB).

What am I missing?

I appreciate any comment!

Thanks!

[Updated on: Wed, 27 January 2010 09:47]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: need help using xt_tcpudp and xt_state modules within a VE
Next Topic: Network down after 5 minutes. Only restarting fixes
Goto Forum:
  


Current Time: Sat Jul 19 18:24:28 GMT 2025

Total time taken to generate the page: 0.05817 seconds