1. Immediately reduce it (reboot method)
Do this as local admin (e.g., on a Windows Server or desktop):
- Open System Properties
- Press
Win + R, type:SystemPropertiesAdvanced.exe
and hit Enter. - Go to Advanced tab → Performance → Settings…
- On the Advanced tab, click Change… under Virtual Memory.
- Press
- Uncheck auto‑manage
- Uncheck “Automatically manage paging file size for all drives”.
- Select your
C:drive, then choose Custom size.
- Set much smaller values
For a 128 GB‑RAM system, a reasonable fixed pagefile is about 16–32 GB total.
Example:- Initial size:
16384 - Maximum size:
32768
(i.e., 16 GB min, 32 GB max) - Click Set, then OK on all dialogs.
- Initial size:
- Force the shrink via reboot
- Either:
- Shut down the machine completely, power it back on, or
- Reboot once.
- After boot, Windows will recreate
pagefile.syscloser to your new settings.
- Either:
This should reclaim tens of gigabytes on C:.
2. Limit the size long‑term
- Keep it on
C:but locked to a fixed range.- Do not switch back to “System managed” if you want control; that’s why it grew to 50 GB.
- Keep “Automatically manage paging file size for all drives” unchecked.
- Set both Initial and Maximum to the same value (e.g.,
16384MB = 16 GB) if you want it truly fixed.
- Typical sane ranges for 128 GB RAM:
- Minimum: 8–16 GB
- Maximum: 16–32 GB
This is enough for crash dumps and normal memory over‑commit without eating all your drive.
- If you really must reclaim max space:
- You can drop it as low as 2–4 GB on a 128 GB RAM machine, but that starts to risk issues if a misbehaving app or driver tries to allocate huge virtual memory.