ProxMox shows 11% RAM usage but top and free -g show 99% usage

ned

Renowned Member
Jan 26, 2015
113
2
83
Hi,

I am running ProxMox with OpenVZ Containers for 2 months now and love it. I am having a issue with my RAM usage as free -g command displays 99% usage and ProxMox web interface displays 11% usage.

htop program shows displays 11% usage and I know htop calculates buffers and cache with actual RAM.

Code:
# free -g
             total       used       free     shared    buffers     cached
Mem:           118        116          1          0          2        100
-/+ buffers/cache:         13        104
Swap:            0          0          0

top output

Code:
MiB Mem:    120872 total,   119718 used,     1153 free,     2756 buffers
MiB Swap:      976 total,       76 used,      900 free,   103206 cached

htop output

Code:
|13735/120872MB

ScoutRealtime app shows

Code:
memory used

   13760 MB of 120872 MB




meminfo outout

Code:
~# cat /proc/meminfo 
MemTotal:       123773160 kB
MemFree:         1159692 kB
Buffers:         2822964 kB
Cached:         105687992 kB
SwapCached:        25696 kB
MemCommitted:   36065280 kB
VirtualSwap:     1336768 kB
Active:         35571388 kB
Inactive:       81330396 kB
Active(anon):    5329632 kB
Inactive(anon):  3611956 kB
Active(file):   30241756 kB
Inactive(file): 77718440 kB
Unevictable:       10928 kB
Mlocked:           10928 kB
SwapTotal:       1000440 kB
SwapFree:         921840 kB
Dirty:             89756 kB
Writeback:            16 kB
AnonPages:       7051040 kB
Mapped:           610028 kB
Shmem:            544780 kB
Slab:            5275068 kB
SReclaimable:    5056124 kB
SUnreclaim:       218944 kB
KernelStack:       14960 kB
PageTables:       129856 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    62887020 kB
Committed_AS:   19869256 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      253984 kB
VmallocChunk:   34359371884 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8128 kB
DirectMap2M:    125820928 kB

I am running

Code:
# pveversion 
pve-manager/3.3-1/a06c9f73 (running kernel: 2.6.32-32-pve)

What am I missing?
 
Last edited:
Hi,

I am running ProxMox with OpenVZ Containers for 2 months now and love it. I am having a issue with my RAM usage as free -g command displays 99% usage and ProxMox web interface displays 11% usage.

htop program shows displays 11% usage and I know htop calculates buffers and cache with actual RAM.

Code:
# free -g
             total       used       free     shared    buffers     cached
Mem:           118        116          1          0          2        100
-/+ buffers/cache:         13        104
Swap:            0          0          0

top output

Code:
MiB Mem:    120872 total,   119718 used,     1153 free,     2756 buffers
MiB Swap:      976 total,       76 used,      900 free,   103206 cached

htop output

Code:
|13735/120872MB

ScoutRealtime app shows

Code:
memory used

   13760 MB of 120872 MB




meminfo outout

Code:
~# cat /proc/meminfo 
MemTotal:       123773160 kB
MemFree:         1159692 kB
Buffers:         2822964 kB
[B]Cached:         105687992 kB[/B]
SwapCached:        25696 kB
MemCommitted:   36065280 kB
VirtualSwap:     1336768 kB
Active:         35571388 kB
Inactive:       81330396 kB
Active(anon):    5329632 kB
Inactive(anon):  3611956 kB
Active(file):   30241756 kB
Inactive(file): 77718440 kB
Unevictable:       10928 kB
Mlocked:           10928 kB
SwapTotal:       1000440 kB
SwapFree:         921840 kB
Dirty:             89756 kB
Writeback:            16 kB
AnonPages:       7051040 kB
Mapped:           610028 kB
Shmem:            544780 kB
Slab:            5275068 kB
SReclaimable:    5056124 kB
SUnreclaim:       218944 kB
KernelStack:       14960 kB
PageTables:       129856 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    62887020 kB
Committed_AS:   19869256 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      253984 kB
VmallocChunk:   34359371884 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8128 kB
DirectMap2M:    125820928 kB

I am running

Code:
# pveversion 
pve-manager/3.3-1/a06c9f73 (running kernel: 2.6.32-32-pve)

What am I missing?
Hi,
perhaps one process has an memory leak?

If you press "m" in top, do you see an huge memory-process?

Udo

edit: on the second look, I see that your mem is cached...
 
Last edited:
This is how to calculate actual free RAM, use free command to get the values and then add number...

free -m


'free' + ('buffers' + 'cached')
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!