Windows, "Optimize drives" RAM usage & best practices

smalltimemsp

New Member
Jan 25, 2024
6
0
1
There's previous discussion here:
https://forum.proxmox.com/threads/memory-spikes-win-2022-trying-to-defragment-a-1tb-disk.136542/
https://forum.proxmox.com/threads/windows-vm-requires-lots-of-ram-to-trim-larger-hard-disks.96288/

There's also this old Microsoft article, but it's for Server 2012:
https://support.microsoft.com/en-us...ned-luns-b6f87710-272e-430a-f194-9a74a697133f

I have the same issue, memory usage goes to 97% inside the Windows Server VM while it runs scheduled trimming. I'd disable the scheduled optimization altogether, but from what I understand Windows doesn't trim the storage otherwise. Does anyone have any more information about this? Is there any way to limit how much memory the optimizer can use? Should I disable it always anyway?

It's an SSD ZFS pool for the VM volume, SSD emulation and Discard are enabled, controller is VirtIO SCSI Single.

If I can't limit the memory usage I'll probably just disable optimization completely to avoid stalling other services running in the VM. Perhaps it doesn't harm much with enterprise SSDs.
 

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!