Abstract
This paper studies how RAID (redundant array of independent disks) could take full advantage of modern SSDs (solid-state drives) with built-in transparent compression. In current practice, RAID users are forced to choose a specific RAID level (e.g., RAID 10 or RAID 5) with a fixed storage cost vs. speed performance trade-off. Commercial market is witnessing the emergence of a new family of SSDs that can internally perform hardware-based lossless compression on each 4KB LBA (logical block address) block, transparent to host OS and user applications. Beyond straightforwardly reducing the RAID storage cost, such modern SSDs make it possible to relieve RAID users from being locked into a fixed storage cost vs. speed performance trade-off. The key idea is simple: RAID systems opportunistically leverage higher-than-expected runtime user data compressibility to enable dynamic RAID level conversion to improve the speed performance without compromising the effective storage capacity. This paper presents design techniques to enable and optimize the practical implementation of such elastic RAID systems. For the purpose of demonstration, we implemented a Linux software-based elastic RAID prototype that supports dynamic conversion between RAID 5 and RAID 10. Compared with a baseline software-based RAID 5, under sufficient runtime data compressibility that enables the conversion from RAID 5 to RAID 10 over 60% user data, the elastic RAID could improve the 4KB random write IOPS (IO per second) by 42% and 4KB random read IOPS in degraded mode by 46%, while maintaining the same effective storage capacity.
Introduction
In the world of storage, Redundant Array of Independent Disks (RAID) has long forced users into a rigid trade-off. RAID 5 offers high capacity by using parity, but it suffers from lower performance due to the need to read and calculate parity for every write. Conversely, RAID 10 offers excellent performance through mirroring but immediately cuts usable storage capacity in half. Traditionally, once a RAID level is chosen, the system is locked into that specific cost-performance profile.
However, a new generation of SSDs features hardware-based, transparent compression. These drives can expose a logical capacity much larger than their physical NAND flash. Elastic RAID aims to use the opportunistic space created by high data compressibility to upgrade data from RAID 5 to RAID 10 on-the-fly, providing the performance of mirroring with the cost-efficiency of parity.
The Opportunity: Transparent Compression
Modern SSDs with built-in transparent compression perform lossless compression on each 4KB block. This allows the drive to expose a Logical Block Address (LBA) space that is significantly larger than the physical NAND capacity. For example, a drive with 4TB of physical NAND might expose 16TB of LBA space to the host, assuming a 4:1 compression ratio.
Elastic RAID Design
The researchers developed a Linux software-based prototype called SW eRAID. Their approach hinges on three main components designed to manage the mapping between logical space and physical storage dynamically.
Bloated Stripe Allocation
To avoid the massive overhead of moving data during a RAID level change, the system allocates "bloated" segments in the LBA space. Each segment is twice the size of a standard RAID 5 stripe.
- In RAID 5 mode, only the first half of the segment (slot-1) is used; the rest is "trimmed" (marked as empty).
- In RAID 10 mode, both halves (slot-1 and slot-2) are used to store mirrored copies of the data.
This allows the system to switch levels simply by changing the mapping function and writing to the previously trimmed slot, rather than migrating data across the array.
Dual-Trigger Scheduling
The system employs two types of triggers to manage these conversions:
- Reactive: The system monitors physical NAND usage. If data is highly compressible and space is abundant, it promotes stripes to RAID 10. If space gets tight, it demotes them back to RAID 5 to ensure the advertised capacity is always available.
- Proactive: Using a "second chance" algorithm, the system identifies "hot" (frequently accessed) data and prioritizes it for RAID 10 promotion to maximize IOPS.
Key Insights
One of the most striking findings is the Parity Compression Paradox. Because RAID 5 parity is created via XOR operations, it often destroys the patterns that compression engines rely on, making parity data largely incompressible. Consequently, a RAID 5 stripe might actually consume more physical NAND than a RAID 10 stripe if the user data is highly compressible. By promoting such data to RAID 10, the system can simultaneously improve performance and reduce physical storage pressure.
Key Results
The experimental results, conducted on a server with ScaleFlux transparent compression SSDs, demonstrate significant gains:
- Write Performance: Under sufficient data compressibility (enabling 60% conversion to RAID 10), the system improved 4KB random write IOPS by 42% compared to a baseline RAID 5.
- Degraded Mode Recovery: When one drive fails, RAID 5 performance usually drops due to parity reconstruction. Elastic RAID improved 4KB random read IOPS by 46% in this state because RAID 10 stripes could be read directly from the surviving mirror.
- Efficiency: The conversion process is highly efficient, reaching throughputs of up to 6.4 GB/s, ensuring that background elasticity does not interfere with user applications.
Conclusion
Elastic RAID breaks the static trade-offs of traditional storage by treating RAID levels as dynamic properties of data stripes rather than fixed array configurations. By leveraging the unique characteristics of transparent compression SSDs, it provides a path toward storage systems that are both high-performance and cost-effective, adapting in real-time to the nature of the data they store.
Summary updated