TechBuzzPro

Windows 10 Paging File: How to Set and Optimize It

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To properly set the Windows 10 paging file, go to Settings > System > About > Advanced system settings > Advanced tab > Performance Settings > Advanced tab > Virtual memory Change. This process allows you to manually define how much disk space Windows uses as "virtual memory" when your physical RAM is full, preventing application crashes and system instability during heavy workloads.

The paging file (pagefile.sys) acts as a reservoir for data that the operating system doesn't need to access instantly but cannot discard. When your physical RAM reaches its capacity, Windows moves the least-used data from the RAM to the paging file on your hard drive or SSD. While disk storage is significantly slower than RAM, having a properly configured paging file ensures that your computer continues to function rather than freezing or throwing "Out of Memory" errors when running demanding software like video editors, modern games, or dozens of browser tabs.

What You'll Need

  • A computer running Windows 10 with administrative privileges.
  • Knowledge of your total installed physical RAM (found in Settings > System > About).
  • Available disk space on your primary drive (C:) or a secondary fast drive (SSD).

Step-by-Step

  1. Right-click the Start button and select System. (Note: Depending on your version of Windows 10, this may take you directly to the About page or a Control Panel window; labels may differ slightly by version or region).
  2. On the About page, look for the Related settings section on the right side (or bottom) and click on Advanced system settings. This will open the System Properties dialog box.
  3. In the System Properties window, ensure you are on the Advanced tab.
  4. Under the Performance section, click the Settings... button. This opens the Performance Options window.
  5. In the Performance Options window, click the Advanced tab.
  6. Under the Virtual memory section, click the Change... button. This opens the Virtual Memory window.
  7. At the top of the window, uncheck the box that says Automatically manage paging file size for all drives. This enables the manual configuration options below.
  8. Select the drive where you want the paging file to reside. For the best performance, choose your fastest drive (usually the C: drive if it is an SSD).
  9. Select the Custom size radio button. You will now see two input fields: Initial size and Maximum size.
  10. Enter the Initial size in megabytes (MB). A common rule of thumb is to set this to 1.5 times your total physical RAM. For example, if you have 8GB of RAM, calculate 8 x 1024 x 1.5 = 12,288 MB.
  11. Enter the Maximum size in megabytes (MB). A common recommendation is 3 times your total physical RAM. For 8GB of RAM, this would be 8 x 1024 x 3 = 24,576 MB.
  12. Click the Set button. This is a critical step; if you do not click Set, the changes will not be applied when you click OK.
  13. Click OK on the Virtual Memory window, OK on the Performance Options window, and OK on the System Properties window.
  14. Windows will notify you that a restart is required for the changes to take effect. Restart your computer.

Common Mistakes

One of the most frequent errors is disabling the paging file entirely. Some users believe that if they have a large amount of RAM (e.g., 32GB or 64GB), they no longer need a paging file. This is a misconception. Many Windows applications and system services are hard-coded to require a paging file for crash dumps and memory management. Disabling it completely can lead to unexpected software crashes, even if your RAM usage is low.

Another common mistake is setting the Initial size and Maximum size to vastly different numbers, such as 1024 MB and 32768 MB. When the Initial size is much smaller than the Maximum size, Windows must constantly expand and shrink the pagefile.sys file on the disk as demand changes. This process causes disk fragmentation and can lead to momentary system stutters. Setting the Initial and Maximum sizes to the same value creates a "static" paging file, which prevents the OS from resizing it and reduces overhead.

Users also frequently forget to click the "Set" button before clicking "OK." If you enter the numbers but simply close the window, Windows will revert to the previous setting or the automatic setting, and your changes will be ignored.

Tips

For users with multiple drives, place the paging file on the fastest drive available. If you have a boot SSD and a secondary mechanical HDD, keep the paging file on the SSD. The speed difference between an SSD and an HDD is massive, and because the paging file is accessed frequently, placing it on a slow drive will significantly degrade system responsiveness during memory-heavy tasks.

If you are extremely limited on disk space, you can distribute the paging file across multiple drives, though this is rarely recommended for performance. You can select a secondary drive in the Virtual Memory menu and assign it a custom size, while keeping a small paging file on the C: drive for system crash dumps.

Monitor your actual usage before making permanent changes. Open the Task Manager (Ctrl + Shift + Esc), go to the Performance tab, and click on Memory. Look at the "Committed" section. The first number is how much memory is currently being used, and the second number is the total commit limit (RAM + Paging File). If the first number is consistently close to the second, you need to increase your paging file size.

Troubleshooting

If you encounter an error stating that there is not enough disk space to create the paging file, you must first free up space on the selected drive. Use the Disk Cleanup tool to remove temporary files or move large folders to another drive. Windows cannot allocate the virtual memory if the physical disk space is unavailable.

If your system becomes unstable or you experience "Blue Screen of Death" (BSOD) errors after changing these settings, the first step is to revert to the automatic setting. Go back through the menu path (Settings > System > About > Advanced system settings > Performance Settings > Virtual memory) and re-check the box for Automatically manage paging file size for all drives. Restart the computer to see if stability returns.

If the "Set" button is greyed out or you cannot change the values, ensure you are logged in as an Administrator. If you are on a work-managed computer, these settings may be locked by a Group Policy set by your IT department, in which case you will need to contact your system administrator to request a change.

Frequently Asked Questions

Does a larger paging file make my computer faster?

No. A paging file is a safety net, not a performance booster. It prevents crashes when RAM is full, but it is significantly slower than physical RAM. Increasing it beyond what your system actually needs provides no speed benefit and only consumes disk space.

Should I put the paging file on an SSD or an HDD?

Always put it on the fastest drive available, which is typically an SSD. The high IOPS (Input/Output Operations Per Second) of an SSD makes the transition between physical RAM and virtual memory much smoother than on a mechanical hard drive.

What is the difference between Initial size and Maximum size?

The Initial size is the amount of disk space Windows reserves for the paging file immediately upon boot. The Maximum size is the ceiling that Windows cannot exceed, regardless of how much memory the system demands.

Can I have the paging file on a USB external drive?

Technically possible, but highly discouraged. USB connections are slower and less stable than internal SATA or NVMe connections. If the drive is accidentally unplugged while Windows is using the paging file, the system will likely crash immediately.

Will changing the paging file delete my personal files?

No. Changing the paging file only affects how Windows manages a hidden system file (pagefile.sys). It does not touch your documents, photos, or installed applications.