How to Fix Page File (pagefile.sys) Too Large on Windows on Windows
pagefile.sys taking up 10-40GB of disk space? Learn what the page file does, whether it's safe to reduce it, and how to optimize page file settings on Windows 10 and 11.
📖
Main Troubleshooting Guide
How to Fix 100% Disk Usage →Complete symptoms, causes, and step-by-step solutions
Symptoms
You might be experiencing this problem if you notice:
- •pagefile.sys consuming 10-40GB or more of disk space
- •System drive running low on space due to pagefile.sys
- •Multiple page files (pagefile.sys + swapfile.sys) taking excessive space
- •Page file size keeps growing even with plenty of RAM
- •WinDirStat or TreeSize shows pagefile.sys as one of the largest files on C:
- •Computer has 32GB+ RAM but pagefile is still 30GB+
- •Virtual memory warning messages appearing
Common Causes
- ⚠Windows "System managed" setting creates pagefile up to 3x your RAM size
- ⚠Applications that allocate large virtual memory pools (databases, VMs, video editing)
- ⚠Memory-mapped files from developer tools increasing virtual memory demand
- ⚠Windows crash dumps configured to use full memory dump (requires large pagefile)
- ⚠Multiple user sessions on the machine increasing virtual memory needs
- ⚠Disk space cleanup tools not addressing pagefile because it is a system file
- ⚠Windows automatically adjusts pagefile upward but rarely shrinks it back
Solutions
Solution 1: Set Custom Page File Size
- 1Press Win+R → type sysdm.cpl → Enter
- 2Go to Advanced tab → Performance → Settings
- 3Go to Advanced tab → Virtual memory → Change
- 4Uncheck "Automatically manage paging file size for all drives"
- 5Select your C: drive → Custom size
- 6For 8GB RAM: set Initial 2048 / Maximum 4096
- 7For 16GB RAM: set Initial 2048 / Maximum 8192
- 8For 32GB+ RAM: set Initial 1024 / Maximum 4096
- 9Click Set → OK → restart for changes to take effect
Solution 2: Move Page File to Another Drive
- 1If you have a second drive with more space:
- 2Open Virtual memory settings (as above)
- 3Select C: drive → "No paging file" → Set
- 4Select your other drive (D:, E:, etc.) → Custom size or System managed → Set
- 5Click OK and restart
- 6Note: keeping at least a small pagefile on C: is recommended for crash dumps
- 7Alternative: set C: to custom (1024/2048) and put the larger pagefile on the second drive
Solution 3: Understand When to Keep a Large Page File
- 1Don't set pagefile to 0 — some apps crash without virtual memory available
- 2If you run virtual machines (VMware, Hyper-V): they need significant pagefile space
- 3Video editing software (Premiere, DaVinci Resolve) may use large virtual memory allocations
- 4If you get "Your system is low on virtual memory" after reducing: increase the Maximum size
- 5Windows crash dumps (minidump) work fine with small pagefiles
- 6Full memory dumps require pagefile >= RAM size (only needed for kernel debugging)
Solution 4: Clean Up Disk Space Alongside Pagefile
- 1Run Disk Cleanup as Admin: cleanmgr → select C: → Clean up system files
- 2Check: Windows Update Cleanup, Previous Windows installations, Temporary files
- 3Also delete: C:\Windows\SoftwareDistribution\Download\* (old update files)
- 4Check hibernation file: if you don't use hibernate, run: powercfg /h off (saves ~RAM size in space)
- 5Combined savings from pagefile optimization + cleanup can recover 20-50GB on a typical system
FIXES THIS IN 5 MINUTES
Fix Page File (pagefile.sys) Too Large on Windows Automatically
RescuePC Toolkit includes 109+ automated repairs that fix this problem with one click. No command line knowledge required.
Download Now - Free TrialNo credit card required • Works on Windows 10 & 11