2
Is there any way to "Reset" or "Clear" windows paging file size which is managed by system? In my case I have 16 gigs of ram installed and all paging file settings are set to auto. At some point in time memory leak happened and my pagefile of ~2 gb incrased in size to 16 GB. How to I force windows to reset it size to it's original size? I've tried disabling it completely and re-enabling, setting custom size to 2 GB and then setting it back to auto - it's always changing back to 16 GB when returning to auto.
2
Consider moving the pagefile to a different disk partition and in particular a different physical disk if applicable on this system and then reboot. See this post for some tips on ensuring it clear at reboot: https://www.maketecheasier.com/clear-pagefile-every-shutdown-windows10/ If you have a lot of disk I/O like camera streams, etc. on your PC, consider changing the
– Pimp Juice IT – 2018-06-28T06:00:00.353Superfetch
service fromservices.msc
to manual and then stopping it. Simple enough to test and to revert back if needed as well. Quick ideas for you just in case.In addition to above, if you are not using hibernate functionality, you can turn it off through GUI or from elevated command prompt (
powercfg -h off
). This will free disk space equal to RAM in your system. – Sandeep – 2018-06-28T07:27:30.843Disabling pagefile requires a reboot, then after e-enabling it you need to reboot again. – Moab – 2018-06-28T11:29:02.570
Moving pagefile to different disk did just that - moved pagefile.sys with the same size (16GB) to different disk. Group policy doesn't seem to have an effect or it's just probably zeroes all 16GB of pagefile. – Eugene K. – 2018-06-29T04:49:01.510
Did you ever get an answer to this? Got a 2012R2 terminal server here that suffered a memory leak in the past and now auto pagefile settings are gobbling up half the hard drive. Would rather have it system managed if possible. Surely there must be a way to clear the data it uses to calculate the preferred size? – blackworx – 2019-11-19T23:07:26.737