We help IT Professionals succeed at work.

Defragmenting pagefile.sys

cpower
cpower asked
on
Medium Priority
314 Views
Last Modified: 2013-12-28
Hi,
 I am trying to defragment a badly fragmented
pagefile on my computer. I only have one volume
(i.e. one hard disk) so I cannot copy the pagefile
elsewhere.

Can you tell me how to defragment the pagefile?
Comment
Watch Question

Commented:
In a word: You can't!

Only workaround:

1. Turn of the swapfile
2. Defrag Disk
3. Reinitialize Swap

Best long term solutions

Use a _dedicated_ partition for swap... or better yet, do as i have done and use a dedicated harddisk for the job.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
How do I turn off the swap file.

Is it just a metter of setting it to 0?
j2

Commented:
Precisely, i THINK that NT will remove the file automatically.. otherwise you can delete it upon next bootup.


j2

Commented:
Precisely, i THINK that NT will remove the file automatically.. otherwise you can delete it upon next bootup.


Author

Commented:
Thanks for that, sounds good to me?

Ciao :)
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.