Enhancing Endurance of Huge-Capacity Flash Storage Systems by Selectively Replacing Data Blocks

Wei-Neng Wang, Kai Ni, Jianshe Ma, Zong-Chao Wang, Yi Zhao, Longfa PanIEICE 2012

Abstract

The wear leveling is a critical factor which significantly impacts the lifetime and the performance of flash storage systems. To extend lifespan and reduce memory requirements, this paper proposed an efficient wear leveling without substantially increasing overhead and without modifying Flash Translation Layer (FTL) for huge-capacity flash storage systems, which is based on selective replacement. Experimental results show that our design levels the wear of different physical blocks with limited system overhead compared with previous algorithms.

Introduction

Flash memory has a fundamental "expiration date": every time a block is erased and rewritten, it physically degrades. While Single-Level Cell (SLC) flash can handle approximately 100,000 cycles, Multi-Level Cell (MLC) flash—common in consumer SSDs—often lasts only 10,000.

A significant challenge in flash storage is the non-uniformity of data updates. "Hot" data, such as system logs, is rewritten constantly, wearing out specific blocks quickly. Conversely, "cold" data, like stored media files, remains idle in "young" blocks. Without effective wear leveling to distribute erasures across all blocks, a drive may fail prematurely due to a small subset of exhausted blocks. Existing static wear-leveling algorithms for high-capacity drives often struggle with a trade-off between high RAM consumption for tracking block health and insufficient precision in preventing wear outliers.

The SW Leveler: Selective Replacement Strategy

The authors introduce the Static Wear (SW) Leveler, a memory-efficient algorithm designed for high-capacity flash storage. The core innovation is a "selective replacement" mechanism that avoids the need to sort or track every block's absolute health.

Key Components

  • Dual Position Pointers ($P_A$ and $P_B$): The system tracks only two extremes: $P_A$ points to the block with the highest erase cycles (the "oldest"), and $P_B$ points to the one with the lowest (the "youngest").
  • Trigger Threshold ($TH$): The algorithm intervenes only when the wear gap between the hottest and coldest blocks reaches a predefined threshold ($TH$).
  • Selective Replacement: When the threshold is met, the "cold" data in the young block ($P_B$) is moved to a new empty block. This frees the young block to accept "hot" data, effectively balancing the wear.
The selective replacement mechanism uses pointers $P_A$ and $P_B$ to identify and swap data between the most and least worn blocks.

To maintain memory efficiency, the system utilizes 8-bit relative counters instead of absolute erase counts. For an 80 GB drive, this method requires only 384 KB of memory, a significant reduction compared to traditional table-based tracking. Furthermore, the SW Leveler is compatible with existing Flash Translation Layers (FTL), allowing for modular implementation.

Experimental Evaluation

The design was evaluated using three I/O traces representing different workloads:

  1. Random Trace: Simulates small, frequent random writes.
  2. OLTP Trace: Represents enterprise database workloads from Online Transaction Processing.
  3. PC Trace: Typical consumer behavior collected from a daily-use PC running Windows XP.

Key Results and Insights

The SW Leveler demonstrated superior wear uniformity across all tested traces. By focusing on the extremes of the wear distribution, the algorithm successfully "pulls" the most and least worn blocks toward the mean.

Comparison of erase count distributions across different algorithms for the third trace, showing the SW Leveler's superior uniformity.
  • Lower Peak Wear: In the PC trace, the SW Leveler's maximum erase count was 98, compared to 179 for the Yuan-Hao Chang algorithm.
  • Minimal Overhead: Although moving data incurs additional reads and writes, the performance overhead remains within acceptable limits given the substantial gains in device longevity.
  • Threshold Optimization: The choice of $TH$ is critical; a smaller threshold improves leveling at the cost of higher performance overhead, while a larger threshold prioritizes speed over perfect balance.

Conclusion and Future Work

The SW Leveler provides a robust solution for extending flash lifespan with minimal memory overhead. Future research may explore dynamic thresholding to adjust $TH$ based on real-time drive health or workload intensity. Additionally, while the current architecture utilizes FPGA and ARM components, further testing on 3D TLC or QLC NAND flash will be essential to validate the continued efficacy of 8-bit relative counters in denser storage technologies.

Summary updated

BibTeX
@inproceedings{wang2012enhancing,
  author = {Wei-Neng WANG and Kai Ni and Jianshe Ma and Zong-Chao Wang and Yi Zhao and Longfa Pan},
  title = {{Enhancing Endurance of Huge-Capacity Flash Storage Systems by Selectively Replacing Data Blocks}},
  booktitle = {IEICE},
  year = {2012},
  doi = {10.1587/transinf.e95.d.558},
}
Figure