Please Wait...
Sponsored By :Tivad News.

Defragmenting Disks for Better Performance

On a relatively new system with a speedy processor and plenty of physical memory, hard disk performance is the single biggest bottleneck in everyday operation. Even with a zippy hard disk, it takes time to load large data files into memory so that you can work with them. The problem is especially noticeable with movies, video clips, DVD-burning projects, databases, ISO image files, and virtual hard disks, which can easily take up multiple gigabytes, sometimes in a single file.


On a freshly formatted disk, files load fairly quickly, but over time, performance can degrade because of disk fragmentation. To understand how fragmentation works, it helps to understand the basic structure of a hard disk. The process of formatting a disk divides it into sectors, each of which contains space for 512 bytes of data. The file system combines groups of sectors into clusters, which are the smallest units of space available for holding a single file or part of a file.

On any NTFS volume greater than 2 GB in size, the cluster size is 4 KB. Thus, when you save a 200-MB video clip, Windows divides the file into roughly 50,000 pieces. When you save this file for the first time on a freshly formatted, completely empty hard disk, Windows writes it in contiguous clusters. Because all the clusters that hold individual pieces of the file are physically adjacent to one another, the mechanical components of the hard disk can work very efficiently, scooping up data in one smooth operation. As a bonus, the hard disk's onboard cache and the Windows disk cache are able to anticipate the need for data and fetch nearby clusters that are likely to contain other parts of the file, which can then be retrieved from fast cached memory rather than from the relatively slow disk.

Unfortunately, hard disks don't stay neatly organized for long. When you add data to an existing file, the file system has to allocate more clusters for storage, typically in a different physical location on the disk. As you delete files, you create gaps in the once-tidy arrangement of contiguously stored files. As you save new files, especially large ones, the file system uses all these bits of free space, scattering the new files over the hard disk in many noncontiguous pieces. The resulting inefficiency in storage is called fragmentation; each time you open or save a file on a badly fragmented disk, disk performance suffers, sometimes dramatically, because the disk heads have to spend extra time moving from cluster to cluster before they can begin reading or writing data.

The Disk Defragmenter in Windows 7 improves on earlier versions in many ways, not the least of which is you shouldn't need to do anything to benefit from it. Disk Defragmenter runs as a low-priority background task that kicks off once a week, in the middle of the night, without requiring any attention from you.

0 Comment:

Post a Comment

 
 
 
 
Copyright © Tivad News
Using Caribou Theme | Bloggerized by Themescook
This template is brought to you by : allblogtools.com | Blogger Templates