Reported RAM usage for Linux VM and Node

bellocarico

Member
Sep 17, 2022
54
4
13
I believe the current RAM usage for Linux VM not to be accurate. I would expect the reported value (under Summary) to be take from free's used column

1663833016000.png

Where instead it seems like a different calculation is made (used+buffer+cache)
1663833080227.png

It is normal for Linux to buffer and cache as much as it needs/can but we all know by now that's not real memory demand.
So I would not personally report the buffer/cache (so short yellow bar only) but if you still think there's a value in this can the colors be changed for each of them? e.g.

1663833331793.png


The very same principle applies to the node.What you call "RAM usage"
1663835295100.png
It's rather "RAM allocated" which can easily raise above the amount of RAM installed on the system (oversubscribed). Perhaps this second chart should be split into two like Ram usage (actual demand considering balooning if any) and RAM allocated.

If you do go the way I'm suggesting the node should also report on allocated CPUs that can be oversubscribed as well.


Thanks
 
Last edited:
  • Like
Reactions: Neobin
So I would not personally report the buffer/cache (so short yellow bar only) but if you still think there's a value in this can the colors be changed for each of them? e.g.

1663833331793.png
Some color-coding would be nice. But you really want to know the total used RAM including cached/buffered data.
1.) ZFSs ARC cache doesn‘t count as buff/cache and is userspace. So the “used“ part of the bar should be divided in two colors for ARC and non-ARC in case ZFS is used
2.) you want to know when the free (not the available) RAM drops below 20%, because thats when ballooning (hardcoded) and KSM (default but changeable) will kick in

For VMs this is sadly not possible as PVE only gets the guests RAM usage from the qemu-guest-agent and that is just reporting used, total and free RAM. It won‘t give PVE any information on how much RAM is used for caching, so PVE can't know how much that VM got as "availabe" or “buff/cache“.
 

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!