New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -PropertyType DWord -Name RefsEnableLargeWorkingSetTrim -Value 1 

New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -PropertyType DWord -Name RefsNumberOfChunksToTrim -Value 32 

New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -PropertyType DWord -Name RefsEnableInlineTrim -Value 1

https://learn.microsoft.com/en-us/troubleshoot/windows-server/backup-and-storage/fix-heavy-memory-usage-refs

 

fsutil behavior set disableDeleteNotify refs 1