Virtual Memory, governed by a hidden system file named pagefile.sys, is a core component of the Windows 11 architecture. When your physical RAM fills up, Windows seamlessly offloads inactive data from RAM to the pagefile on your hard drive, preventing applications from crashing due to an “Out of Memory” error. Decades ago, when PCs shipped with 2GB or 4GB of RAM, the pagefile was absolutely critical. However, if you are running a modern, high-end workstation equipped with 64GB or 128GB of RAM, it is highly unlikely you will ever exhaust your physical memory. In these extreme edge cases, disabling the pagefile forces Windows to keep all data in ultra-fast RAM, potentially increasing system responsiveness and reducing unnecessary read/write wear on your NVMe SSD.
This guide explains how to completely disable Virtual Memory (the Pagefile) in Windows 11. Warning: Only proceed with this if your system has at least 32GB (preferably 64GB+) of physical RAM. Disabling this on a low-RAM system will result in immediate system instability and application crashes.
Disable the Pagefile via Advanced System Settings
The Virtual Memory configuration is buried deep within the legacy Windows control panel interfaces.
- Click the Start Button and type
sysdm.cpl, then press Enter to launch the System Properties window. - Click on the Advanced tab at the top of the window.
- Under the “Performance” section at the top, click the Settings… button.
- The Performance Options window will appear. Click on the Advanced tab here as well.
- Under the “Virtual memory” section, click the Change… button.
- At the very top of the Virtual Memory window, uncheck the box labelled Automatically manage paging file size for all drives. This unlocks the settings below.
- In the list of drives, select your system drive (usually C:).
- Below the list, select the radial button for No paging file.
- Click the Set button next to it.
- Windows will display a severe warning message stating that disabling the paging file may prevent the system from recording memory dumps during a Blue Screen of Death (BSOD). Click Yes to confirm you understand the risks.
- Click OK on all three open windows to apply the changes.
- Restart your computer.
The Impact of Zero Virtual Memory
Upon reboot, Windows 11 will delete the hidden pagefile.sys file from the root directory of your C: drive, instantly reclaiming anywhere from a few gigabytes to tens of gigabytes of storage space.
From this point forward, every single application, background service, and game must operate entirely within your physical RAM. If your workflow requires more memory than your motherboard physically holds, Windows will no longer gracefully slow down; it will simply terminate the memory-hungry application without warning to protect the operating system.