For decades, computer scientists have relied on a simple mental model of storage: the Disk Access Machine (DAM). This model assumes that moving data from a disk to memory happens in fixed-size blocks and that every transfer incurs a uniform cost. While this abstraction served well for spinning hard drives and early solid-state drives (SSDs), modern hardware has fundamentally outpaced it.
A recent study by researchers at Harvard University—Erin Ransom, Andrew Lim, and Michael Mitzenmacher—argues that outdated models are leading to data structure designs that fail to exploit the capabilities of modern hardware. They propose a new framework: the Multi-Queue SSD (MQSSD) model.
The Parallel Reality of Modern SSDs
Modern SSDs are not merely faster versions of hard drives; they are highly parallel systems. Utilizing the NVMe protocol, they provide multiple queues that allow applications to submit thousands of I/O requests simultaneously. Traditional models fail to capture three critical realities:
- Concurrency is Mandatory: Achieving peak throughput requires utilizing many threads simultaneously.
- The FTL Bottleneck: "Random access" on an SSD involves the Flash Translation Layer (FTL). Random requests often miss the FTL’s internal cache, forcing additional internal metadata reads that degrade performance.
- Asymmetry: Writing data is significantly more expensive than reading it—often by an order of magnitude—due to internal processes like garbage collection and wear-leveling.
The MQSSD Framework
The authors developed the MQSSD model by benchmarking three high-end consumer SSDs. They measured how throughput changed as they varied two primary variables: the number of concurrent threads ($k$) and the proportion of random accesses ($r$).
Unlike previous models that use fixed costs, the MQSSD model defines setup costs ($s$) and transfer costs ($\beta$) as functions of concurrency ($k$). By using rational functions to fit performance curves, the model captures how the "cost per page" drops as more threads are added, eventually reaching a hardware-defined floor. A key insight from this data is that concurrency masks randomness: while a single thread suffers a massive penalty from random writes, high concurrency allows the device to schedule operations efficiently enough to blunt that penalty.
Experimental Validation
The study utilized three specific SSD models representing different generations of PCIe and NVMe standards to validate the model's predictive power.
Beyond raw benchmarks, the researchers applied the MQSSD model to Log-Structured Merge-trees (LSM-trees), the engine behind databases like RocksDB. They used db_bench on a 128 GB dataset with 64 million key-value pairs to see if the model could predict more efficient data organizations.
Implications for Data Structure Design
Traditional LSM-trees use multiple levels to balance read and write speeds. However, the MQSSD model suggested an "unorthodox" approach: a single-level layout.
This design works because it enables parallel compaction. In a multi-level tree, threads often block each other. In a single-level layout, the system can split one massive background merge into dozens of parallel tasks, fully saturating the SSD’s multiple queues.
Key Results
- Predictive Accuracy: The MQSSD model successfully predicted the performance of different database configurations where older models (DAM/PDAM) failed.
- RocksDB Speedup: By prioritizing concurrency over traditional leveling logic, the authors achieved a 2x reduction in average point query time compared to standard flash-optimized configurations.
- Throughput Gains: The single-level layout maintained competitive write throughput while drastically improving read and scan performance, proving that maximizing hardware utilization can outweigh theoretical "write amplification" penalties.
Conclusion
The MQSSD model represents a shift toward hardware-aware algorithm design. While currently a steady-state model that does not fully account for the bursty nature of garbage collection, it provides a robust foundation for future work. Understanding the interplay between simultaneous reads and writes within the SSD's internal queues remains the next frontier for high-performance storage modeling.
Summary updated