[Paper Review] Separating Data via Block Invalidation Time Inference for Write Amplification Reduction in Log-Structured Storage
This paper proposes SepBIT, a novel data placement scheme for log-structured storage that reduces write amplification (WA) by inferring block invalidation times (BITs) from skewed real-world workloads. By separating user-written and GC-rewritten blocks and grouping them based on estimated BITs, SepBIT achieves up to 20.2% lower WA and 20% higher I/O throughput than state-of-the-art schemes, and is now deployed in Alibaba Cloud ESSDs.
Log-structured storage has been widely deployed in various domains of storage systems, yet its garbage collection incurs write amplification (WA) due to the rewrites of live data. We show that there exists an optimal data placement scheme that minimizes WA using the future knowledge of block invalidation time (BIT) of each written block, yet it is infeasible to realize in practice. We propose a novel data placement algorithm for reducing WA, SepBIT, that aims to infer the BITs of written blocks from storage workloads and separately place the blocks into groups with similar estimated BITs. We show via both mathematical and production trace analyses that SepBIT effectively infers the BITs by leveraging the write skewness property in practical storage workloads. Trace analysis and prototype experiments show that SepBIT reduces WA and improves I/O throughput, respectively, compared with state-of-the-art data placement schemes. SepBIT is currently deployed to support the log-structured block storage management at Alibaba Cloud.
Motivation & Objective
- To identify the theoretical minimum write amplification (WA) in log-structured storage using future knowledge of block invalidation times (BITs).
- To address the impracticality of accessing future BITs in real systems by designing a practical data placement scheme that infers BITs from real-world storage workloads.
- To reduce WA in log-structured storage by grouping blocks with similar estimated BITs through fine-grained separation of user-written and GC-rewritten blocks.
- To evaluate the effectiveness of BIT inference in skewed workloads and demonstrate superior WA reduction and I/O performance compared to existing data placement strategies.
Proposed method
- Proposes an idealized data placement strategy assuming perfect future knowledge of block invalidation times (BITs), establishing a theoretical lower bound for WA.
- Designs SepBIT to infer BITs using the last user write time and write skewness patterns observed in real-world cloud storage traces (Alibaba and Tencent Cloud).
- Separates blocks into two main categories: user-written blocks and GC-rewritten blocks, and applies independent BIT inference for each group.
- Estimates the lifespan of user-written blocks and residual lifespan of GC-rewritten blocks to infer their BITs, enabling fine-grained grouping of blocks with similar BITs.
- Employs a lightweight indexing structure with low memory overhead to track block statistics and support efficient BIT inference.
- Integrates with existing segment selection algorithms (e.g., Greedy, Cost-Benefit) and evaluates performance in a prototype system emulating zoned storage via ZenFS.
Experimental results
Research questions
- RQ1What is the theoretical minimum write amplification achievable in log-structured storage if future block invalidation times (BITs) are known?
- RQ2Can block invalidation times (BITs) be effectively inferred from real-world storage workloads without future knowledge?
- RQ3How does separating blocks based on inferred BITs compare to temperature-based or coarse-grained separation in reducing write amplification?
- RQ4To what extent does BIT inference via write skewness improve WA reduction and I/O throughput in production-scale workloads?
- RQ5Can a practical data placement scheme based on inferred BITs outperform existing state-of-the-art schemes in real-world deployment scenarios?
Key findings
- SepBIT reduces overall write amplification (WA) by 8.6–15.9% compared to the Greedy segment selection algorithm and by 9.1–20.2% compared to the Cost-Benefit algorithm on Alibaba Cloud traces.
- On per-volume WA, SepBIT reduces amplification by up to 44.1% compared to a baseline that only separates user-written and GC-rewritten blocks.
- In prototype evaluation, SepBIT achieves a median I/O throughput 20% higher than the second-best data placement scheme, with 556.1 MiB/s and 859.4 MiB/s throughput at the 25th and 50th percentiles, respectively.
- The 75th percentile throughput is slightly lower than some baselines due to overhead from FIFO queue access, but this is offset by significantly lower WA in high-throughput volumes.
- Trace analysis confirms that write skewness in real-world workloads enables accurate BIT inference, validating the core assumption behind SepBIT’s design.
- SepBIT is currently deployed in Alibaba Cloud Enhanced SSDs (ESSDs), demonstrating real-world viability and performance benefits in production environments.
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.