Learning-Aided Heuristics Design for Storage System

Yingtian Tang, Han Lu, Xijun Li, Lei Chen, Mingxuan Yuan, Jia Zeng

Introduction

Modern enterprise storage systems, such as Huawei’s Dorado V6, face the daunting task of managing high-performance workloads by dynamically allocating CPU resources across various functional layers. Traditionally, this management relies on handcrafted heuristics designed by human experts. While effective, these strategies often lack long-term context and struggle with the increasing complexity of modern data centers. Deep Reinforcement Learning (DRL) offers a powerful alternative for optimization, yet its "black-box" nature has hindered adoption in mission-critical environments where traceability and sanity checks are paramount.

Researchers have recently developed a novel pipeline to bridge this gap, transforming complex DRL policies into human-readable, "white-box" heuristics. By extracting a Finite State Machine (FSM) from a trained neural network, they achieved significant performance gains while maintaining the transparency required for enterprise deployment.

The Challenge: Complexity vs. Traceability

Storage systems must balance resources between standard I/O (NORMAL), key-value mapping (KV), and resource virtualization (RV). Expert-designed heuristics typically use greedy logic, failing to account for historical workload patterns. DRL can learn these patterns but cannot easily explain its decisions—a major hurdle for engineers who need to understand why a system might migrate a CPU core at any given moment. This research addresses the need for an interpretable model that matches or exceeds the performance of neural networks.

Methods: The Extraction Pipeline

The proposed solution involves a multi-stage pipeline designed to distill neural intelligence into a discrete state machine.

The five-stage pipeline for extracting interpretable FSMs from DRL policies.
  1. RNN-based DRL: A Recurrent Neural Network (GRU) is trained to manage CPU migration, capturing the latent context of workload history.
  2. Quantized Bottleneck Network (QBN): Quantization layers are inserted to force the continuous hidden states of the RNN into a finite number of discrete embeddings.
  3. FSM Extraction: From the quantized model, a Finite State Machine is extracted where each state corresponds to a specific system behavior and action.
  4. Curriculum Learning: To overcome the scarcity of real-world data, the agent is first trained on synthetic "standard" workloads before fine-tuning on authentic user traces.
  5. Interpretation: Analysts use "Fan-in" and "Fan-out" statistics to verify the conditions triggering state transitions.

Key Results and Interpretability

The extracted FSM demonstrated remarkable performance, outperforming expert-handcrafted strategies by 11.5% in terms of makespan (the time to complete I/O requests). Furthermore, both the original DRL model and the extracted FSM showed a 20% reduction in makespan compared to default system settings with no migration.

Crucially, the quantization process resulted in minimal performance loss—only a 0.88% difference compared to the full neural model. This suggests that the essential logic of the DRL policy can be captured effectively in a simplified, discrete form.

Visualization of the extracted FSM showing five distinct states and their transition statistics.

As shown in the visualization, the FSM identifies five distinct states (e.g., "Noop," "N=>R"). This transparency allows domain experts to verify that the model has learned meaningful system physics, such as anticipating the "write-back" phase of a request by shifting capacity from NORMAL to KV/RV levels at the appropriate time.

Conclusion

By converting "black-box" DRL into "white-box" FSMs, this research provides a path for deploying advanced machine learning in conservative enterprise environments. The resulting heuristics are not only more performant than those designed by humans but also offer the traceability necessary for mission-critical storage systems. Future work may extend this pipeline to other complex system tuning problems like cache management and disk scheduling.

Summary updated

BibTeX
@inproceedings{tang2021learning,
  author = {Yingtian Tang and Han Lu and Xijun Li and Lei Chen and Mingxuan Yuan and Jia Zeng},
  title = {{Learning-Aided Heuristics Design for Storage System}},
  booktitle = {SIGMOD},
  year = {2021},
  doi = {10.1145/3448016.3457554},
}
Figure