Solved

Defragmenting pagefile.sys

Posted on 1997-09-01
5
226 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?
0
Comment
Question by:cpower
  • 3
  • 2
5 Comments
 
LVL 12

Accepted Solution

by:
j2 earned 100 total points
ID: 1782052
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
 

Author Comment

by:cpower
ID: 1782053
How do I turn off the swap file.

Is it just a metter of setting it to 0?
0
 
LVL 12

Expert Comment

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


0
 
LVL 12

Expert Comment

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


0
 

Author Comment

by:cpower
ID: 1782056
Thanks for that, sounds good to me?

Ciao :)
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now