Disk Storage
Disk Storage
An HDD is logically divided in a number of different regions. Seeking is usually the most expensive operation on a hard drive.
- Platter. A non-magnetic, circular storage surface, coated with a ferromagnetic film to record information. Normally both the top and the bottom of the platter are used to record information.
- Track. A single circular “slice” of information on a platter’s surface.
- Sector. A uniform subsection of a track.
- Cylinder. A set of vertically overlapping tracks.
Cluster is a contiguous group of sectors, a logical concept for OS to read data.
Rather than using sectors, some OSs allowed users to store data in variable-sized “blocks.”
See the graph below for an HDD.
Access Cost
The cost of a disk access includes
-
Seek. The time to move the HDD’s heads to the proper track. On average, the
head moves a distance equal to 1/3 of the total number of cylinders on the disk.
-
Rotation. The time to spin the track to the location where the data starts. On
average, a track spins 1/2 a revolution.
-
Transfer. The time needed to read the data from the disk, equal to the number of bytes read divided by the number of bytes on a track times the time needed to rotate the disk once.
Reference
[1] Disk-Based Algorithms for Big Data By Christopher G. Healey