Is there any way to "Reset" or "Clear" windows paging file size which is managed by system?

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.

Eugene K.

Posted 2018-06-28T05:18:47.060

Reputation: 73

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 Superfetch service from services.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.

– Pimp Juice IT – 2018-06-28T06:00:00.353

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

Disabling 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

Answers

0

Delete registry key

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl\LastCrashTime

Then reboot.

Hope this helps someone with the same issue - just spent 2 hrs trying to find the solution and this worked (Server 2012 R2).

blackworx

Posted 2018-06-28T05:18:47.060

Reputation: 223

0

This can be done through the UI. You have to find the "System" or "System Info" control panel. In Windows 10, this can be found by right-clicking "System Info" neat the bottom of the dialog. From there, click "Advanced system settings" (bottom link on the left), then go to the "Advanced" tab and click the "Settings..." button in the "Performance" section. Next click the "Advanced" tab and you should see your pagefile usage listed in the "Virtual Memory" section. Click "Change..." to alter the settings. A reboot is required for most changes.

James

Posted 2018-06-28T05:18:47.060

Reputation: 1 029