arXiv:2611.04138cs.DCNov 2026

Manuscript Offprint

arXiv:2611.04138

PhotonZip: Lifecycle-Aware Compression for HDF5-Based Synchrotron Workflows

Haoxu Li, Wenjing Huang, Chengyu Liu, Shiyuan Fu, Hao Hu, Guangming Tan, Dingwen Tao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Haoxu Li1,2^{1,2}, Wenjing Huang1,2^{1,2}, Chengyu Liu2,3^{2,3}, Shiyuan Fu3^{3}, Hao Hu3^{3}, Guangming Tan1^{1}, and Dingwen Tao1^{1}

1^{1} Institute of Computing Technology, Chinese Academy of Sciences

2^{2} University of Chinese Academy of Sciences

3^{3} Institute of High Energy Physics, Chinese Academy of Sciences

taodingwen@ict.ac.cn

Abstract. Synchrotron detectors generate data at rates that challenge storage and I/O systems. Compression can reduce data movement, but codec-only measurements do not capture the end-to-end behavior of HDF5 workflows. We present PhotonZip, a lifecycle-aware compression framework that tests candidate modes through a common HDF5 path and selects among eligible measured configurations according to either compression ratio or round-trip throughput. Its modular filters preserve standard HDF5 access when the required plugin is available. Across four beamline-derived datasets, PhotonZip reaches lossless compression ratios up to 1.629×1.629\times and HDF5 write throughput up to 3.40GB/s write and 7.75GB/s read. The throughput-oriented configuration achieves 1.529×1.529\times lossless data reduction while improving HDF5 write and read throughput by 21.2% and 15.0%, respectively. Lossy preview modes provide up to 16×16\times data reduction and reduce preview latency by up to 8.35 s in the evaluated file-per-rank HDF5 configuration.

Keywords: Scientific data compression · HDF5 filters · Synchrotron data · MPI

1 Introduction

Modern synchrotron light sources employ high-frame-rate detectors that continuously generate large volumes of scientific images [15]. These data are commonly represented as multi-byte integer arrays and persisted as chunked HDF5 datasets for online processing, downstream analysis, and long-term archival [5, 10, 13]. As detector resolution, acquisition rate, and the number of beamlines continue to increase, data production is growing faster than the available storage capacity and I/O bandwidth. Data compression is therefore important not only for reducing storage consumption, but also for decreasing the volume of data transferred through acquisition and storage pipelines.

Applying compression in a production HDF5 workflow, however, is more difficult than selecting a codec with high standalone throughput. First, codec performance on in-memory buffers does not directly translate into end-to-end

H. Li et al.

HDF5 performance, which is jointly affected by compression, data transformation, chunk and metadata management, synchronization, and storage I/O [9]. Second, a higher compression ratio often requires a more complex compression pipeline, introducing additional computation and reducing throughput. Compression ratio and throughput must therefore be considered as a workload-dependent trade-off rather than optimized independently. Third, comparative studies show that the relative effectiveness of compressors and preprocessing pipelines can change across datasets and operating configurations [3, 17]. Finally, deploying compression in an actual scientific workflow requires users to understand codec-specific parameters, manually compare alternatives, integrate them with HDF5, and preserve sufficient metadata for subsequent decompression. These requirements impose a substantial configuration and integration burden on beamline users.

To address these challenges, we present PhotonZip, a lifecycle-aware compression system for HDF5-based synchrotron data workflows. Rather than relying on one codec for every data product, PhotonZip maps workflow intent to complementary compression paths: lossy compression for online processing when information loss is acceptable and lossless compression for persistent archival. PhotonZip tests candidate modes through a common HDF5 procedure and uses hard eligibility constraints followed by a single-objective decision rule to select a measured configuration. Codec-specific filter properties and payload headers preserve the parameters required for decoding, allowing applications to retain standard HDF5 read and write calls when the corresponding plugin is installed. We further characterize the complete I/O path using file-per-rank MPI execution and backend threading rather than treating compression as an isolated kernel.

In summary, this paper makes the following contributions:

  • Transparent compression for HDF5 workflows. We integrate complementary lossless and lossy backends as HDF5 filters whose identifiers, parameters, and payload headers support standard HDF5 reads and writes when the required plugins are available.

  • Goal-directed compression configuration. We develop a lightweight configuration mechanism that tests candidate modes through a common HDF5 procedure, filters the measured candidates by fidelity and data compatibility, and selects the best configuration for the user's ratio or throughput objective.

  • Modular and extensible implementation. We provide modular interfaces that separate compression backends, preprocessing strategies, configuration policies, and HDF5 integration, allowing additional compression algorithms to be incorporated without redesigning the end-to-end data path.

  • End-to-end workflow characterization. We evaluate PhotonZip using beamline-derived datasets and a file-per-rank MPI benchmark, quantifying compression effectiveness and complete HDF5 I/O performance across process-thread configurations.

Figure

Fig. 1. PhotonZip's integration point in a synchrotron data workflow.