Windows 10 Huge windows PageFile, how to limited it
- Open the System Properties dialog (right-click
Start
,System
, selectAdvanced system settings
on the right).
- On the
Advanced
tab, clickSettings
under the performance section
- On the
Advanced
tab ofPerformance Options
clickChange
under theVirtual memory
section
- Disable
Automatically manage paging file size for all drives
- Use the
Custom size
radio button to open up theInitial size
andMaximum size
fields
- Specify your values, taking heed of the
Recommended
value at the bottom of the dialog, clickset
and close the dialog boxes.
If you have additional drives, you can also specify a different disk for the pagefile. This is preferable when you have an SSD as your boot drive, as paging to file frequently can reduce the life of an SSD.
Attention: The pagefile is required for Windows full functionality.
For example, in case of a crash (BSOD), Windows will keep the crash dump in the pagefile until the computer is restarted. A too small pagefile will effectively mean disabling crash dumps.
As another example, the system commit limit is the sum of physical memory (RAM) and all page files combined. This limit is the maximal memory amount that can be allocated to Windows and all tasks. If the pagefile is too small, tasks won't be able to ask for much more memory than the available RAM.
Your pagefile is currently being managed by Windows, so it will increase in size according to the needs of the running processes. Its large size might mean that your workload requires more memory than is physically available.
I recommend reading the Microsoft article of
How to determine the appropriate page file size for 64-bit versions of Windows.
Before reducing the pagefile too much, you may also:
- Add more RAM, or
- Allocate page file space on another disk than
C:
.
The total page files space on all disks that I recommend is RAM plus 257 MB, enough for a complete crash dump. Although many recommendations say rather 1.5 times the RAM, I believe that if the RAM is large (as available on modern computers), the above amount should be enough.