To Stream or Not to Stream: Towards A Quantitative Model for Remote HPC Processing Decisions

Flavio Castro, Weijian Zheng, Joaquin Chung, Ian T. Foster, Raj KettimuthuWorkshops @ SC 2025 · DOI

Abstract: Modern scientific instruments generate data at rates that increasingly exceed local compute capabilities and, when paired with the staging and I/O overheads of file-based transfers, also render file-based use of remote HPC resources impractical for time-sensitive analysis and experimental steering. Real-time streaming frameworks promise to reduce latency and improve system efficiency, but lack a principled way to assess their feasibility. In this work, we introduce a quantitative framework and an accompanying Streaming Speed Score to evaluate whether remote high-performance computing (HPC) resources can provide timely data processing compared to local alternatives. Our model incorporates key parameters including data generation rate, transfer efficiency, remote processing power, and file input/output overhead to compute total processing completion time and identify operational regimes where streaming is beneficial. We motivate our methodology with use cases from facilities such as APS, FRIB, LCLS-II, and the LHC, and validate our approach through an illustrative case study based on LCLS-II data. Our measurements show that streaming can achieve up to 97% lower end-to-end completion time than file-based methods under high data rates, while worst-case congestion can increase transfer times by over an order of magnitude, underscoring the importance of tail latency in streaming feasibility decisions.

Introduction

Modern scientific "megastructures," such as the Large Hadron Collider (LHC) and the Advanced Photon Source (APS), generate data at staggering rates—up to 40 TB/s in some instances. Local computing resources at these facilities often lack the capacity to process this volume of data in real-time. Consequently, researchers are increasingly turning to remote High-Performance Computing (HPC) centers for analysis.

However, the traditional file-based data movement paradigm—where data is saved to a local file system, transferred over a Wide Area Network (WAN), and then read from a remote disk—introduces significant latency. This overhead often renders remote HPC impractical for "closed-loop" experiments that require immediate feedback for instrument steering. While memory-to-memory streaming offers a faster alternative, the community has lacked a principled mathematical framework to determine when a specific network and compute configuration can reliably support real-time requirements.

A Quantitative Framework for Processing Decisions

To address this, we propose a mathematical model for Total Processing Completion Time ($T_{pct}$). This model moves beyond simple bandwidth calculations by incorporating several critical real-world parameters:

  • Transfer Efficiency ($\alpha$): The ratio of the effective transfer rate to the available bandwidth.
  • Processing Ratio ($r$): The relative speed of remote compute resources compared to local alternatives.
  • I/O Overhead ($\theta$): A coefficient capturing the performance "tax" incurred when moving data through file systems.

We also introduce the Streaming Speed Score (SSS), defined as the ratio of the worst-case observed transfer time to the theoretical minimum. This metric allows scientists to quantify the reliability of a network path for time-sensitive streaming.

Architectural Comparison

The primary advantage of streaming over file-based methods lies in the ability to overlap data transmission with data generation. In a file-based workflow, the system must wait for a file to be fully written and closed before the first byte can be transmitted. In contrast, streaming allows for continuous data flow from the instrument to remote memory.

Figure 1: Memory-to-memory data streaming architecture from a scientific instrument to a remote HPC cluster via Gateway Nodes (GN) and a Science DMZ.

Experimental Validation and Results

We validated our model using the FABRIC testbed, a national-scale programmable network, to simulate various levels of network congestion. Our analysis focused on "Science Drivers" from major facilities, including the LCLS-II (targeting 1 Tbps) and the FRIB (targeting 100 Gbps).

Our results demonstrate that in high-data-rate scenarios, streaming can achieve up to a 97% reduction in end-to-end completion time compared to file-based methods. However, we found that network performance is highly non-linear under heavy load.

Figure 2: Model comparison of maximum transfer times vs. observed network load, showing the non-linear spike in latency as network utilization exceeds 90%.

As shown in Figure 2, when network utilization exceeds 90%, transfer times grow exponentially due to TCP congestion control and queuing effects. A transfer that theoretically takes 0.16 seconds can spike to over 5 seconds. This "tail latency" is the ultimate dealbreaker for experimental steering; if 99% of transfers are fast but the final 1% are delayed, the entire feedback loop fails.

Key Insights and Operational Regimes

Our model identifies three distinct operational regimes based on network conditions:

  1. Low Congestion: Ideal for sub-second "Tier 1" real-time analysis and instrument steering.
  2. Moderate Congestion: Results in 2–3x delays, suitable for "near real-time" (Tier 2) monitoring.
  3. Severe Congestion: Transfer times spike by an order of magnitude, making remote HPC ineffective for time-sensitive tasks.

Furthermore, file-based workflows suffer a significant "file count penalty." As the number of small files increases, metadata overhead and aggregation waits cause severe performance degradation—a bottleneck that streaming completely bypasses.

Conclusion and Future Work

Streaming is a transformative technology for remote scientific analysis, but its feasibility is dictated by worst-case network latency rather than average throughput. Our quantitative framework provides the first principled method for scientists to evaluate these trade-offs. Future work will expand this model to account for concurrent data streams and more complex queuing effects in multi-tenant HPC environments.

Summary updated

BibTeX
@inproceedings{castro2025stream,
  author = {Flavio Castro and Weijian Zheng and Joaquin Chung and Ian T. Foster and Raj Kettimuthu},
  title = {{To Stream or Not to Stream: Towards A Quantitative Model for Remote HPC Processing Decisions}},
  booktitle = {Workshops @ SC},
  year = {2025},
  doi = {10.1145/3731599.3767455},
}
Figure