World Library  
Flag as Inappropriate
Email this Article

Disk Defragmenter (Windows)

Article Id: WHEBN0006709293
Reproduction Date:

Title: Disk Defragmenter (Windows)  
Author: World Heritage Encyclopedia
Language: English
Subject: List of Microsoft Windows components, Regsvr32, Windows Task Scheduler, Background Intelligent Transfer Service, Windows Installer
Collection: Defragmentation Software, Windows Components
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Disk Defragmenter (Windows)

Disk Defragmenter
A component of Microsoft Windows
Disk Defragmenter in Windows 8
Details
Type Defragmentation software
Included with Windows NT 4 and onwards
Windows 95 and onwards

Disk Defragmenter is a utility in Microsoft Windows designed to increase access speed by rearranging files stored on a disk to occupy contiguous storage locations, a technique called defragmentation. Defragmenting a disk minimizes head travel, which reduces the time it takes to read files from and write files to the disk.[1] Beginning with Windows XP, Disk Defragmenter also reduces system startup times.

Contents

  • History 1
    • Early history 1.1
    • Introduction 1.2
    • Windows XP and Windows Server 2003 1.3
    • Windows Vista and Windows Server 2008 1.4
    • Windows 7, 8 and 8.1 1.5
  • Limitations 2
  • See also 3
  • References 4
  • External links 5

History

Early history

As early as the end of 1982, the floppy disks that those machines used. Microsoft's MS-DOS did not defragment hard disks. Several third party software developers marketed defragmenters to fill this gap. MS-DOS 6.0 introduced Defrag. Windows NT, however, did not offer a Defrag utility, and Symantec was suggested as a possible source of the utility.[2]

Initial releases of Windows NT lacked a defragmentation tool. Versions through Windows NT 3.51 did not have an application programming interface for moving data clusters on hard disks.[3] Executive Software, later renamed Diskeeper Corporation, released Diskeeper defragmentation software for Windows NT 3.51,[3] which shipped with a customized version of the NT kernel and file system drivers that could move clusters.

Microsoft included file system control (FSCTL) commands to move clusters in the Windows NT 4.0 kernel,[3] which worked for both NTFS and FAT32 partitions. However, Windows NT 4.0 did not provide a graphical or command-line user interface.[3]

Introduction

Disk Defragmenter also shipped as part of Windows 95, Windows 98 and Windows Me. It could be scheduled using a Maintenance Wizard and supported command line switches.[4] This version had the limitation that if the contents of the drive changed during defragmentation, it rescanned the drive and restarted the process from where it left off.[5]

The Disk Defragmenter in Windows 2000 was a stripped-down licensed version of Diskeeper, licensed from Diskeeper Corporation. It uses the following techniques:[3]

  1. Moving all the index or directory information to one spot. Moving this spot into the center of the data, i.e. one third of the way in, so that average head travel to data is halved compared to having directory information at the front.
  2. Moving infrequently used files further from the directory area.
  3. Obeying a user-provided table of file descriptions to emphasize or ignore.
  4. Making files contiguous so that they can be read without unnecessary seeking.

Windows XP and Windows Server 2003

Windows Disk Defragmenter was updated to alleviate some restrictions.[6] It no longer relies on the Windows NT Cache Manager, which prevented the defragmenter from moving pieces of a file that cross a 256KB boundary within the file. NTFS metadata files can also be defragmented. A command-line tool, defrag.exe, has been included,[7] providing access to the defragmenter from cmd.exe and Task Scheduler. In Windows XP, if the Master File Table (MFT) is spread into multiple fragments, defrag.exe and the GUI version can combine the MFT fragments during defragmentation.[8]

Windows Vista and Windows Server 2008

In Windows Vista, Disk Defragmenter includes an option to automatically run at scheduled times using Task Scheduler and uses low CPU priority and the newly introduced low priority I/O algorithm so that it can continue to defrag using reduced resources (less CPU and disk read/write activity) when the computer is in use. The user interface has been simplified, with the color graph, progress indicator, disk analysis and fragmentation information being removed entirely.

If the fragments of a file are over 64 MB in size, the file is not defragmented if using the GUI; Microsoft has stated that this is because there is no discernible performance benefit since the time seeking such large chunks of data is negligible compared to the time required to read them.[9] The result, however, is that Disk Defragmenter does not require a certain amount of free space in order to successfully defrag a volume, unlike performing a full defragmentation which requires at least 15% of free space on the volume. The command line utility, Defrag.exe, offers more control over the defragmentation process, such as performing a full defragmentation by consolidating all file fragments regardless of size.[10] This utility can be used to defragment specific volumes or to just analyze volumes as the defragmenter would in Windows XP.

Disk Defragmenter is maintained by Microsoft's Core File Services. The Windows Vista version has been updated in Windows Vista SP1 to include the improvements made in Windows Server 2008. The most notable of these improvements is that the ability to select which volumes are to be defragged has been added back.[11] Notably, the Windows Vista defragmenter is much more effective than the version included with XP.[12]

Windows 7, 8 and 8.1

Windows 7 reintroduces the analyze function and showing percent complete of the defragmentation, both of which were removed in Windows Vista. It can also defragment multiple volumes simultaneously.

According to Scott Hanselman of Microsoft, Windows 7, 8 and 8.1 do defragment a solid-state disk (SSD) but in a completely different way. There is less incentive for defragmentation of SSDs because file fragmentation has less performance impact on them and they handle a finite number of storage cycles before their lifespan expires. However, file systems cannot support infinite file fragmentation as they reach their metadata limit. In addition, Disk Defragmenter is also responsible performing TRIM command on SSDs.[13]

Limitations

In Windows 2000 and later operating systems, Disk Defragmenter has the following limitations:

  • It does not defragment files residing in the Recycle Bin or files that are in use.[14] In particular, this includes the registry, page file and hibernation file.
  • Prior to the Windows Vista release, only one volume could be analyzed or defragmented at a time and only one instance could run.[15]
  • Only local volumes can be defragmented, network volumes are not supported.[15]
  • The GUI version prior to Windows Vista cannot be scheduled, however the command line utility since Windows XP and later can be scheduled.
  • Unlike previous versions, the GUI version in Windows Vista does not display a map of disk fragmentation, nor does it display progress during defragmentation.

In addition, the Windows 2000 version has the following limitations which were removed in Windows XP:[15]

  • Defragmenting NTFS volumes with cluster sizes larger than 4 kilobytes (KB) is not possible.
  • It is not possible to perform fine-grained movement of uncompressed NTFS file data in Windows 2000. Moving a single file cluster also moves the 4 KB part of the file that contains the cluster.
  • EFS encrypted files are not defragmented.

See also

References

  1. ^
  2. ^
  3. ^ a b c d e
  4. ^ Windows 95 Defrag.exe Command-Line Parameters
  5. ^ Description of the Disk Defragmenter Tool in Windows 98/Me
  6. ^
  7. ^
  8. ^ How NTFS reserves space for its Master File Table (MFT)
  9. ^ Disk Defragmenter FAQs
  10. ^
  11. ^ Disk Defragmenter in Windows Vista and Windows Server 2008
  12. ^
  13. ^
  14. ^ Disk Fragmentation and System Performance
  15. ^ a b c Disk Defragmenter Limitations in Windows 2000, Windows XP, and Windows Server 2003

External links

  • Troubleshooting Disk Defragmenter
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.