Wrong memory usage ?

Alessandro 123

Well-Known Member
May 22, 2016
653
24
58
41
Hi guys,
I have a PVE node with these VM running on it:

1655804789566.png
So, there are 2+2+1+16GB allocated. Total 21GB

But why here I can see 51.96GB used ?
1655804874279.png
 
Should I reduce the ZFS ARC cache manually or it does it on its own ?
In other words, can I add 2 VM with 16GB each ?
 
Should I reduce the ZFS ARC cache manually or it does it on its own ?
There are reports that the host might run into OOM problems, so you should reduce it to a size that is comfortably for you if want to go down that road.

In other words, can I add 2 VM with 16GB each ?
Yes, but you will run into serious memory problems and things will start to slow down. Each VM needs more memory that you allocate to it due to the memory required for the processes around your VMs. You're already using KSM (kernel samepage merging) that - as the name suggests - deduplicates memory. If you add two VMs with the same OS (same patch level) you may see an increase in merged pages which yields in more VMs running with the same memory.

Please also check if you use caching for your harddisks in each VM -> Hardware -> Harddisk -> edit and set to "none" if not already set to this.
 
Yes, but you will run into serious memory problems and things will start to slow down. Each VM needs more memory that you allocate to it due to the memory required for the processes around your VMs. You're already using KSM (kernel samepage merging) that - as the name suggests - deduplicates memory. If you add two VMs with the same OS (same patch level) you may see an increase in merged pages which yields in more VMs running with the same memory.
well, adding 2 VMs more, means a total RAM usage of 52GB on a 64GB host. There are 12GB free for the host.
 
well, adding 2 VMs more, means a total RAM usage of 52GB on a 64GB host. There are 12GB free for the host.
on the highest abstraction level ... maybe ... but it is much more complicated than that. As I already tried to explain, a VM needs more memory than just the memory you allocate for the VM. This depends on a lot of things and cannot be easily determined. e.g. you're already using much more than the sum of the VMs and this "collateral ram usage" will only increase with more VMs until the point that you will constantly read from disk or swap and then eventually OOM. And I don't even talk about slab allocation ... memory management can be VERY complicated.
 

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!