Striping your Swap File in XP

All versions of Windows make use of a swap file. This is virtual memory and acts as hard drive storage space for memory items when you run low on actual physical memory. Use of the swap file slows down Windows quite a bit because hard drives are simply nowhere near as fast as system memory. But, you can speed up access to the swap file by using stripping. Stripping is a technique of RAID whereby data is spanned across more than one drive at the same time. Windows XP has code built-in which will stripe the swap file across two drives when you assign sizes to more than one partition. In order to take advantage of this, you need to have two or more hard drives in your system and place the swap file across the two separate drives, not simply two separate partitions on the same drive.

Go to Control Panel > System > Advanced > Performance / Settings. Hit the Advanced tab and go down to the virtual memory section and hit Change. Choose your first partition where you want the swap file, then select Custom Size and enter the size you want. If you set the initial size and max size to the same value, the swap will not be resized on the fly and can lead to better performance. Then choose another partition on a separate drive and do the same.

Windows will then split the swap file among the two drives.

Free eBook!

Like what you read?

If so, please join over 28,000 people who receive our exclusive weekly newsletter and computer tips, and get FREE COPIES of 5 eBooks we created, as our gift to you for subscribing. Just enter your name and email below:

Post A Comment Using Facebook

  • Larry Miller

    Actually putting the pagefile on a striped set will provide little benefit. A stripped set benefits most on large files that are read serially. The pagefile is large but it is not read serially but in relatively small blocks. Pagefile performance is governed primarily by seek time, not transfer time.

    Don’t waste a stripped set on the pagefile. Use it for large data files which will benefit most from it.

    Larry Miller
    Microsoft MCSA

  • Robert Chaplin

    He did not say to put the page file on a stripped set. I think he said to create two separate swap files on two separate physical disks, and RAID-like page file features in Windows would give you performance benefits similar to a stripe set of disks.

  • http://none Slider2k

    I’ve done research. There’s little to none factural information on this subject, and i think that even Microsoft knowledge base is giving misleading information on actual swap-paging system inner working. Read further to know why.

    In my search i’ve found a book by O’Reilly called “Windows 2000 Performance Guide”. In a chapter called “Memory management and Paging” detailing WindowsNT memory system inner workings there’s a info saying “Adding a second paging file spreads the paging I/O load across another physical disk and usually improves page fault resolution time substantially.”

    So this is all theory, how about practical proof? For this there’s system tool called Performance Monitor included in OS. Now, on a test system that uses page swapping quite heavily, that is Windows 2000, 64Mb RAM and two swap files on separate physical disks, according to Performance Monitor system usage of two swap files is symmetrical, usage percentage is similar. And subjectively system became more responsive.

    So i think there’s truth behind this article.

What’s Your Preference?

Daily Alerts

Each day we send out a quick email to thousands of PCMECH readers to notify them of new posts. This email is just a short, plain email with titles and links to our latest posts. You can unsubscribe from this service at any time.

You can subscribe to it by leaving your email address in the following field and confirming your subscription when you get an email asking you to do so.

Enter your email address for
Daily Updates:

Weekly Newsletter

Running for over 6 years, the PCMECH weekly newsletter helps you keep tabs on the world of tech. Each issue includes news bits, an article, an exclusive rant as well as a download of the week. This newsletter is subscribed to by over 28,000 readers (many who also subscribe to the other option) - come join the community!

To subscribe to this weekly newsletter simply add your email address to the following field and then follow the confirmation prompts. You will be able to unsubscribe at any time.

Enter your email address for
Free Weekly Newsletter: