Windows 10 enables the virtual memory and manages your page file settings automatically by default. My computer comes with enough RAM, but the paging feature always makes the speed of my HDD slowly and affects the performance of my gaming experience. I would like to turn it off completely to fully use my ram, while could not figure out how to resolve the problem.
How to disable virtual memory to increase Windows 10 performance
* From your desktop, tap or click on the Start menu, type Control Panel and press Enter.
* Navigate to System and Security > System, and click on Advanced system settings in the left pane.
* In System Properties dialog box, go to the Advanced tab, and click on the first “Settings…” button.
* Click the Advanced tab, and click on the “Change…” button.
* Uncheck “Automatically manage paging file size for all drives” box.
* Select the drive it’s on, check “No paging file” box, and then click Set option > OK button. It is useful to limit the size and number of apps and programs you can run at one time. If it is too restrictive for you, go to turn virtual memory back on.
However, I had tried the method to setup no virtual memory pagefile.sys, and it still appears in File Explorer at the next reboot with Windows 10. Finally I get a way to disable it by command.
* Type CMD in Start menu, right click on Command Prompt, and select “Run as administrator”.
* In the CMD window, type the command:
fsutil behavior set encryptpagingfile 0
and press Enter to execute it.
* Then restart your computer to apply the changes.