In the context of administering computer systems, defragmentation (or defragging) is a process that eliminates fragmentation in file systems. It does this by physically reorganizing the contents of the disk in order to store the pieces of each file close together and in order (contiguously). It also attempts to create large regions of free space using compaction, to impede the return of fragmentation.
Fragmented data also spreads over more of the disk than it needs to. Thus one may defragment in order to compact data storage before splitting a single partition into two or more partitions (for example, with GNU Parted, or PartitionMagic).
A defragmentation program must move files around within the free space available in order to undo fragmentation. This is a memory intensive operation and cannot be performed on a file system with no free space. The reorganization involved in defragmentation does not change logical location of the files (defined as their location within the directory structure).
Another common strategy to optimize defragmentation and to reduce the impact of fragmentation is to partition the hard disk(s) in a way that separates portions of the file system that experience much more reads than writes from the more volatile zones where files are created and deleted frequently. In Microsoft Windows, the contents of directories such as "\Program Files" or "\Windows" are modified far less frequently than they are read. The directories that contain the users' profiles are modified constantly (especially with the Temp directory and Internet Explorer cache creating thousands of files that are deleted in a few days). If files from user profiles were held on a dedicated partiton (as is commonly done on UNIX systems), the defragmenter runs better since it does not need to deal with all the static files from other directories. For partitions with relatively little write activity, defragmentation performance greatly improves after the first defragmentation, since the defragmenter will need to defrag only a small number of new files in the future. Relocating Windows user data onto a dedicated partition is not a trivial task even for experienced users.
Certain file systems exhibit a greater susceptibility to fragmentation than others, for example, a FAT file system becomes fragmented much more quickly than NTFS. Many file systems on Unix-like platforms do not require defragmentation at all. These systems attempt to keep fragmentation below a certain point so defragmenting is not necessary. This fragmentation resistance works well as long as the file system has a fairly large amount of space free.
On systems without fragmentation resistance, fragmentation builds upon itself when left unhandled, so periodic defragmentation is necessary to keep disk performance at peak and avoid the excess overhead of less frequent defragmentation.
Perhaps the best-known defragmentation utility used to be the MS-DOS and Windows program DEFRAG. Modern versions of Windows (Windows 2000 and later) ship with a basic edition of Diskeeper, which is a tremendous improvement over the old Defrag despite its limitations, found on the All Programs -> Accessories -> System Tools folder of the Start Menu or Computer Management MMC snap-in.
Other commercial defragmentation utilities: PerfectDisk, O&O Defrag and mst Defrag.
Rotating disc computer storage media | Computer storage devices
Fragmentierung (Computer) | Desfragmentación | Défragmentation | デフラグメンテーション | Defragmentacja | Дефрагментация диска
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Defragmentation".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world