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.
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.