Windows Disk Defragmenter
   HOME

TheInfoList



OR:

Microsoft Drive Optimizer (formerly Disk Defragmenter) is a
utility As a topic of economics, utility is used to model worth or value. Its usage has evolved significantly over time. The term was introduced initially as a measure of pleasure or happiness as part of the theory of utilitarianism by moral philosoph ...
in Microsoft Windows designed to increase data access speed by rearranging files stored on a disk to occupy
contiguous Contiguity or contiguous may refer to: *Contiguous data storage, in computer science *Contiguity (probability theory) *Contiguity (psychology) *Contiguous distribution of species, in biogeography *Geographic contiguity of territorial land *Contigu ...
storage locations, a technique called
defragmentation In the maintenance of file systems, defragmentation is a process that reduces the degree of fragmentation. It does this by physically organizing the contents of the mass storage device used to store files into the smallest number of contigu ...
. Defragmenting a disk minimizes head travel, which reduces the time it takes to read files from and write files to the disk. As a result of the decreased read and write times, Microsoft Drive Optimizer decreases system startup times for systems starting from magnetic storage devices such as a hard drive. However, defragmentation is not helpful on storage devices such as
solid state drives A solid-state drive (SSD) is a solid-state storage device that uses integrated circuit assemblies to store data persistently, typically using flash memory, and functioning as secondary storage in the hierarchy of computer storage. It is ...
, USB drives or SD cards that use flash memory to increase speeds, as these drives do not use a head. Defragmentation may decrease lifespan for certain technologies, e.g. solid state drives. Microsoft Drive Optimizer was first officially shipped with
Windows XP Windows XP is a major release of Microsoft's Windows NT operating system. It was released to manufacturing on August 24, 2001, and later to retail on October 25, 2001. It is a direct upgrade to its predecessors, Windows 2000 for high-end and ...
. From Windows 8, the program was renamed to Microsoft Drive Optimizer, with some references changed to say ''Defragment and Optimize Drives'' or simply ''Optimize Drives''.


Early history

As early as the end of 1982, the
IBM PC DOS IBM PC DOS, an acronym for IBM Personal Computer Disk Operating System, is a discontinued disk operating system for IBM PC compatibles. It was manufactured and sold by IBM from the early 1980s into the 2000s. Developed by Microsoft, it was also ...
operating system that shipped with early
IBM Personal Computer The IBM Personal Computer (model 5150, commonly known as the IBM PC) is the first microcomputer released in the IBM PC model line and the basis for the IBM PC compatible de facto standard. Released on August 12, 1981, it was created by a team ...
s included a Disk Volume Organization Optimizer to defragment the 5ΒΌ-inch floppy disks that those machines used. At this time,
Microsoft Microsoft Corporation is an American multinational technology corporation producing computer software, consumer electronics, personal computers, and related services headquartered at the Microsoft Redmond campus located in Redmond, Washin ...
's
MS-DOS MS-DOS ( ; acronym for Microsoft Disk Operating System, also known as Microsoft DOS) is an operating system for x86-based personal computers mostly developed by Microsoft. Collectively, MS-DOS, its rebranding as IBM PC DOS, and a few ope ...
did not defragment hard disks. Several third party software developers marketed defragmenters to fill this gap. MS-DOS 6.0 introduced Microsoft Defrag.
Windows NT Windows NT is a proprietary graphical operating system produced by Microsoft, the first version of which was released on July 27, 1993. It is a processor-independent, multiprocessing and multi-user operating system. The first version of Win ...
, however, did not offer a Defrag utility, and Symantec was suggested by others as a possible alternative for the utility. 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 cluster In computer disk storage, a sector is a subdivision of a track on a magnetic disk or optical disc. Each sector stores a fixed amount of user-accessible data, traditionally 512 bytes for hard disk drives (HDDs) and 2048 bytes for CD-ROMs and DVD ...
s on hard disks. Executive Software, later renamed
Diskeeper Corporation Condusiv Technologies is an American software company based in Burbank, California. The company was formerly known as Diskeeper Corporation, a name derived from its flagship product, Diskeeper, a file-system defragmentation software package for ...
, released
Diskeeper Diskeeper is a discontinued defragmentation app, designed for Microsoft Windows. It was developed by Executive Software International, Inc., which later changed its name to Diskeeper Corporation, and is now called Condusiv Technologies. The fin ...
defragmentation software for Windows NT 3.51, 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 Windows NT 4.0 is a major release of the Windows NT operating system developed by Microsoft and oriented towards businesses. It is the direct successor to Windows NT 3.51, which was released to manufacturing on July 31, 1996, and then to retail ...
kernel, which worked for both
NTFS New Technology File System (NTFS) is a proprietary journaling file system developed by Microsoft. Starting with Windows NT 3.1, it is the default file system of the Windows NT family. It superseded File Allocation Table (FAT) as the preferred fil ...
and
FAT In nutrition, biology, and chemistry, fat usually means any ester of fatty acids, or a mixture of such compounds, most commonly those that occur in living beings or in food. The term often refers specifically to triglycerides (triple est ...
partitions. However, Windows NT 4.0 did not provide a graphical or command-line user interface.


Debut

Disk Defragmenter was first shipped as part of
Windows 95 Windows 95 is a consumer-oriented operating system developed by Microsoft as part of its Windows 9x family of operating systems. The first operating system in the 9x family, it is the successor to Windows 3.1x, and was released to manufacturi ...
,
Windows 98 Windows 98 is a consumer-oriented operating system developed by Microsoft as part of its Windows 9x family of Microsoft Windows operating systems. The second operating system in the 9x line, it is the successor to Windows 95, and was released to ...
, and
Windows Me Windows Millennium Edition, or Windows Me (marketed with the pronunciation of the pronoun "me"), is an operating system developed by Microsoft as part of its Windows 9x family of Microsoft Windows operating systems. It is the successor to Windo ...
, and was licensed from Symantec Corporation. It could be scheduled using a Maintenance Wizard and supported command line switches. In the version included with Windows 95 and 98, if the contents of the drive changed during defragmentation, the program paused, rescanned the entire drive, and then resumed the process from where it had left off. In Windows Me, this limitation was lifted. The Disk Defragmenter in
Windows 2000 Windows 2000 is a major release of the Windows NT operating system developed by Microsoft and oriented towards businesses. It was the direct successor to Windows NT 4.0, and was released to manufacturing on December 15, 1999, and was officiall ...
was a stripped-down version of Diskeeper, licensed from Diskeeper Corporation. It uses the following techniques: # 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. # Moving infrequently used files further from the directory area. # Obeying a user-provided table of file descriptions to emphasize or ignore. # Making files contiguous so that they can be read without unnecessary seeking. In Windows 2000 and later operating systems, Microsoft Drive Optimizer has the following limitations: * It does not defragment files residing in the Recycle Bin or files that are in use. 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.Disk Defragmenter Limitations in Windows 2000, Windows XP, and Windows Server 2003
/ref> * Only local volumes can be defragmented; network volumes are not supported. * 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: * Defragmenting
NTFS New Technology File System (NTFS) is a proprietary journaling file system developed by Microsoft. Starting with Windows NT 3.1, it is the default file system of the Windows NT family. It superseded File Allocation Table (FAT) as the preferred fil ...
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.


Windows XP and Server 2003

Windows Disk Defragmenter was updated to alleviate some restrictions. 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 New Technology File System (NTFS) is a proprietary journaling file system developed by Microsoft. Starting with Windows NT 3.1, it is the default file system of the Windows NT family. It superseded File Allocation Table (FAT) as the preferred fil ...
metadata files can also be defragmented. A command-line tool, ''defrag.exe'', has been included, providing access to the defragmenter from
cmd.exe Command Prompt, also known as cmd.exe or cmd, is the default command-line interpreter for the OS/2, eComStation, ArcaOS, Microsoft Windows (Windows NT family and Windows CE family), and ReactOS operating systems. On Windows CE .NET 4.2, Windo ...
and
Task Scheduler Task Scheduler (formerly Scheduled Tasks) is a job scheduler in Microsoft Windows that launches computer programs or scripts at pre-defined times or after specified time intervals. Microsoft introduced this component in the Microsoft Plus! for ...
. 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. Windows XP and later has introduced ''Boot Files Defragment'' function, this function is enabled by default and can be disabled in Registry.


Windows Vista and Server 2008

In
Windows Vista Windows Vista is a major release of the Windows NT operating system developed by Microsoft. It was the direct successor to Windows XP, which was released five years before, at the time being the longest time span between successive releases of ...
, 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 A progress indicator is an element of a command-line interface, a textual user interface, or a graphical user interface that is intended to inform the user that an operation is in progress, to reassure that the system is not hung or waiting for ...
, 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. 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. This utility can be used to defragment specific volumes or to just analyze volumes as the defragmenter would in
Windows XP Windows XP is a major release of Microsoft's Windows NT operating system. It was released to manufacturing on August 24, 2001, and later to retail on October 25, 2001. It is a direct upgrade to its predecessors, Windows 2000 for high-end and ...
. 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 Windows Server 2008 is the fourth release of the Windows Server operating system produced by Microsoft as part of the Windows NT family of the operating systems. It was released to manufacturing on February 4, 2008, and generally to retail on F ...
. The most notable of these improvements is that the ability to select which volumes are to be defragmented has been added back. Notably, the Windows Vista defragmenter is much more effective than the version included with XP.


Windows 7 and later

Windows 7 Windows 7 is a major release of the Windows NT operating system developed by Microsoft. It was released to manufacturing on July 22, 2009, and became generally available on October 22, 2009. It is the successor to Windows Vista, released nearly ...
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 Microsoft Corporation is an American multinational technology corporation producing computer software, consumer electronics, personal computers, and related services headquartered at the Microsoft Redmond campus located in Redmond, Washin ...
, Windows 7 and later 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, Microsoft Drive Optimizer is also responsible for performing the TRIM command on SSDs.


See also

*
Defragmentation In the maintenance of file systems, defragmentation is a process that reduces the degree of fragmentation. It does this by physically organizing the contents of the mass storage device used to store files into the smallest number of contigu ...
*
File system fragmentation In computing, file system fragmentation, sometimes called file system aging, is the tendency of a file system to lay out the contents of files non-continuously to allow in-place modification of their contents. It is a special case of data fragmen ...
*
List of defragmentation software __NOTOC__ The following is a comparison of notable file system defragmentation software: Notes References {{Reflist, 30em External links The Big Windows 7 Defragmenter TestThe Big Windows XP Defragmenter Test Defragmentation softw ...


References


External links


Troubleshooting Microsoft Drive Optimizer
{{Windows Components Windows components Defragmentation software