03. Storage Media β HDD, SSD & NVMe
Storage media physics dictate the fundamental limits of latency, throughput, concurrency, and longevity in modern infrastructure.
1. Hard Disk Drives (HDDs): Electromechanical Mechanicsβ
HDDs store bits by magnetizing microscopic magnetic domains on rotating ferromagnetic platters.
Spindle Motor
β
ββββ΄βββ Read/Write Head
ββββββ€ β βββββββββββββ\
β ββββ¬βββ \====[ Head Gimbal Assembly ]
β Platters \
β (5400-15000 RPM) \ Actuator Arm
β \
βΌ β²
Rotational Latency Seek Time (Voice Coil Motor)
Components of HDD Access Latencyβ
- Seek Time (): The mechanical time taken by the voice-coil actuator to position the head over the specified track ().
- Rotational Latency (): Time spent waiting for the target sector to spin beneath the head.
- At 7,200 RPM: .
- At 15,000 RPM: .
- Transfer Time: Electrical streaming speed of sectors across the magnetic head ().
2. Solid State Drives (SSDs) & NAND Flash Physicsβ
SSDs eliminate all moving parts by storing electrons in floating-gate or charge-trap flash transistors.
Control Gate
ββββββββββββββββββββββ
Inter-poly Oxide
ββββββββββββββββββββββ
Floating Gate (Stores trapped electrons)
ββββββββββββββββββββββ
Tunnel Oxide (Subject to wear / degradation)
ββββββββββββββββββββββ
P-Substrate (Source / Drain Silicon)
Cell Storage Densitiesβ
- SLC (Single-Level Cell): 1 bit per cell. 100,000 P/E cycles. Lowest latency, ultra-high endurance.
- MLC (Multi-Level Cell): 2 bits per cell. ~10,000 P/E cycles.
- TLC (Triple-Level Cell): 3 bits per cell. ~3,000 P/E cycles. Industry standard for enterprise and consumer.
- QLC (Quad-Level Cell): 4 bits per cell. ~1,000 P/E cycles. Used for read-intensive cold/warm bulk storage.
The Asymmetric In-Place Update Problemβ
- Reads: Occur at the Page level (), latency .
- Writes / Programming: Occur at the Page level, latency .
- Erases: Can ONLY occur at the Erase Block level (), latency .
Because flash cannot overwrite a page without first erasing its entire block, writes must be directed to empty pre-erased pages, requiring the Flash Translation Layer (FTL).
3. The Flash Translation Layer (FTL) & Garbage Collectionβ
The FTL is an embedded real-time operating system running inside the SSD controller:
- LBA-to-PBA Mapping: Translates logical host addresses to dynamic physical NAND flash addresses.
- Wear Leveling: Distributes writes evenly across all physical blocks to prevent localized premature cell death (Static and Dynamic Wear Leveling).
- Garbage Collection (GC):
- Scans erase blocks containing stale/deleted pages.
- Copies remaining valid pages to an empty erase block.
- Issues a high-voltage erase command on the old block to reclaim it for future writes.
- TRIM / Deallocate Command:
- Informs the SSD controller when a file is deleted by the OS filesystem.
- Prevents the SSD from wasting write endurance copying deleted blocks during garbage collection cycles.
4. Hardware Interfaces & Protocols: SATA vs. SAS vs. NVMeβ
+---------------+------------------------+------------------------+------------------------+
| Feature | SATA III | SAS 3 / SAS 4 | NVMe (PCIe 4.0 / 5.0) |
+---------------+------------------------+------------------------+------------------------+
| Protocol | AHCI (designed for HDD)| SCSI Command Set | NVMe native protocol |
| Bus Interface | Serial ATA (6 Gbps) | Serial Attached SCSI | PCIe Gen 4/5 (x4 lanes)|
| Max Bandwidth | ~550 MB/s | ~1.2 - 2.4 GB/s | ~7.5 - 14.0 GB/s |
| Command Queues| 1 Queue | Up to 254 Queues | Up to 64,000 Queues |
| Queue Depth | 32 Commands max | 254 Commands per queue | 64,000 Commands / queue|
| CPU Overhead | High (single lock) | Moderate | Minimal (multi-core) |
+---------------+------------------------+------------------------+------------------------+
5. Media Comparison Matrixβ
| Storage Medium | Typical Random 4K Read Latency | Max Random Read IOPS | Sequential Read Throughput | Cost per TB ($) | Primary Workload |
|---|---|---|---|---|---|
| Enterprise 7200 RPM HDD | ~$15 | Cold archive, backup, video | |||
| Enterprise SATA SSD | ~$60 | Legacy virtualization | |||
| Enterprise NVMe TLC SSD | ~$90 | Real-time OLTP, analytics, AI |