proxmox node uses more ram than underlying containers.

eth

Renowned Member
Feb 24, 2016
69
3
73
39
Proxmox node:
Code:
root@pve:~# free -mh
             total       used       free     shared    buffers     cached
Mem:           31G        30G       791M        46M        16M       416M
-/+ buffers/cache:        30G       1.2G
Swap:         8.0G       3.1G       4.9G

Container 1:
Code:
ree -mh
             total       used       free     shared    buffers     cached
Mem:           29G        17G        11G        46M         0B        81M
-/+ buffers/cache:        17G        11G
Swap:         4.9G       1.2G       3.7G

Container 2:
Code:
free -mh
             total       used       free     shared    buffers     cached
Mem:          2.0G       130M       1.9G        46M         0B        46M
-/+ buffers/cache:        83M       1.9G
Swap:         2.0G        71M       1.9G

I tried dropping the caches on the proxmox node:
Code:
echo 3 > /proc/sys/vm/drop_caches

But ram usage was still the same.

Any ideas?
 
Don't drop the cache.... this nonsense if often written but it'll free up your ram, yes, but will tremendously slow down your whole system.

Linux uses RAM differently than Windows. Please refer to this: http://www.linuxatemyram.com/

What about your system? Do you use ZFS?