Guide: How to Remove (Disable) the Windows Pagefile 1. What is the Pagefile? The pagefile ( pagefile.sys ) is a hidden system file on your hard drive. Windows uses it as virtual memory —when your physical RAM (Random Access Memory) fills up, less-used data is moved from RAM to this file. Removing it forces everything to stay in physical RAM. 2. Risks of Removing the Pagefile
System Crashes (BSOD) : If all RAM is consumed, Windows will crash immediately with MEMORY_MANAGEMENT or OUT_OF_MEMORY errors. Application Failures : Many programs (especially games, Adobe Creative Suite, browsers with many tabs) expect virtual memory. They may fail to launch or crash. Kernel Memory Issues : Windows core components may be unable to allocate critical memory. No Crash Dump : When the system crashes, Windows cannot save debug information (memory.dmp) without a pagefile.
3. When is Removal Maybe Safe? Only consider removing the pagefile if ALL of these are true:
You have extremely large amounts of RAM (32GB+ for general use, 64GB+ for heavy workloads). You monitor memory usage closely and never exceed 80-90% of physical RAM. You run a specific, predictable workload (e.g., a dedicated RAM disk, embedded system). You are willing to accept instability and data loss risks. remove pagefile
4. Prerequisites
Backup your data (system restore point recommended). Log in as an Administrator . Ensure you have enough RAM for your maximum workload. Optional : Run wmic memphysical get MaxCapacity in Command Prompt to check your motherboard’s max RAM.
5. Step-by-Step: Disable the Pagefile (Windows 10/11) Method A: Via Performance Options (GUI) Guide: How to Remove (Disable) the Windows Pagefile 1
Press Win + R , type sysdm.cpl , press Enter. Go to the Advanced tab. Under Performance , click Settings . Go to the Advanced tab. Under Virtual memory , click Change . Uncheck "Automatically manage paging file size for all drives". Select your system drive (usually C:). Select No paging file . Click Set (a warning dialog will appear – read it). Click Yes to the warning. If you have multiple drives, repeat steps 7-9 for each (disabling pagefile on all drives). Click OK → Apply → OK . Restart your computer for changes to take effect.
Method B: Using Command Line (PowerShell as Admin) # Disable pagefile on all drives Get-CimInstance -ClassName Win32_PageFileSetting | Remove-CimInstance Alternative using wmic (older) wmic pagefileset delete
After the command, restart. 6. Verifying the Pagefile is Removed Windows uses it as virtual memory —when your
Check drive root : In File Explorer, enable "Hidden items" and uncheck "Hide protected operating system files". Look for pagefile.sys on C:\ – it should be gone. Command line : Run dir C:\pagefile.sys /ah – should return "File Not Found". Performance Monitor :
Press Win + R , type perfmon /res . Look for "Memory" → "Committed Bytes" vs "Commit Limit". If commit limit = physical RAM, pagefile is disabled.