Ask the Expert

How can I defrag the Virtual Memory in Windows XP?

I understand there is a way to defrag the Virtual Memory in Windows XP by deleting the paging file, defragging the PC and recreating the paging file. Can you tell me the best way to do this?

    Requires Free Membership to View


Rather than try to do this manually, I'd recommend a command-line tool courtesy of the good folks at SysInternals, which is designed to do exactly that: PAGEDEFRAG. When run, it will force a defrag on your page file the next time your machine is rebooted. You can also use it to force a defrag of the page file on each reboot, which is handy.

Learn more: What is virtual memory? Read a definition from

This was first published in August 2005

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: