Accelerating Parallel Write via Deeply Integrating Predictive Lossy Compression with HDF5

Sian Jin, Dingwen Tao, Houjun Tang, Sheng Di, Suren Byna, Zarija Lukic, Franck Cappello

Abstract

Modern High-Performance Computing (HPC) simulations generate massive volumes of data, often reaching the petabyte scale. While lossy compression techniques like SZ and ZFP are effective at reducing storage footprints, they traditionally introduce significant synchronization overhead during parallel write operations. This paper presents a novel framework that integrates predictive lossy compression with HDF5’s asynchronous I/O to eliminate these bottlenecks. By predicting compressed data sizes before the compression process begins, the framework allows for early offset calculation and overlapping of computation with I/O. Experimental results on the Summit supercomputer demonstrate write speedups of up to 4.5× with negligible storage overhead.

Introduction

Scientific simulations in fields such as cosmology and plasma physics are increasingly constrained by I/O throughput. Although lossy compression can reduce the amount of data sent to storage, it has historically failed to improve write performance. The primary obstacle is the architectural requirement of parallel I/O libraries like HDF5: to write data from multiple processors into a single shared file, the system must determine the exact starting position (offset) for each data block.

In standard compression workflows, the final size of a data block is unknown until the compression task is completed. This creates a "stop-and-wait" synchronization point where all processes must finish compression and communicate their resulting sizes (via an All-Gather operation) before any writing can commence. This serialization of compute and I/O tasks significantly degrades performance at scale.

Methodology

The proposed framework breaks this synchronization bottleneck through a predictive approach that allows I/O operations to start before compression is finalized.

1. Analytical Prediction Models

Instead of waiting for compression to finish, the framework employs a sampling-based model to estimate the compression ratio and throughput. By using a power function to map predicted bit-rates to compression time, the system can estimate the final data size with high accuracy before the full workload is processed.

2. Asynchronous Overlapping via HDF5 VOL

Leveraging the HDF5 Virtual Object Layer (VOL), the framework initiates write operations to predicted offsets while the compression of subsequent data blocks is still in progress. This deep integration allows the system to hide the latency of both the compression computation and the physical I/O.

3. Extra Space Allocation and Overflow Handling

To account for prediction inaccuracies, the framework allocates a small "extra space" buffer for each partition. If a compressed block is slightly larger than predicted, it fits within this buffer. In the rare event of a significant overflow, a redirection scheme appends the excess data to the end of the file, ensuring data integrity without stalling the primary write pipeline.

4. Compression Task Reordering

When a process handles multiple data fields, the sequence of execution impacts the efficiency of I/O overlapping. The authors developed an optimization algorithm to reorder tasks, prioritizing fields that maximize the overlap between computation and I/O based on predicted throughput consistency.

Experimental Evaluation

The framework was evaluated on the Summit supercomputer (Oak Ridge National Lab) and the Bebop cluster (Argonne National Lab), utilizing up to 4,096 cores. Testing involved two massive real-world scientific datasets:

  • Nyx: A cosmological simulation dataset ($4096^3$ cells, approx. 2.47 TB).
  • VPIC: A Vector Particle-In-Cell plasma physics dataset (161 billion particles, approx. 4.62 TB).

Key Results

  • Performance Gains: The solution achieved up to a 4.5× speedup compared to non-compressed writes and a 2.9× speedup over the existing state-of-the-art HDF5 lossy compression filter (H5Z-SZ).
  • Minimal Overhead: The prediction phase typically accounts for less than 10% of total compression time. Furthermore, the "extra space" strategy resulted in only a 1.5% increase in total file size compared to ideal compression, while virtually eliminating performance hits from data overflows.
  • Scalability: Performance gains remained stable as the core count increased from 256 to 4,096, indicating strong potential for exascale applications.

Discussion and Future Work

The study reveals that compression throughput is remarkably consistent across different data fields when bit-rates are held constant, validating the power-function prediction model. However, the framework's reliance on prediction means that extremely "noisy" or unpredictable datasets could still lead to performance degradation via frequent overflows.

Future research will focus on developing a user-friendly parameter-tuning mechanism to automate the selection of the "extra space ratio" and extending the predictive model to other I/O libraries such as ADIOS or netCDF. By decoupling synchronization from data processing, this predictive approach provides a scalable path forward for high-speed scientific data management.

Summary updated

BibTeX
@inproceedings{jin2022accelerating,
  author = {Sian Jin and Dingwen Tao and Houjun Tang and Sheng Di and Suren Byna and Zarija Lukic and Franck Cappello},
  title = {{Accelerating Parallel Write via Deeply Integrating Predictive Lossy Compression with HDF5}},
  booktitle = {SC},
  year = {2022},
  doi = {10.1109/sc41404.2022.00066},
}
Figure