Information About Defragmenting the Windows Paging File

ID: Q240755


The information in this article applies to:
  • Microsoft Windows 98
  • Microsoft Windows 98 Second Edition
  • Microsoft Windows 95


SUMMARY

This article contains information about defragmenting the Windows 95/98 paging file.


MORE INFORMATION

You cannot safely and effectively defragment the Windows 95/98 paging file. Fragmentation does not noticeably impact performance, because of the way Windows uses the paging file.

The most effective method to make the Windows paging file contiguous is to defragment the free space on the disk. This allows the paging file to dynamically shrink and grow in the contiguous free space.

For example, when you first start Windows, the paging file is small in size. When you start some programs, the paging file can grow about 50 megabytes (MB) or more regardless of the physical memory installed in the computer. When you close all the programs running on your computer, the paging file can shrink to about 15 MB.

Windows pages through the paging file in 4-kilobyte (KB) blocks, even if the paging file is contiguous.

For example, if Windows reads 40 KB of contiguous space from the disk, the paging file is actually read 10 separate times, once for each 4-KB block.

For information about the Microsoft Windows Disk Defragmenter tool, please click the article numbers below to view the articles in the Microsoft Knowledge Base:

Q186171 Description of the Disk Defragmenter Tool in Windows 98
Q124917 How Disk Defragmenter Reports Fragmentation

Additional query words: swapfile

Keywords : kb3rdparty diskmem win95 defrag win98 win98se
Version : WINDOWS:95
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: December 3, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.