Rep-RAID: An Integrated Approach to Optimizing Data Replication and Garbage Collection in RAID-Enabled SSDs

Jun Li, Balazs Gerofi, François Trahay, Zhigang Cai, Jianwei LiaoLCTES 2023

As SSDs transition toward higher densities like TLC and QLC, they become increasingly susceptible to errors. To maintain data reliability, manufacturers have integrated RAID-5 (often termed Redundant Array of Independent NAND, or RAIN) directly into SSD controllers. However, this reliability comes at a steep cost: the "write penalty." Every data update requires a corresponding parity chunk update via XOR operations, doubling the write load and taxing the controller.

While previous research suggested using data replication to bypass this penalty, it introduced a secondary problem: Garbage Collection (GC) overhead. In a RAID stripe, "obsolete" data chunks must often be preserved to protect the integrity of other chunks in the same stripe. These "semi-invalid" chunks lead to excessive data movement during GC, which degrades overall performance and increases tail latency.

The Rep-RAID Solution

Presented at LCTES 2023, Rep-RAID is a system designed to resolve this performance-reliability trade-off through two primary innovations:

  1. Model-Based Selective Replication: Rather than replicating all data, Rep-RAID employs a mathematical cost-evaluation model. It only triggers replication for "hot" (frequently updated) data where the immediate benefit of skipping an XOR update outweighs the future cost of data migration during GC.
  2. Stripe Reorganization during GC: This novel technique transforms GC from a performance bottleneck into an optimization window. During the GC process, Rep-RAID identifies opportunities to combine cold replicated data with valid chunks from fragmented stripes to form entirely new, healthy RAID stripes. This allows the system to invalidate previously "hostage" chunks, significantly reducing the volume of migrated pages.
The RAID update process illustrating how replication can bypass immediate parity updates (P') by writing new data (D0') to a different location.

Evaluation and Performance

The researchers evaluated Rep-RAID using the SSDSim simulator, testing it against real-world workloads from the MSR Cambridge block I/O traces (including web servers and development tools). The results demonstrate that Rep-RAID effectively mitigates the traditional drawbacks of RAID-enabled flash storage.

Compared to standard RAID-5 and existing replication schemes like FusionRAID, Rep-RAID achieved:

  • 16.7% average improvement in I/O performance.
  • 34.7% improvement in write responsiveness by avoiding unnecessary XOR computations.
  • 31.9% reduction in valid page moves during garbage collection.
Cumulative distribution of latency across various traces, showing Rep-RAID's ability to maintain consistent performance and reduce tail latency.

Crucially, the system reduced tail latency by up to 17.9% at the 99.99th percentile. This consistency is vital for enterprise environments where unpredictable latency spikes can disrupt user experience. While Rep-RAID introduces a small memory overhead for its replica table (~485 KB for a 128 GB SSD), the performance gains and efficiency improvements offer a compelling path forward for high-density, reliable SSD storage.

Summary updated

BibTeX
@inproceedings{li2023rep,
  author = {Jun Li and Balazs Gerofi and François Trahay and Zhigang Cai and Jianwei Liao},
  title = {{Rep-RAID: An Integrated Approach to Optimizing Data Replication and Garbage Collection in RAID-Enabled SSDs}},
  booktitle = {LCTES},
  year = {2023},
  doi = {10.1145/3589610.3596274},
}
Figure