How You’re Hard Drive Works
Your hard drive is the only “data handling” peripheral in your computer with moving parts. This makes it the slowest performing peripheral, when compared to the CPU and memory. As a result it is the performance rate limiting device on your computer. Most of the time, the CPU and memory has done its work and is waiting on the hard drive to provide or save data.
In the most simplistic of descriptions, your hard drive consists of spinning platters and read/write heads. The platters contain data bits that consist of magnetic patterns of data. The platters spin at a rate of anywhere between
4,200 and 15,000 RPM, depending upon your drive specifications. This rapid rotation of the platters results in a cushion of air that makes the read/write heads float only a few micrometers above the surface of the platters - just like a hovercraft floats a few inches above the water. When a request for a file is sent from the main CPU the read/write heads move across your drive to locate the file, they then read that file and send the data back to the CPU.
A file may be 512 bytes in size or it may be many Gigabytes in size.
If you do not run any kind of defragging or file ordering process, generally speaking, files exist on your drive in random order. Files may also become fragmented and this is a leading cause of reduced hard drive performance.
A Little about Drive Fragmentation
Fragmentation of your computer’s hard drive is a natural phenomenon that occurs when deleted files leave empty spaces amongst your drive’s data. When the operating system needs to write another file back to the
hard drive it generally looks for the first available free space and writes the data to that free space. If the data to be written does not fit in that space it will fill the space with data and then move onto the next free space and continue to write the data until the file is completely written – the result is parts of a file scattered in a fragmented (non-contiguous) manner.
When the operating system requests that fragmented file from the hard drive the hard drive read-write heads need to move around the drive to collect all the pieces of that file. The result is vastly reduced performance since the hard drive head has to make many movements to collect all
the pieces of the file rather than pick it all up in one smooth motion from consecutive clusters.
The more fragments a file has the longer it takes to load that particular file. The result is that your hard drive performs far slower than it is capable of in the process of loading that file.
This is, in a nutshell, the phenomenon of file fragmentation.
Fragmentation and Optimization
File fragmentation is only part of the equation in the cause of reduced hard drive performance. UltimateDefrag addresses this and the other, more important, part of the equation in reduced hard drive performance and that is, the placement and ordering of files on your hard drive.
File Placement - A More Important Issue
Most defraggers that are out there have pretty much ignored this much more important aspect of hard drive performance – the placement of files on your hard drive. Loading one file that is fragmented is a discreet issue at the individual file level. However, the way in which the Windows operating system and NTFS file system function results in an almost
constant dialog between the computer and the hard drive as hundreds of files are accessed during system boot time and during regular operation of the computer.
What comes into importance here is the work the hard drive read-write
heads need to do to read all of these files that are both fragmented and scattered all around the drive. If they are not fragmented they are still scattered all around the drive and loading these files requires extensive movement of the hard drive read-write heads to pick up these files from wherever they may be on the drive – from the outer tracks to the inner tracks. Reading a file from the outer tracks and then having to go all the way to the very inner tracks takes the amount of time that is actually twice as slow as your drive’s rated seek speed. If your hard drive has an average access speed of 13 mS then reading a cluster from the outer and then the inner track takes about 26 mS.
See the File Scattering Example diagram.
Hard Drive File Location
Another important item to note is the location of the data on your hard drive. It is a fact that data transfer from the outer tracks of your hard drive platter is about 180 to 240% that of your inner tracks. This is due to the phenomenon of zoned bit recording and angular velocity. Please consult the Basic Hard Drive Theory section for more information on this.
The Ideal Scenario
Your hard drive is capable of performing around 4 times what manufacturers specify as average performance for your hard drive
In order to have your hard drive perform as fast as it is capable of and even faster than the average rated speed, four elements need to be considered.
1. Your files need to be defragmented in order to minimize drive head movement while reading a file.
. Your files need to be placed as far as possible towards the outer tracks of your hard drive in order to be accessed from the fastest part of the hard drive.
. Your files need to be placed or consolidated as closely together as possible to minimize head movement while loading different files – also known as “seek confinement”
. Files that are rarely used should be placed out of the way so that your most used files are clustered as closely together as possible.
Basic Hard Drive Theory
We will now focus a little more closely on how your hard drive works from the viewpoint of data access
Seek Time: The amount of time a drive head takes to move to the correct position to access data. Usually measured in milliseconds (mS)
Latency: Also know as rotational delay. The amount of time it takes for the desired data to rotate under the disk heads. Usually the amount of
time it takes for the drive to perform a half revolution. Usually measured in milliseconds (mS)
Access Time: The amount of time a drive head takes to access data after the request has been made by the operating system. Usually measured in milliseconds (mS). Other minor factors taken out of the equation it is very closely approximate to: Access Time = Seek Time + Latency.
So when data is being requested from the drive the hard drive head moves into position (seek), waits for the data/sector to move into position under the head (latency) and then accesses the data. The time taken for these 2 steps is the access time.
Full Stroke Seek: The amount of time it takes for the drive head to move from the outermost track to the inner most track.
Track-To-Track Seek (Adjacent Track Seek): The amount of time it takes for the drive head to move from one track to the very next track
Data Transfer Rate: The speed at which data can be read from the hard drive. Measured in Megabits per second
Zoned-Bit Recording: A method of optimizing a hard drive (at the factory) by placing more sectors in the outer tracks of a hard drive than on the inner tracks. Standard practice for all modern hard drives.
Sectors: The smallest individually addressable unit of data stored on a hard drive. In a typical formatted NTFS hard drive it is usually 512 bytes.
Tracks: Tightly packed concentric circles (like the annual rings on inside of a tree) where sectors are actually laid out.
Rotational Speed: The speed at which a drive platter rotates in revolutions per minute.
With all these terms now outlined, let’s look at the numbers in a typical 160
Gb EIDE hard drive.
Read Seek Time: 8.9 mS Latency: 4.2 mS Full Stroke Seek: 21.0 mS Track-To-Track Seek: 2.0 mS
Transfer Rate: 750 Mbits/s
Hard Drive Performance Explained
Let’s look at how these factors work to affect hard drive performance
Data Access
When the CPU submits a request for a file from the hard drive - this is what happens.
1. CPU sends request to the hard drive
. The read/write head moves into position above the track where the data is. This is the seek and the amount of time taken is the seek time.
. The read/write head waits until the data that is requested spins underneath the head. It then reads the data. The time taken for the data to move beneath the head is the latency and is usually the time it takes for the platter to rotate a half revolution.
. Data is accessed and transferred back to the CPU.
The time it took for the initial request, the seek and the latency is approximately equal to the access time.
Having the numbers above available now enable further explanations of data performance to be put into comprehendible perspective.
The average Access Time for this hard drive is 8.9 + 4.2 = 13.1 mS.
The minimum access time is 2.0 + 4.2 = 6.2 mS and the maximum access time is 21.0 + 4.2 = 25.2 mS.
When complete data files or parts of a data file are scattered all around the hard drive you will get a performance that is the average rated access time
– in this case 13.1 mS – some accesses are as little as 6.2 mS but some
are as great as (or approaching) 25.2 mS. So there is a 406% performance difference between fastest and slowest access time.
Often, hard drive and operating system intelligence result in a lot of instantaneous track-to-track seeks i.e. without the latency due to file layout patterns and relative location of data. On top of this, the “seek confinement” of the data also promotes vastly increased probabilities of instantaneous, zero-latency, seeks due to the
“compaction” of the data. This increases the probability that the data requested will already be under the drive read/write heads. This actually increases the theoretical 406% figure in the above paragraph to a greater number however it is not accurately quantifiable but can be as high as 1000%.
In a typical fragmented and non-optimized hard drive you will only achieve the average rated performance as average access time with some accesses faster and some slower.
Data transfer
Part of the hard drive performance equation is Data Transfer Rates. Due to a combination of Zoned-Bit Recording (more densely packed sectors) and angular velocity i.e. the outer tracks of the hard drive have a greater angu- lar velocity – data transfer at the outer tracks of the drive is typically 180
to 240 % that of the inner tracks. So when a drive is boasting a maximum of 750 Mbits/second as the maximum – the minimum is about 350 and the average about 550 Megabits per second.
Again – if you’re operating a full, fragmented and non-optimized hard drive, performance is more around the average of 550 Megabits per second.
Hard Drive Fatigue
When it comes to hard drives, entropy is alive and well.
If you’ve had your computer for a while you will notice that, when com- pared to when it was brand new, it feels a whole lot slower. Also, as your hard drive gets fuller you’ll notice the same phenomenon.
This is due to several factors with the main one being that with the hard drive filling up and files being fragmented and scattered all over the drive in no particular order, your drive is performing more like the “average” quoted performance as opposed to when the drive was new and mostly empty and performing better than quoted.
Depending upon where your mostly accessed files are located, it could be performing much less than quoted averages.
What About Partitioning?
There are many arguments for partitioning. Proponents of partitioning argue that it helps organize your data, keep your hard drive “less” complex etc. They advise to put your operating system on one partition, archive on another, program files on another, data on another and it seems a sound argument.
The main problem with partitioning however is that actually creates drives that are slower and slower as more partitions are created. Partitions
are created in cylinders (group of tracks) working their way inwards as more are created. So when you create say 5 partitions of 40 Gb on a 200
Gb drive. The very inner partition – the highest drive letter is actually also created at the inner tracks. So it actually performs twice as slow as the primary partition. Remember our discussion of data transfer above. Each partition is about 10% slower than the previous one. C: drive gives you fastest performance; D would be approximately 10% slower; E:
approximately 20% slower; F: 30% Slower; and so on. You may be putting the games or product that you want highest performance from on a partition that results in much slower performance of that product.
source: Unreadable header/Ultimate defrager
0 comments:
Posting Komentar