Caching (including ZFS ARC) and VM overhead.But why here I can see 51.96GB used ?
free -h
?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.Should I reduce the ZFS ARC cache manually or it does it on its own ?
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.In other words, can I add 2 VM with 16GB each ?
well, adding 2 VMs more, means a total RAM usage of 52GB on a 64GB host. There are 12GB free for the host.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.
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.well, adding 2 VMs more, means a total RAM usage of 52GB on a 64GB host. There are 12GB free for the host.