Auto-tuning for HPC storage stack: an optimization perspective

Zhangyu Liu, Jinqiu Wang, Huijun Wu, Qingzhen Ma, Lin Peng, Zhanyong TangCCF 2024

Abstract

Storage stack layers in high-performance computing (HPC) systems offer many tunable parameters controlling I/O behaviors and underlying file system settings. The setting of these parameters plays a decisive role in I/O performance. Nevertheless, the increasing complexity of data operations and storage architectures makes identifying a set of well-performing configurations a challenge. Auto-tuning is a promising technology. This paper presents a comprehensive survey on "Auto-tuning in HPC I/O". We expound a general storage structure based on a general storage stack and critical elements of auto-tuning, and categorize related studies according to the way of tuning. On the basis of the order in which the approaches were applied, we introduce the specific works of each approach in detail, and summarize and compare the pros and cons of these approaches. Through a comprehensive and in-depth study of existing research, we elaborate on the development history of auto-tuning technology in HPC I/O, analyze the current situation, and provide guidance for optimization technology in the future.

Introduction: Bridging the I/O Gap

As supercomputing moves toward the exascale era, a significant "historical gap" has emerged between raw computational power and I/O capability. While processing speeds have skyrocketed, the ability to move data into and out of storage has become a primary bottleneck for scientific discovery. Modern High-Performance Computing (HPC) systems rely on complex, multi-layered storage stacks to manage data, but these stacks are riddled with tunable parameters that are notoriously difficult to optimize manually.

The Complexity of the HPC Storage Stack

The modern HPC storage stack is composed of several distinct layers, each providing different abstractions and functionalities. From high-level libraries like HDF5 and NetCDF to parallel file systems like Lustre and GPFS, every layer introduces parameters—such as stripe counts, buffer sizes, and chunking strategies—that significantly impact performance.

The multi-layered HPC storage stack and its tunable components, ranging from high-level libraries to physical storage devices.

Because these layers are interdependent, a change in one (e.g., HDF5 chunk size) can have cascading effects on another (e.g., MPI-IO collective buffering). Finding the "sweet spot" for a specific application on a specific hardware configuration is a daunting task, often leading users to rely on sub-optimal default settings.

Methodology: Categorizing Auto-tuning Approaches

To address this complexity, researchers have developed various auto-tuning methodologies. This survey categorizes nearly three decades of research into five primary approaches, as illustrated in the organizational structure below.

Organizational structure of the survey, detailing the categorization of HPC storage and auto-tuning methodologies.
  1. Heuristic-based Search: Utilizes algorithms like Genetic Algorithms (GA) or Simulated Annealing (SA) to explore the parameter space. While effective at finding high-quality configurations, these methods often require numerous actual application runs, making them time-consuming.
  2. Rule-based Approach: Employs expert "if-then" logic or experimental heuristics. These are computationally inexpensive but struggle to adapt to the dynamic, shared nature of modern HPC environments.
  3. Simulation-based Approach: Builds mathematical or regression-based performance models. By querying a model instead of running the real application, these tuners can evaluate thousands of configurations in seconds.
  4. Machine Learning-based Search: Leverages Reinforcement Learning (RL) agents (e.g., DQN, PPO) that learn optimal policies through trial and error, receiving rewards based on achieved throughput.
  5. Hybrid Approach: Combines multiple methods, such as using rule-based systems to prune the search space before applying heuristic algorithms for fine-tuning.

Comparative Performance and Insights

The survey highlights a critical trade-off between "tuning time" and "execution time." For auto-tuning to be viable, the time saved during execution must significantly outweigh the overhead of the tuning process itself. Key results from representative works include:

  • Heuristic-based (GA): Can achieve substantial speedups (up to 7.74x) but may require hours of tuning time and hundreds of application runs.
  • Simulation-based: Offers the most dramatic results in terms of efficiency, with reported speedups of up to 32x achieved in just a few seconds of tuning time through predictive modeling.
  • Machine Learning (RL): Provides a balanced approach, with speedups around 4.25x and tuning times in the range of minutes, making it suitable for capturing complex system dynamics.

Challenges and Future Directions

Despite the progress, several hurdles remain for widespread adoption of auto-tuning in production HPC environments:

  • Scale Invariance: Ensuring that configurations optimized on small-scale testbeds remain effective at the full scale of a supercomputer (e.g., 10,000+ nodes).
  • Production Stability: The risk of "bad" configurations impacting shared file system stability makes it difficult to test auto-tuners in live environments.
  • I/O Pattern Abstraction: Moving toward "fingerprinting" applications to allow for instant, pre-tuned configuration matching based on recognized I/O patterns.

Conclusion

Auto-tuning represents a vital path forward for overcoming the I/O bottleneck in HPC. By transitioning from manual, expert-driven tuning to automated, algorithmic optimization, the community can unlock the full potential of exascale systems. Future research must focus on reducing tuning overhead and ensuring the stability and scalability of these automated systems in production environments.

Summary updated

BibTeX
@inproceedings{liu2024auto,
  author = {Zhangyu Liu and Jinqiu Wang and Huijun Wu and Qingzhen Ma and Lin Peng and Zhanyong Tang},
  title = {{Auto-tuning for HPC storage stack: an optimization perspective}},
  booktitle = {CCF},
  year = {2024},
  doi = {10.1007/s42514-024-00198-8},
}
Figure