General discussion


Page File Fragmentation

By Low IFR ·
Neither Windows nor Norton seem to defrag the "Swap" or Page file.

How does one defrag it?

** John **

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

Switch Drives

by TheChas In reply to Page File Fragmentation

The easiest way to defrag the paging file, is to place the file an another hard drive.
Defrag the hard drive it was on.
Change the page file back to the original drive.

I now setup ALL the PCs I build with an extended partition.
I copy the Windows setup files and device drivers to the logical drive.
After Windows is installed, I defrag the logical drive, then set virtual memory to place the paging file on the logical drive.

While this arrangement is slightly slower on benchmark tests,it has a number of advantages:

1. The page file does not become fragmented.

2. Windows never (well seldom) stops scandisk or defrag on the primary drive because of disk access.

3. The C: drive actually gets less fragmented as the paging file is never using up open drive space.

An alternate method of keeping the page file intact, is to set a fixed size page file.
CAUTION: make sure that the page file is large enough to support the MAXIMUM number of running applications.

My current rule of thumb, is the larger of 2X installed RAM, or 1GB - installed RAM.
The less actual RAM you have, the more virtual RAM you need.

I always choose system stability over speed.


Collapse -

I concur.

by admin In reply to Switch Drives

Well, except with my personal gaming rig.

Chas has some good advice above for work. I do it too.


Collapse -

by djent In reply to Page File Fragmentation

The only problem with small fixed page files is they are to small for Dr. Watson files. You can defrag page files with Diskeeper at boot time without moving them.

Collapse -

try this

by glyall In reply to

First close ALL apps. Then set the page file size to 0. Windows will give you an error about the page file size. You will have to reboot.
Thne run your defrag program. After the hard is defragged then set the page file to 2x to 2 1/2x the memorysize.

I do this after installing the Windows OS and before installing ANY software.
This does work for Window NT, 2000 and XP pro.

Good Luck

Collapse -

by djent In reply to try this

Yes it does work but is a bother to do repetitivly. Page fole defrag is only one reason for Diskeeper, there many benefits.

Related Discussions

Related Forums