How to change pagefile size and location in Windows


When you download something from internet, you will see a suggestion asking you to change the location and size of the pagefile on your Windows PC. Pagefile is like a virtual memory in your PC. Whenever Windows runs low on RAM, it creates the hidden file by name pagefile.sys and dumps all the least-used memory bits into that file. Changing the pagefile isn’t hard, but it is buried deep inside the Windows settings to avoid the unwanted changes. Here is how to change the size and location of the pagefile in Windows PC.

How to change pagefile size and location in Windows

Change Pagefile size

  1. Press the Windows start button, search for System and click on System item displayed under Control Panel in results. If you are using Windows 8 press Win+X and select system from power user menu.
  2. Here, click on Advanced system settings displayed in the left pane and this will take you to Advanced System Properties window.
  3. Click on Settings under performance section and this will open performance options window and go to advanced tab and click on Change button under virtual memory.
  4. This will open Virtual Memory window and here uncheck Automatically manage paging file size for all drives, select paging file drive and select radio button Custom size. Now enter the initial size and max size for the pagefile and click on OK button and save the changes.

Now restart your PC and apply the changes.

Change Pagefile location

  1. To change the pagefile location, you need to follow the steps above steps 1 to 3. Now in this window uncheck the checkbox Automatically manage paging file size for all drives.
  2. Now select the default paging file drive, select the radio button No paging file and click on set button and this disable the paging file feature.
  3. Select the drive where you want to store the paging file and click on the button set to apply the changes and then click on OK and close all windows.
  4. Now restart your system and you have successfully changed the paging file location on your Windows PC.