Disabling the pagefile can lead to the "low on memory" warnings you are experiencing, even if it appears you have a substantial amount of physical RAM free. Without a pagefile, once your physical RAM is fully utilized, Windows has nowhere else to offload excess data, which can quickly lead to memory allocation issues for running applications.
Here's why a pagefile can still be important, even with a large amount of RAM:
-
Preventing Out-of-Memory Errors: Some applications and system processes expect the availability of virtual memory and could run into issues if it's not there. This is why Windows prompts you to close applications when running low on memory.
-
Stability: A pagefile can help maintain system stability. Certain system functions, such as memory dumps during a blue screen of death (BSOD), require a pagefile to record diagnostic information.
-
Memory Commitment: Windows uses the concept of "commit charge," which is the total amount of virtual memory that the system has promised to applications. This amount can exceed the physical RAM and relies on the pagefile to fulfill the promise.
To alleviate the "low on memory" warnings, re-enabling the pagefile is recommended. Here's how to do it:
- Press
Win + R to open the Run dialog.
- Type
sysdm.cpl and press Enter to open System Properties.
- Go to the Advanced tab and click on "Settings..." under Performance.
- In Performance Options, go to the Advanced tab and click on "Change..." under Virtual memory.
- Check the "Automatically manage paging file size for all drives" box or select "Custom size" to manually specify the size of the pagefile.
- Click OK and restart your computer if prompted.
After re-enabling the pagefile, Windows should manage memory more effectively, and you should see a reduction in low memory warnings. You can start with letting Windows manage the pagefile automatically, which is typically sufficient for most users. If you prefer to set a custom size, a good starting point is to set the initial size to the amount of physical RAM you have and the maximum size to 1.5 to 3 times that amount.