• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 294
  • Last Modified:

Defragmenting pagefile.sys

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?
0
cpower
Asked:
cpower
  • 3
  • 2
1 Solution
 
j2Commented:
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.
0
 
cpowerAuthor Commented:
How do I turn off the swap file.

Is it just a metter of setting it to 0?
0
 
j2Commented:
Precisely, i THINK that NT will remove the file automatically.. otherwise you can delete it upon next bootup.


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


0
 
cpowerAuthor Commented:
Thanks for that, sounds good to me?

Ciao :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now