Windows 95% RAM usage

pegoku

New Member
Jan 21, 2022
23
0
1
Hello, I have a windows 11 VM and for some reason it uses + 95% of the selected RAM, is there any way to limit it?
Thank you

PS: If I create an ubuntu VM it doesn't use as much RAM, why?
 
There are several points:
1.) In case you use PCI passthrough it will always use the full RAM because of DMA.
2.) You didn't installed or configured the qemu guest agent and virtio drivers (see here) so Win won't report the RAM usage to PVE and PVE will just show how much RAM the KVM process is using that virtualizes your Win11 VM. Most likely your VM is indeed using 95% of the physical RAM (and this is what PVE will show you when not getting "wrong" numbers from Win11 through the guest agent) but Win will report RAM used for caching as "free" instead of "used" or "available" so what you see in Windows isn't the real physical RAM that is used or that is blocked and can't be used by other guests or the host itself. Its similar to what is described at linuxatemyram.com for linux. So if you want to see the RAM utilization from the point of view of the Win11 guest you would need to install and enable (in the VMs options tab) the QEMU guest agent and maybe also the ballooning (your VMs hardware tab -> RAM). All modern OSs will use all RAM you throw at them for caching if not used by other processes, so its normal that all guests will always be at over 90% RAM usage. If you don`t want that your VMs will "waste" too much RAM for caching, don't allocate your VMs more RAM than actually needed.
 
Last edited:

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!