But if you??™ve added (or removed) a swap file on any drive, you??™ll need
to restart Windows before it uses your new settings.
Part 2: Defragment the paging file
The steps in the previous section eliminate the possibility of your swap file
becoming fragmented, but they won??™t cure an already fragmented one.
You??™ll need to defragment your virtual memory for the best performance,
but the good news is that you only need to do it once if you have a constantsize
paging file.
There are several ways to defragment your swap file:
Use PerfectDisk. Use an advanced defragmenter like PerfectDisk, discussed
in ???A Defragmentation Crash Course,??? earlier in this chapter.
Just instruct it to defragment your system files, and it will schedule a
defragmentation for the next time you start Windows.
252 | Chapter 5: Performance
Use another drive temporarily. If you have more than one partition or hard
disk in your system, start by moving your swap file to a different drive letter,
as described in the previous section. Then, use the command-line Disk
Defragmenter to perform a thorough defragment of your Windows drive,
or whatever drive you??™d like to use for virtual memory, by typing:
defrag -w -f c:
and pressing Enter. Again, see ???A Defragmentation Crash Course,??? earlier
in this chapter, for details. When it??™s done, move the swap file to its
new home, where it will rest nicely in the newly allocated contiguous
block of free space.
Pages:
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360