Is there thin provisioning for memory?

Feb 19, 2022
18
0
6
43
I am aware we got thin provisioning for storage with LVM for example out of the way
but curious if there is thin provisioning for memory also, as that is another big one
 
I am aware we got thin provisioning for storage with LVM for example out of the way
but curious if there is thin provisioning for memory also, as that is another big one
It is already the default, but this does not make sense with a modern operation system that caches everything it reads in memory. Your VM will only have a small amount of memory used if you start it up (not looking at hugepages, different story) and will in general gradually use all the memory it has. An OS that does not use all it's available memory for caching is very slow. I can recommend Linux Ate my Memory, which summarizes the difference between Windows and Linux.

What actually exists is memory deduplication and also compression. The former is already included in PVE and has been for many years: kernel samepage merging (KSM). @bbgeek17 already mentioned it. Compression is currently in development for general stuff, but ZFS has it already for block cache, so it's kinda there if you're using ZFS.
 
It is already the default, but this does not make sense with a modern operation system that caches everything it reads in memory. Your VM will only have a small amount of memory used if you start it up (not looking at hugepages, different story) and will in general gradually use all the memory it has. An OS that does not use all it's available memory for caching is very slow. I can recommend Linux Ate my Memory, which summarizes the difference between Windows and Linux.

What actually exists is memory deduplication and also compression. The former is already included in PVE and has been for many years: kernel samepage merging (KSM). @bbgeek17 already mentioned it. Compression is currently in development for general stuff, but ZFS has it already for block cache, so it's kinda there if you're using ZFS.
Yeah i thought as much...yup agree that most systems will use memory to cache and almost always will use all except if not doing anything at all. The deduplication, where do i read up on proxmox's implementation and how to use?
 

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!