Memory usage statistics

vladsams

New Member
Jul 8, 2020
2
0
1
39
Proxmox VE 6.1
Cluster, 2 nodes absolutely identical in configuration and hardware.
node1 - 1 VM, linux.
node2 - 3 VMs, all linux.

Proxmox Summary pages for both nodes shows:
node1 RAM usage 26 Gib of 31.
node2 RAM usage 17 Gib of 31.

However, summarizing separately values of VSZ and RSS columns in 'ps aux' output on each node i get:
node1
MEMVSZ_TOTAL: 23 Gib
MEMRSS_TOTAL: 11 Gib
node2
MEMVSZ_TOTAL: 36 Gib
MEMRSS_TOTAL: 16 Gib

It make sense because at least there are more VMs on node2, than on node1, and they use more memory.
But this does not match proxmox statistics, which shows that memory usage is much greater for node1, not node2.

Questions are:
1. Where from proxmox takes its statistics?
2. Is it correct to evaluate used memory based on 'ps aux' output? If it is correct than why proxmox statistics absolutely do not match 'ps' statistics?
 
Last edited:
This can happen from caches that appear as "used" memory, but not in 'ps' output. Use 'free -h' to see RAM stats on the command line. If you use ZFS, you can also check 'arcstat' to see the size of the ARC.
 

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!