How to move page file in Windows 10 to another disk

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.

  1. Press Win + R keys together on the keyboard. The Run dialog will appear. Type the following in the Run box:
    SystemPropertiesAdvanced

    Windows 10 run advacned system properties

  2. Click the Settings button under the Performance section. This will open the Perfomance Options dialog.
  3. Switch to the Advanced tab and click the Change button under the Virtual Memory section:Windows 10 change virtual memory
  4. The dialog Virtual Memory will appear on the screen. Uncheck the option Automatically manage paging file size for all drives.Windows 10 disable automatic pagefileThis will allow you to configure the page file for every drive individually.
  5. For the system drive C:, select it, then select "No paging file" and click the Set button:Windows 10 sys drive page file disable
  6. 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:Windows 10 new page fileSee 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).
  7. 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.Windows 10 restart warning

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.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

Bitcoin: 18amKj99FCPUfnnpqZ6XCG2h3TGeUTCeY7

10 thoughts on “How to move page file in Windows 10 to another disk

  1. dzek

    “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.”

    make this bold and put this on the top

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply
    1. Josh

      Actually – I’d recommend moving the Pagefile from an SSD (c:/) to a seperate “spinner” HDD.

      If you wanted to get fancy, make a partition at the “base” (proper term escapes me now…) of the hdd just for it, as the closer you get to the center, the faster the read speeds.

      There may or may not be a performance hit moving the PF from an SSD to an HDD. What you certainly get is increased longevity of your SSD. Those things have a finite limit of IO operations before they fry.

      Like or Dislike: Thumb up 0 Thumb down 0

      Reply
      1. Min

        That, if you are a pseudo intellectual.

        Hard disks reads at the same speed, no matter if in the center or at the outter rings, unlike CDs/DVDs/BluRays or even older media like LP/vynil disks which had techniques to compensate the reading speed as they did go from center to outwards and viceversa (like CDs spinnin faster or slower depending where the data was located).

        Like or Dislike: Thumb up 0 Thumb down 0

        Reply
      2. Nemix

        Thought about but no, pagefile on the SSD if you only have one which would be the main hard drive makes the most logical sense since regardless if you move the pagefile to another hard drive (in this case being a mechanical one) there’s still going to be small pages in the man hard drive itself (in this case an SSD).

        If you find you’re using the pagefile a lot, it’s probably time to upgrade your ram.

        When pagefile is used often having on SSD main drive often would be faster but cause more writes to the SSD however moving to another hard drive would prolong the life of SSD but would result in slower performance, solution is to upgrade the ram if you’re using the pagefile often regardless of where it’s located.

        Like or Dislike: Thumb up 0 Thumb down 0

        Reply
  2. Dutchnugget

    Works only if the other drive has the same or a higher speed and performance.
    This tip works on all earlier windows versions.

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply
  3. Michael Wood

    You are correct in your assumption in an increase in performances as having 2 Physical HDDs or SSD,s technically doubles your IO throughput as the computer can simultaneously access both drives at the same time. so having 2 SSDs with 540 read and 480 wright each basically gives the computer 2 pipelines of information flow. now if you raid 0 the 2 drives you will get 1080 read and 960 wright and do not worry about the virtual memory because your cooking with a nuclear reactor on melt down. or just get a PCIe SSD and to heck with the rest.

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply
  4. Slurp Bupkis

    Do note that solid state drives have a limited number of reads and writes in their lifetime. For that reason, you don’t want to have your swap file on your SSD if you can help it- it’ll wear out much faster.

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply
    1. DMcCunney

      @Slurp Bupkis: “Do note that solid state drives have a limited number of reads and writes in their lifetime. For that reason, you don’t want to have your swap file on your SSD if you can help it- it’ll wear out much faster.”

      I’m sorry, but that’s nonsense. SSDs are NAND flash memory. NAND flash in SSDs is allocated in cells, and each cell has a limit of about 10,000 writes. But the drive firmware tries to spread writes evenly over the *entire* drive, and SSDs are over provisioned with spare cells. As a cell starts to reach write limits, the firmware will attempt to migrate the data stored on the cell to a spare and mark the failing cell as bad so it won’t be used, the way spinning platter HDs handle bad blocks.

      Given that, how long do you think it will take any individual cell to be written to *10,000* times? You will replace the entire PC long before you even *notice* drive wear on your SSD. There have been stress tests posted elsewhere where *petabytes* of data were written to SSDs before they even started to degrade. At this point, even budget lines are robust.

      Reduced drive life because you put your page file on an SSD is simply not a concern.

      Like or Dislike: Thumb up 0 Thumb down 0

      Reply
  5. Oliewoli

    THANK YOU YOU HAVE SAVED MEEE

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply
  6. Colin Select One Gilker

    my D: drive not appearing in the list of drives

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *