HDDs & Magnetic Media Internals
While solid-state drives dominate hot transactional tiers, Hard Disk Drives (HDDs) and Magnetic Tape store the vast majority of global data (over 80% in hyperscale datacenters) due to unbeatable economics per terabyte ($/GB).
1. Mechanical Anatomy of an HDDβ
A hard disk drive stores digital bits by polarizing ferromagnetic material on rotating glass or aluminum platters:
[Actuator Voice Coil Motor]
\
\ === [Head Arm]
\
[Read/Write Slider Head] (~5 nm flying height!)
|
+--------------v--------------+
| ( ( ( ( ( Platter ) ) ) ) | <--- 7200 RPM Spindle Motor
+-----------------------------+
Components of Latencyβ
The total latency required to read a random sector from a spinning platter is the sum of three physical operations:
- Seek Time (): The time for the mechanical voice coil actuator to accelerate and position the head over the correct track ().
- Rotational Latency (): The time waiting for the target sector to rotate underneath the head. On average, this is half a revolution:
- Transfer Time (): Time to read the bits off the magnetic track into the onboard controller cache ( for 4KB).
Because seek and rotational latencies dominate, random 4KB I/O yields only , whereas sequential streaming saturates platter surface density at .
2. CMR vs SMR (Shingled Magnetic Recording)β
To increase areal density beyond standard limits, disk manufacturers introduced SMR:
graph TD
subgraph CMR["Conventional Magnetic Recording (CMR)"]
C1["Track N-1"]
C2["Track N"]
C3["Track N+1"]
end
subgraph SMR["Shingled Magnetic Recording (SMR)"]
S1["Track N-1 (Overlapped)"]
S2["Track N (Overlapped)"]
S3["Track N+1 (Overlapped)"]
end
- CMR (PMR): Tracks are arranged side-by-side with discrete guard spaces. Any track can be overwritten without disturbing neighbors.
- SMR: Tracks overlap like roof shingles because write heads are physically wider than read heads. Overwriting track destroys track !
SMR Deployment Typesβ
- Drive-Managed (DM-SMR): The HDD firmware attempts to emulate a normal disk using an internal translation cache. Dangerous for databases; random write workloads cause catastrophic latency cliffs (seconds to minutes).
- Host-Managed (HM-SMR / ZBC / ZAC): The operating system and database engine explicitly control sequential append-only Zones using the Linux Zoned Block Device interface (
blkzone).
3. Advanced Magnetic Technologiesβ
- HAMR (Heat-Assisted Magnetic Recording): Uses a 200mW microscopic diode laser to momentarily heat the magnetic grain to 400Β°C, lowering coercivity to write smaller bits on FePt media.
- Helium Sealed Drives: Platters spin in low-density inert helium gas, drastically reducing turbulence and drag, allowing 10-12 platters in a standard 3.5" chassis.
- Magnetic Tape (LTO-9): Stores up to 18TB uncompressed per cartridge on thin magnetic tape with a 30-year archival lifespan and near-zero power consumption when sitting in a tape library slot.