Problems and testing
What is the Windows page file, and what size should it be?
The page file is space on your drive that Windows uses as overflow for RAM. For almost everyone, the right size is the one Windows picks: leave "Automatically manage paging file size" turned on and keep the file on your fastest SSD. Turning it off doesn't make your PC faster, and it can make games and apps crash even when you have plenty of RAM.
What does the page file actually do?
It does two jobs. The first is obvious: when RAM fills up, Windows moves memory that hasn't been used for a while out to the page file (a hidden file called pagefile.sys) so active programs can use the space.
The second job matters more, and it's why the page file is useful even on a 64GB PC. When a program starts, it often asks Windows to reserve more memory than it will actually use. Windows promises that memory, and the total of those promises is called the commit charge. Microsoft defines the most Windows can promise, the commit limit, as your RAM plus all page files combined.
When the commit charge reaches the limit, Windows can't promise any more memory, and programs fail. Microsoft says this can cause freezing, crashing and other malfunctions. This can happen while Task Manager still shows free RAM, because reserved memory isn't the same as memory in use.
Where do I see this in Windows?
Open Task Manager, go to Performance, then Memory. The "Committed" line shows two numbers, such as 18/40GB. The first is the commit charge, the second is the commit limit. If the first number regularly gets close to the second, you're short on memory, and a bigger page file or more RAM will help.
The same page also shows "In use (Compressed)". Since Windows 10, Windows compresses unused memory in RAM before it pages it out to disk, which is much faster than writing to the SSD. Compression and the page file work together, so you don't need to manage either one.
How big does Windows make it?
When the page file is system managed, Windows starts small and grows it as needed. According to Microsoft, it can grow up to three times your RAM or 4GB, whichever is larger, limited to an eighth of the drive's size. It starts growing when the commit charge reaches 90% of the limit.
Windows also sizes the page file to hold a crash dump, the file it writes after a blue screen so the cause can be traced. The default automatic dump can need a page file as large as your RAM, up to 32GB. Without a big enough page file, no full crash dump is written.
Should I turn the page file off if I have lots of RAM?
No. With no page file, Microsoft says the commit limit is slightly less than your physical RAM, so a 32GB PC can only promise programs about 32GB in total, however much of it sits unused. Mark Russinovich, now Microsoft Azure's chief technology officer, wrote in his well-known article on Windows memory that having a page file generally means more usable memory for the system, not less.
Game developers see the problems firsthand:
- Intel says Hogwarts Legacy closes with a video memory error on Arc graphics cards when virtual memory is disabled, and tells players to keep it on.
- Nixxes, the studio behind Sony's PC ports, recommends letting Windows manage the page file automatically when its games crash with video memory errors.
- Rockstar says custom virtual memory settings can cause Red Dead Redemption 2 to crash, and tells players to switch back to automatic management.
Turning it off also doesn't make things faster. If your RAM never fills up, Windows barely touches the page file anyway.
Does the page file wear out my SSD?
Not in any way you'll notice. When Microsoft studied page file use while building Windows 7, it found page file reads outnumbered writes by about 40 to 1, and it concluded that there are few better files to put on an SSD. Those figures are from 2009, and SSDs have proven far tougher than people feared. In a well-known endurance test reported by PCWorld, consumer SSDs survived between 728TB and more than 2PB of writes, while the tester's own desktop SSD logged less than 2TB in about two years.
The page file belongs on your fastest drive. On a PC with an old hard drive and an SSD, put it on the SSD. One exception: to write crash dumps, Microsoft says the page file must be on the boot drive, which is usually your SSD anyway.
When should I set the size manually?
Only if something specific goes wrong. Microsoft documents one case: apps that grab memory quickly, such as compilers, can fail with out-of-memory errors because the automatic page file can't grow fast enough. In that case, Microsoft recommends a custom page file with an initial size of 1.5 times your RAM.
If you'd rather size it yourself, Russinovich's method is the sensible one. Run your heaviest normal workload, note the peak commit charge in Task Manager, and subtract your RAM. That's your minimum. Double it for the maximum. If the result is negative, size it for your crash dump setting instead. He also points out that fixed formulas like "1.5x RAM" for everyone don't hold up.
To change it:
- Press Win+R, type
sysdm.cpland press Enter. - Go to the Advanced tab and click Settings under Performance.
- On the next Advanced tab, click Change under Virtual memory.
- Untick "Automatically manage paging file size for all drives" to set a custom size, or tick it to go back to automatic.
- Click Set, then OK, and restart.
Is a big page file a substitute for more RAM?
No. It stops crashes, but SSDs are much slower than RAM, so a PC that leans on the page file all the time will stutter and lag. If Task Manager shows your commit charge regularly near the limit, or memory in use near your total RAM, you need more RAM. Our guide on finding what's using your RAM helps you check first, and our guide on making 16GB go further covers other ways to cope until you upgrade. If you're deciding how much to buy, see how much RAM you need for gaming.
The short version
- Keep the page file on and set to "Automatically manage" unless you have a specific reason not to.
- Put it on your fastest SSD. It won't wear the drive out in any way that matters.
- Turning it off doesn't speed anything up and can make games and apps crash.
- Set a custom size only to fix out-of-memory errors, and base it on your peak commit charge.
- If you're using the page file heavily every day, the real fix is more RAM.
Sources
- Microsoft Learn, Introduction to page files (updated Feb 12, 2026)
- Microsoft Learn, How to determine the appropriate page file size for 64-bit versions of Windows (updated Feb 12, 2026)
- Microsoft Learn, Memory allocation errors can be caused by slow page file growth (updated Feb 12, 2026)
- Mark Russinovich, Pushing the Limits of Windows: Virtual Memory (Nov 17, 2008)
- Microsoft, Engineering Windows 7: Support and Q&A for Solid-State Drives (May 5, 2009)
- PCWorld, Grueling endurance test blows away SSD durability fears (Dec 5, 2014)
- Intel, Hogwarts Legacy Is Forcibly Terminated if Virtual Memory is Disabled on Intel Arc Graphics
- Nixxes Support, Video Memory Crash
- Rockstar Games Support, Red Dead Redemption 2 on PC crashing under custom virtual memory settings (Apr 29, 2024)