Guide

Virtual memory for gaming: the best pagefile setting

Virtual memory is space on your drive that Windows uses when the PC's memory fills up. The file it uses is called the pagefile. The best setting for almost every gaming PC is the one Windows picks by itself. Here is why, and when to change it.

Free to start, no card Signed with Microsoft Trusted Signing One button undoes every tweak
Last updated

The short answer

Leave "Automatically manage paging file size" turned on, and make sure the pagefile is on an SSD. Do not turn the pagefile off, whatever amount of memory you have.

What it does in a game

When memory runs short, Windows moves what has not been used for a while into the pagefile to make room. Without that room, the game or Windows has nowhere to go, and the game closes with an out-of-memory error.

The pagefile is not extra memory for FPS. A drive is far slower than memory, so a game that leans on the pagefile stutters. It is a safety net, not a speed-up.

Why you should not turn it off

Some guides say to turn the pagefile off on a PC with 16 or 32 GB. Games and Windows reserve more memory than they use, and that reservation counts against the pagefile. With it off, a game can crash while memory still looks half empty. There is no FPS to gain from it.

Where the setting is

  1. Press the Windows key and search for "View advanced system settings".
  2. Under Performance, press Settings.
  3. Open the Advanced tab and press Change under Virtual memory.
  4. Make sure "Automatically manage paging file size for all drives" is ticked.

When to change it

  • The pagefile is on a hard disk. Move it to an SSD: untick the automatic box, set the hard disk to "No paging file", set the SSD to "System managed size", and restart.
  • The drive is almost full. Windows cannot grow the pagefile without free space. Free up room first.
  • A game crashes with an out-of-memory error. Set a custom size on the SSD with a larger maximum, then restart.

If the PC has 8 GB

On 8 GB the pagefile is in use most of the time in modern games, and that shows as stutter. The pagefile setting cannot fix that. Closing what runs behind the game helps, and more memory is the real fix. See more FPS on a low-end PC and how to fix stuttering.

EM Game Booster closes what runs behind a game, which frees memory for it.

Questions

The short answers.

What is the best virtual memory setting for gaming?

Leave it on automatic, with the pagefile on an SSD. Windows grows it when a game needs room.

Does virtual memory increase FPS?

No. It stops crashes when memory runs out. A game that relies on it runs worse, because a drive is much slower than memory.

Should I turn off the pagefile with 16 or 32 GB of RAM?

No. Games reserve more memory than they use, and that counts against the pagefile. With it off, games can crash with memory to spare.

How much virtual memory do I need for 16 GB of RAM?

Let Windows manage it. If you set it by hand, a common choice is a minimum near the size of your memory and a larger maximum.

Is virtual RAM the same as real RAM?

No. It is drive space standing in for memory. It is far slower, and it cannot replace adding memory.

Free to start. Works in every game. Undo any time.

Windows 10 and 11. About 99 MB. Signed installer.