Jump to content

Defragging pagefile.sys in XP


RedStarYellowSun

Recommended Posts

I was trying to help my mom with her Windows XP computer problems when I came into this problem.

Following the advice of a website, I tried to defrag a part of her hard drive partitioned for pagefile.sys but found that Defraggler ineffective in defragmenting this type of file. After the defragging session, I found new files (probably created by Windows) entitled "$LogFile" and "$MFTMirr". I know that these files are quite puny, but is there a way of deleting these?

Also, is there some tool out there that can defragment pagefile.sys?

 

Thank you for your time.

 

Take care,

RedStarYellowSun

Link to comment
Share on other sites

  • Moderators

The $ files are NTFS meta files and should not be touched under any circumstances, especially the MFT Mirror, which is fixed in the centre of the drive (and is also very small).

 

On my spouse's laptop I used Pagedfrg from Microsoft, this defrags page, hiber and registry files on startup. It took a long time sitting there (over an hour, I think) but did the job fine. You'll have to search M/S pages or Google to find it as I don't know the link.

 

In fact pagedfrg is a shining example to code writers, peanuts small download, no-frills, just does its stuff.

Link to comment
Share on other sites

I just tried PageDefrag and it doesn't do Vista - unchanged since Nov 06.

 

There is another method, though it requires two reboots instead of one.

Go into "Virtual Memory Settings" in "Advanced" in "Properties of My Computer".

Opt for no pagefile at all, then reboot and opt for a fixed pagefile (I recommend 1.5xRAM).

That will need another reboot. Unless your remaining space was fragmented, your new one should be in one piece.

If not, run defraggler during the no-pagefile session.

Link to comment
Share on other sites

The $ files are NTFS meta files and should not be touched under any circumstances, especially the MFT Mirror, which is fixed in the centre of the drive (and is also very small).

 

On my spouse's laptop I used Pagedfrg from Microsoft, this defrags page, hiber and registry files on startup. It took a long time sitting there (over an hour, I think) but did the job fine. You'll have to search M/S pages or Google to find it as I don't know the link.

 

In fact pagedfrg is a shining example to code writers, peanuts small download, no-frills, just does its stuff.

 

Thanks for the info. I learned something new.

But concerning Microsoft's Pagedfrg: Something seems odd with my pagefile.sys . I have set Pagedfrg to run during e evry start up. So, when the computer starts up, It reports that the pagefile.sys is in 1 (while, unified) fragment. But after start up, both Windows Defragmenter and Piriform Defraggler report that it is in 2 fragments and the and the $LogFile and $MFTMirr are in between each fragment.

What can I do?

 

I just tried PageDefrag and it doesn't do Vista - unchanged since Nov 06.

 

There is another method, though it requires two reboots instead of one.

Go into "Virtual Memory Settings" in "Advanced" in "Properties of My Computer".

Opt for no pagefile at all, then reboot and opt for a fixed pagefile (I recommend 1.5xRAM).

That will need another reboot. Unless your remaining space was fragmented, your new one should be in one piece.

If not, run defraggler during the no-pagefile session.

Darn...

$LogFile and $MFTMirr are in the way, so they're still 2 fragments.

I shouldn't have defragged the partition.

 

To both: Thanks for your time.

 

Take care,

RedStarYellowSun

Link to comment
Share on other sites

Darn...

$LogFile and $MFTMirr are in the way, so they're still 2 fragments.

I shouldn't have defragged the partition.

 

Yes, you should.

A fragmented pagefile is not too bad - it only gets used it little bits anyway.

Did you try creating a fresh pagefile? Defragging without one?

 

What about an off-line (not the system disc) defrag?

Defraggler DOES move $files if it can.

Either put your HDD in another PC as second drive (or in a USB "caddy")

or build a UBCD and run defraggler from that separate CD-booted system.

Link to comment
Share on other sites

Yes, you should.

A fragmented pagefile is not too bad - it only gets used it little bits anyway.

Did you try creating a fresh pagefile? Defragging without one?

 

What about an off-line (not the system disc) defrag?

Defraggler DOES move $files if it can.

Either put your HDD in another PC as second drive (or in a USB "caddy")

or build a UBCD and run defraggler from that separate CD-booted system.

 

I tried creating a fresh pagefile and defragging without one. Unfortunately, it only moved one square.

 

Your other suggestions, I do not know if I can do that. I only have one hard drive and the partition especially made for pagefile is in that same 1 hard drive.

 

Thanks for your time.

 

Take care,

RedStarYellowSun

Link to comment
Share on other sites

Your other suggestions, I do not know if I can do that. I only have one hard drive and the partition especially made for pagefile is in that same 1 hard drive.

 

Well, I didn't think it was any use making a special partition for the pagefile in Windoze - you've just confirmed that.

If you had two drives, it IS worth putting the pagefile on the other one BUT windows complains that it can't do error-dumps then.

 

An off-line defrag is by far the most efficient. UBCD comes with (I think) 4 defraggers. Still best to run the latest defraggler from your hard-drive when booted on the CD, though.

Pagefiles and Hiberfiles can easily be moved when booted into a CD-Linux system (e.g. Knoppix, Slax, Ubuntu-Live) too, provided they have the new reliable NTFS-3G drivers. I rather think you can move all the $files too, but I'm not sure now.

Link to comment
Share on other sites

Hello say you have xp have you gone to system tools and defraged from there. Just a though you likely tried this but just incase. It is also called the same thing for say vista in the same place. :)

Link to comment
Share on other sites

Hello say you have xp have you gone to system tools and defraged from there. Just a though you likely tried this but just incase. It is also called the same thing for say vista in the same place. :)

 

Thanks for the advice.

Unfortunately, I have already used the Windows standard defragmentor.

 

Thanks for your time, though.

 

Take care,

RedStarYellowSun

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.