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.
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
- Press the Windows key and search for "View advanced system settings".
- Under Performance, press Settings.
- Open the Advanced tab and press Change under Virtual memory.
- 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.
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.
More guides.
If you mostly play one game, its page has the steps and the settings for that game. See all 37 games.
How to fix stuttering and FPS dropsHow to get more FPS on a low-end PC or laptopHow to boost FPS on a PCHow to optimize Windows 11 for gamingLow GPU usage in games: what it means and how to fix it
FPS boost steps for the game you play.
Each of these has its own page: the steps, the settings worth changing and a one-click tweak set.
RobloxFortniteLeague of LegendsMinecraftCall of DutyCounter-Strike 2PUBGDota 2ValorantApex LegendsRocket LeagueWorld of WarcraftROB RUNGTA VRed Dead Redemption 2Marvel RivalsRainbow Six SiegeOverwatch 2Delta ForceFiveMDeadlockWar ThunderCyberpunk 2077Dead by DaylightTeam Fortress 2Battlefield 6RustEscape from TarkovARC RaidersDayZElden RingPalworldHelldivers 2RetracHunt: Showdown 1896THE FINALSPath of Exile 2
Free to start. Works in every game. Undo any time.
Windows 10 and 11. About 99 MB. Signed installer.