Stochastic modeling of large-scale solid-state storage systems: analysis, design tradeoffs and optimization

Yongkun Li, Patrick P. C. Lee, John C. S. Lui

Introduction

Solid-State Drives (SSDs) face a fundamental architectural challenge: they cannot overwrite data in place. To manage storage, SSDs must perform Garbage Collection (GC), reclaiming space by erasing blocks. This process introduces a critical tradeoff between performance (minimizing cleaning cost by selecting blocks with the fewest valid pages) and durability (maximizing wear-leveling by distributing erasures evenly). Historically, SSD designers lacked a formal framework to optimize this balance, particularly for large-scale systems with millions of blocks.

The Randomized Greedy Algorithm (RGA)

To address this, the authors propose a stochastic mathematical framework based on mean-field analysis. This approach models the distribution of block states across the entire drive, proving that as the number of blocks $N$ increases, the system converges to a predictable steady state.

Central to this framework is the Randomized Greedy Algorithm (RGA). RGA introduces a tunable parameter $d$: the algorithm selects $d$ blocks at random and performs GC on the one with the fewest valid pages. By adjusting $d$, the system can transition smoothly from purely Random GC ($d=1$) to purely Greedy GC ($d \to \infty$).

Design space and performance of RGA for various selection window sizes $d$.

As shown in Figure 4, RGA allows designers to navigate the "Pareto frontier" of the performance-durability tradeoff. Notably, even a small selection window (e.g., $d=10$) can achieve cleaning costs nearly as low as the pure Greedy approach while significantly improving wear-leveling. The ability to use non-integer values for $d$ (by probabilistic switching) allows for fine-grained control over any point on the optimal tradeoff curve.

Model Validation and Key Results

The researchers validated their mean-field model using the DiskSim simulator across various synthetic and real-world workloads. The results demonstrate that the mathematical model accurately predicts the steady-state distribution of blocks, regardless of the complexity of the arrival process.

Comparison of the mean-field model predictions against DiskSim simulations for different workload types.

Figure 6 illustrates the high degree of accuracy across random, sequential, and hybrid workloads with both Poisson and non-Poisson arrival processes. Key performance findings include:

  • Throughput: In random-write-dominant traces, RGA provides a smooth spectrum of IOPS between the high-performance Greedy and low-performance Random strategies.
  • Lifespan: For sequential workloads, the Random algorithm offers the longest lifespan (up to 6x longer than Greedy). RGA with $d=5$ retains approximately 68% of this maximum lifetime while maintaining significantly higher performance than pure Random GC.
  • Efficiency: RGA is computationally lightweight, requiring minimal RAM and CPU, making it ideal for hardware implementation in real-world SSD controllers.

Conclusion

The RGA framework provides a powerful "dial" for SSD designers. By leveraging mean-field analysis, controllers can be tuned to specific workload requirements—prioritizing speed for performance-critical applications or longevity for archival storage. This mathematical foundation transforms SSD garbage collection from a heuristic-based process into a precisely tunable engineering discipline.

Summary updated

BibTeX
@article{li2013stochastic,
  author = {Yongkun Li and Patrick P. C. Lee and John C. S. Lui},
  title = {{Stochastic modeling of large-scale solid-state storage systems: analysis, design tradeoffs and optimization}},
  journal = {ACM SIGMETRICS Performance Evaluation Review},
  year = {2013},
  doi = {10.1145/2494232.2465546},
}
Figure