There are a number of reasons to move the Windows page file to another disk. Moving the pagefile.sys file from the partition where Windows is installed to another hard drive can improve system performance and decrease page file fragmentation. Or if your Windows partition is located on an SSD, you can move it to another SSD so the writes will be balanced between the two SSDs instead of all the I/O activity happening on the SSD with the operating system installed.
Before you begin, you need to know that you will get the best performance only if you move the page file to another physical drive, and not to another partition on the same drive.
To move the page file in Windows 10, you need to do the following.
- Press Win + R keys together on the keyboard. The Run dialog will appear. Type the following in the Run box:
- Click the Settings button under the Performance section. This will open the Perfomance Options dialog.
- Switch to the Advanced tab and click the Change button under the Virtual Memory section:
- The dialog Virtual Memory will appear on the screen. Uncheck the option Automatically manage paging file size for all drives.This will allow you to configure the page file for every drive individually.
- For the system drive C:, select it, then select "No paging file" and click the Set button:
- Now specify a new page file on another physical drive you have. To do that, select the desired drive from the list and select the option Custom size:See the Recommended size in the dialog. You can set the Initial and Maximum sizes to the Recommended size so the pagefile does not grow and shrink constantly. If you are not sure which size exactly you should specify, just select the option System managed size and click the Set button to let the operating system determine the correct size. In the screenshot above, I set the page file for a Windows 10 PC with 2GB of RAM with the initial size 4GB (2 x 2GB), and the maximum size 6GB (3 x 2GB).
- Once you click OK, you will need to restart your PC. The changes you have made require you to restart your computer before they can take effect. The appropriate message box to restart Windows 10 will appear on the screen.
After restarting, open File Explorer and delete C:\pagefile.sys. That's it. Now Windows 10 will not keep the page file on your Windows partition. Instead, it will be on the other drive you selected.
Note that if you have only one SSD and the other drive is a hard disk drive, not an SSD, I am not sure that you should move the pagefile at all because moving the pagefile from SSD to an HDD might reduce performance.
Tip: you can clear the pagefile at Shutdown in Windows 10.
In the comments, feel free to share what changes in performance you noticed after moving the page file.