2 ms·
You can but you'd hate the results, since the OS would have to page memory to/from disk like crazy when the working set runs out. See: https://blogs.technet.mi
by Someone1234 8y ago
You can but you'd hate the results, since the OS would have to page memory to/from disk like crazy when the working set runs out. See:
https://blogs.technet.microsoft.com/mrsnrub/2009/12/08/windows-system-resource-manager-wsrm-does-exactly-what-it-says-on-the-tin/ https://blogs.technet.microsoft.com/mrsnrub/2009/12/08/windo...
Or:
https://docs.microsoft.com/en-us/windows/desktop/api/memoryapi/nf-memoryapi-setprocessworkingsetsizeex https://docs.microsoft.com/en-us/windows/desktop/api/memorya...
You can call the Win32 API directly from Powershell if you wish (w/QUOTA_LIMITS_HARDWS_MAX_ENABLE). System Resource Manager is only available on Windows Server.
All you're doing is limiting how much physical memory the process can consume before it pages. In either case the process will continue to consume all the memory it desires, it just varies where the additional consumption is stored.