The page file is a dedicated spot reserved on your hard drive that the computer refers back to when it needs extra memory for programs and applications. Page file, or virtual memory is the slowest component of the memory process, because your computer has to call to the hard drive to access the page file. By optimizing your page file you can speed up Windows’ responsiveness and performance.

Defragmenting The Page File

Defragmenting your hard drive is recommended by everyone, but what about your page file? Your page file too, like the hard drive, can get cluttered and fragmented so it’s important to make sure your page file is defragmented for optimum for performance.

There are two main methods for defragmenting your page file: Installing a page file defragmenting software, or disabling the page file then running the Windows Disk Defragmenter.

PageDefrag

A good program for defragmenting your page file is PageDefrag.

1. Download and unzip pagedefrag

2. Launch the program and select ‘Defragment at next boot’, or if you want to select ‘Defragment every boot’, though it’s not really necessary.

3. Now when you restart your computer PageDefrag will defragment your computer’s page file.

Windows Disk Defragmenter

To use the built-in Windows Disk Defragmenter to defragment your page file you’ll have to first disable your page file, so that way Windows can access it.

1. Go to your Control Panel -> System -> Advanced -> Performance Settings -> Advanced Tab -> Click Change button -> No paging file -> Set -> OK -> Restart Your PC

2. After you restart your computer, your page file will be free for the disk defragmenter to defragment. Run Microsoft Disk Defragmenter and defragment your computer like you normally would.

Now that your page file is defragmented we can work on optimizing it.

Optimizing The Page File

The page file’s size can be set by Windows, or specified by user-settings for the minimum and maximum size. Window’s default settings for the minimum page file size is the amount of memory installed multiplied by 1.5, and for the maximum page file size is the memory installed multiplied by 3.0 on your machine.

The best way to optimize your page file is to place one page file on a different hard drive partition, preferably without any system files or data. And also have a smaller one on the primary drive partition as well. Due to an internal algorithm in Windows it will fall back to the page file on the least accessed partition.

If you don’t have an extra hard drive, you can try setting your page file manually to 1.5x-3.0x your memory. I’ve heard that this is a good solution for keeping your page file in line. You can also try setting your page file minimum and maximum size to the same amount, either 1.5x or 3.0x your installed memory and see how that works. Theoretically by having your page file maximum and minimum set to the same size it should speed up Windows, because it won’t have to constantly resize the page file depending on what applications you’re running how much memory you’re using, and it won’t become fragmented due to the size no longer changing.

Should You Disable Your Page File?

Several people suggest that you disable the page file to increase performance, by doing away with the page file that means your computer won’t have to access the hard drive. So it should be faster, right? It can be, or it can cause several instability problems for your computer. Many programs won’t even run without a page file enabled.

Over at Tom’s Hardware Guide, they tested a Windows Vista machine with 8GBs of RAM, and promptly disabled the page file to see what would happen. The 8 GB system ran just like normal, but when they lowered the amount of memory available to 2 GBs, system instability occurred. “Applications immediately crash as soon as the system runs out of RAM and Windows is unable to write the files to virtual memory on the hard drive.” Their only solution was to reboot. Limiting the memory even further to 512 MBs resulted in no longer being able to open any applications without the system crashing. Even low resource Windows-based applications like Notepad caused it to crash. The systems also crashed while idling after a short while.

By optimizing your page file you can boost your Windows performance. Even though it is possible for a computer to run with the page file disabled, it is not recommended by anyone to disable your page file, even if you have access to large amounts of RAM. Defragmenting the page file, changing the size of the page file, and putting it on a separate partition are several different methods you can use, but it’s the combined effort of all these methods, that will provide the biggest performance increase.

4 Comments

  1. [...] will either point to a need to defragment the hard drive or add more memory. If this file is the Pagefile.sys file, then it is a strong probability that more memory is needed. The need for programs to access [...]

  2. Larry Miller says:

    There is a great deal of confusion surrounding the pagefile. Several things to keep in mind.
    1. Disabling the pagefile will NOT disable virtual memory, neither will it eliminate paging. It may actually increase it. Program code will continue to be paged in and out as needed and this will never touch the pagefile. The pagefile is used to contain rarely used data to free memory for often accesed data.

    2. Moving the pagefile to a non-system partion is a bad idea unless it is on a separate drive. This will lead to increased seek times and impaired performance.

    3. By default XP uses what is known as a semi-fixed pagefile. The minimum size should be set so that it will meet normal needs. The maximum size should be set high to allow for growth in unusual conditions. For practical purposes you have a fixed pagefile that does not resize with no fragmentation. But the pagefile can still grow as needed in those rare times of high memory usage. Only during these times will resizing take place. A reboot will restore the pagefile to the lower limit. In any event this resizing will not done very often.

    Setting the upper and lower sizes the same will waste a great deal of disk space and provide virtually no benefits.

    Larry Miller
    Microsoft MCSA

  3. Cherette says:

    A good site, good short contents of the good work. I have loved your site :,

  4. Human Tech says:

    You will need a Pagefile on the computer for it work.

    The RAM is wiped out when power goes off. The pagefile is written to the disk drive and can later be accessed when power is back. Then we can fix it, the problem.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>