Solved

Defragmenting pagefile.sys

Posted on 1997-09-01
5
251 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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
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…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

821 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