sodcalculator

10 Tech How-To

Reset Virtual Memory on Windows 11: Step-by-Step

Guide 10-14102 · Updated · Step by step

If Windows 11 is running low on memory, throwing “Your system is low on virtual memory” warnings, or struggling with performance, resetting virtual memory can help. This guide walks you through clearing and reconfiguring the paging file, which is what Windows uses as an overflow for RAM. You’ll need administrator access, and it’s wise to close all open programs before starting.

What You’ll Need

  • An account with administrator privileges on the Windows 11 PC.
  • At least 10–15 minutes of time (the system may need to restart).
  • Knowledge of how much RAM your PC has (optional but helpful for setting a custom size).

Step-by-Step

  1. Open System Properties. Press Win + R, type sysdm.cpl, and press Enter. This opens the System Properties window directly.
  2. Go to the Advanced tab. Click the Advanced tab at the top of the System Properties window.
  3. Open Performance Settings. Under the “Performance” section, click the Settings… button.
  4. Switch to the Advanced tab. In the Performance Options window, click the Advanced tab at the top.
  5. Open Virtual Memory settings. Under the “Virtual memory” section, click the Change… button.
  6. Uncheck automatic management. At the top of the Virtual Memory window, uncheck the box next to “Automatically manage paging file size for all drives”. This unlocks the manual controls.
  7. Reset to system-managed (or custom). Select your system drive (usually C:) from the list. Then choose one of these options:
    • System managed size – lets Windows decide the size. This is the safest reset.
    • Custom size – lets you set an initial and maximum size. A common recommendation is 1.5× your RAM for initial and 3× for maximum (in MB). For example, with 8 GB RAM, set Initial to 12288 MB and Maximum to 24576 MB.
    • No paging file – not recommended unless you have a very specific reason; it can cause instability.
  8. Click Set. After choosing an option, click the Set button to apply it to the selected drive.
  9. Apply and restart. Click OK on all open dialog boxes. If you changed the paging file size, Windows will prompt you to restart your computer. Save any open work and restart.
  10. Verify the reset. After restarting, you can repeat steps 1–5 to confirm the new settings are active. The paging file will have been recreated fresh, clearing any corruption or fragmentation.

Common Mistakes

  • Setting a tiny paging file. If you set the maximum too low, Windows may run out of virtual memory when you open many programs, causing crashes.
  • Disabling the paging file entirely. Only do this if you have a massive amount of RAM (e.g., 32 GB+) and never use memory-heavy apps. Even then, some programs expect a paging file to exist.
  • Forgetting to click “Set” – if you change the values but don’t click Set, the changes don’t apply.
  • Choosing a drive with little free space. The paging file needs room to grow. If you set a large maximum on a nearly full drive, you’ll get errors.
  • Not restarting. The new paging file isn’t created until you restart Windows.

Tips

  • If you have multiple drives, you can place the paging file on a fast SSD (not an external drive) for better performance.
  • Let Windows manage the size unless you have a specific reason not to. The system adjusts it based on actual usage, which is more efficient than a fixed size.
  • If you’re setting a custom size, make the initial and maximum the same value. This prevents the paging file from growing and shrinking, which can reduce fragmentation.
  • Check your RAM usage first. If you’re consistently using 90%+ of RAM, a bigger paging file will help, but adding more physical RAM is the real fix.

Troubleshooting

  • Changes don’t stick after restart. Make sure you clicked Set and then OK. Also, if you unchecked “Automatically manage” but then didn’t select a drive, Windows may revert.
  • “Insufficient memory” errors persist. If you’ve set a large paging file and still get errors, you may have a corrupted pagefile. Try setting it to “No paging file” on all drives, restart, then set it back to “System managed” and restart again.
  • Can’t uncheck the automatic box. This is grayed out if you don’t have administrator privileges. Right-click the Start button and select “Windows Terminal (Admin)” or “Computer Management” to run as admin.
  • System freeze after changing settings. Boot into Safe Mode (hold Shift while clicking Restart, then troubleshoot > advanced options > startup settings) and revert the changes.
  • Very slow performance after reset. It’s normal for the first few minutes after restart while Windows rebuilds the paging file. If it persists, check that you have enough free disk space.

Frequently Asked Questions

What does resetting virtual memory actually do?

It deletes the existing pagefile.sys file and creates a fresh one. This clears any file corruption, resets the size to your chosen value, and can resolve performance issues caused by a bloated or fragmented paging file.

Is it safe to reset virtual memory?

Yes, as long as you keep the paging file enabled and set a reasonable size. The only risk is if you disable it entirely or set it too small, which can cause crashes.

How big should my paging file be?

For most users, “System managed” is best. If you want a manual size, a common rule of thumb is 1.5× your RAM for initial and 3× for maximum. With 16 GB RAM, that’s 24576 MB initial and 49152 MB maximum.

Will resetting virtual memory delete my files?

No. The paging file is a system file that stores temporary data. Resetting it does not affect your personal files, installed programs, or settings.

Do I need to reset virtual memory regularly?

No. It’s a troubleshooting step, not routine maintenance. Only do it if you’re experiencing specific issues like low-memory warnings or unexplained crashes.

Can I put the paging file on another drive?

Yes. Select the drive in the list and choose “System managed” or “Custom size”. Using a fast SSD (not an external drive) can improve performance, but avoid putting it on a drive with little free space.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →