[Paper Review] Time-efficient Garbage Collection in SSDs
This paper proposes two optimized garbage collection (GC) strategies—fast cost-benefit and approximative cost-benefit—that drastically reduce the runtime of the original cost-benefit GC algorithm in SSDs while preserving its low write amplification. The fast cost-benefit strategy uses priority classes to minimize search time, and the approximative strategy batches victim block selections, achieving up to 24× faster performance with no significant increase in write amplification, enabling efficient use in multi-TB SSDs.
SSDs are currently replacing magnetic disks in many application areas. A challenge of the underlying flash technology is that data cannot be updated in-place. A block consisting of many pages must be completely erased before a single page can be rewritten. This victim block can still contain valid pages which need to be copied to other blocks before erasure. The objective of garbage collection strategies is to minimize write amplification induced by copying valid pages from victim blocks while minimizing the performance overhead of the victim selection. Victim selection strategies minimizing write amplification, like the cost-benefit approach, have linear runtime, while the write amplifications of time-efficient strategies, like the greedy strategy, significantly reduce the lifetime of SSDs. In this paper, we propose two strategies which optimize the performance of cost-benefit, while (almost) preserving its write amplification. Trace-driven simulations for single- and multi-channel SSDs show that the optimizations help to keep the write amplification low while improving the runtime by up to 24-times compared to the original cost-benefit strategy, so that the new strategies can be used in multi-TByte SSDs.
Motivation & Objective
- Address the high runtime of the cost-benefit garbage collection (GC) strategy in large SSDs, which scales linearly with the number of blocks.
- Reduce the performance overhead of victim block selection without increasing write amplification.
- Enable the use of sophisticated GC strategies in high-capacity SSDs (multi-TB) where linear-time algorithms become infeasible.
- Improve scalability of GC for modern multi-channel and high-density SSDs by optimizing selection efficiency.
- Maintain low write amplification comparable to the original cost-benefit approach while drastically improving runtime performance.
Proposed method
- Introduce the fast cost-benefit strategy, which organizes blocks into priority classes based on their cost-benefit (CB) values, with only the highest-priority class (Class 0) used for victim selection.
- Pre-calculate the time at which blocks must be moved between classes to avoid runtime computation, reducing search complexity.
- Implement a class update mechanism that only modifies Class 0 and Class 1, minimizing overhead during block invalidation and migration.
- Propose the approximative cost-benefit strategy, which selects multiple potential victim blocks at once instead of one per cycle, reducing per-cycle computation time by a constant factor.
- Use trace-driven simulations with real-world workloads (TPCC, SPC1, Financial1) to evaluate performance and write amplification across different SSD sizes, page counts, and hardware platforms.
- Analyze runtime breakdowns and identify parallelization opportunities, such as decoupling class updates from victim selection for multi-core execution.
Experimental results
Research questions
- RQ1Can the runtime of the cost-benefit GC strategy be reduced without increasing write amplification in large SSDs?
- RQ2How effective are class-based grouping and batched victim selection in accelerating GC while maintaining low write amplification?
- RQ3What is the performance impact of the proposed strategies on modern multi-core processors (Intel and ARM) across diverse workloads?
- RQ4To what extent can the new strategies scale to multi-TB SSDs with high page counts per block?
- RQ5What are the key performance bottlenecks in the original cost-benefit algorithm, and how can they be decoupled or parallelized?
Key findings
- The fast cost-benefit strategy reduces GC runtime by up to 13× on the SPC1 trace and 2.8× on the TPCC trace compared to the original cost-benefit approach.
- The approximative cost-benefit strategy achieves up to 24.4× higher IOPS than the original cost-benefit algorithm, with no noticeable increase in write amplification for small values of q.
- On an ARM Cortex-A17 processor, the fastest algorithm (approximative cost-benefit) achieves up to 20× higher performance than the original cost-benefit strategy, despite lower CPU frequency and memory bandwidth.
- The original cost-benefit strategy is significantly slowed by double-precision floating-point operations on ARM, which the optimized strategies mitigate through reduced computation.
- The performance gap between the original cost-benefit and optimized strategies widens with SSD size, particularly due to increased Class 0 size management overhead.
- The strategies reveal strong parallelization potential: class updates and victim selection can be decoupled, enabling near-1.5 million IOPS with optimized core distribution.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.