Using NVMe / SSD hard drive as VM memory

Maher Khalil

Member
Jul 11, 2021
232
10
23
43
Hello
I have proxmox server with ZFS file system.
I already have 128 GB of ram for host
I have 20 VMs with 30GB RAM of each which should equal to 600GB of RAM
As you can see I have shortage of RAM
what I thing is it possible to allocate part of hard drive as ram then client can see his ram as 30GB?
please note that system is working without problems but client want to see complete allocated ram
 
Last edited:
No, if you need more RAM you just need to buy more. Only thing I now be able to do that would be Intel Optane DIMMs. Its by the way not recommended to overcommit RAM and commiting 600 GB if you only have 128 GB is waaay to much.
 
Last edited:
VMs can do some amount of dynamic memory allocation. But this is really something where containers shine. It is highly unlikely that all of your workloads continuously need all of these 30GB. If they do, then yes, you will have to buy more RAM. Swapping can bridge the gap in emergencies, but you quickly reach diminishing returns. With containers, the kernel has a lot more insight into what is happening and can allocate memory as needed.