Introduction
In the field of High-Performance Computing (HPC), "load imbalance" is a persistent performance bottleneck. It occurs when parallel processes are assigned unequal workloads, leaving expensive CPU resources idle while they wait for the slowest tasks to complete. Predicting this behavior is notoriously difficult; existing tools are often either too coarse-grained to capture granular process-level details or are "black-box" models that provide predictions without insight into the underlying hardware-software interactions.
Researchers have addressed this gap by developing a "white-box" methodology to build fine-grained, per-process analytical models. This approach breaks down simulation code into symbolic functions calibrated with empirical data, allowing for accurate performance predictions even in complex, load-imbalanced scenarios.
Methodology
The proposed methodology follows a structured four-step process to create a per-process analytical performance model:
- Identify Relevant Sections: Pinpoint specific code functions (e.g., fluid computation vs. particle movement) and parameters (e.g., cell counts) that significantly impact performance.
- Build a Symbolic Model: Create a high-level mathematical expression—a "white-box" formula—that describes how these components contribute to the total execution time.
- Calibrate: Conduct small-scale, balanced experiments on specific hardware to determine the coefficients for the symbolic terms.
- Validate: Test the model against unseen, complex scenarios, specifically those with intentional load imbalances, to ensure predictive accuracy.
This approach offers significant portability. When moving a simulation to a new HPC system, the symbolic formula remains the same; only the calibration step needs to be repeated to account for the new hardware's characteristics.
Experimental Setup
The methodology was validated using HemoCell, a high-performance framework for simulating dense cellular blood flow. The study utilized performance data from two distinct HPC systems:
- Snellius (SURF, Netherlands): Featuring AMD Rome 7H12 CPUs (128 cores per node).
- DAS6 (ASCI, Netherlands): Featuring AMD EPYC-2 7402P CPUs (24 cores per node).
The researchers simulated various blood subdomains with hematocrit levels (volume fraction of red blood cells) ranging from 0% to 18% to generate the empirical data required for calibration and testing.
Key Results and Insights
The model demonstrated high accuracy across several validation scenarios. For balanced workloads, it achieved an average error of just 3.6% (with a maximum error under 13%). In scenarios with significant load imbalance—where some processes were assigned three times more work than others—the model maintained an average error of 10.26%.
A significant insight emerged regarding communication overhead. Initial model iterations showed errors exceeding 24% in certain imbalanced configurations because they assumed every process had a full set of neighbors. By introducing a "Communication Ratio" ($CR_x$) to account for processes on the edges of the simulation domain, the researchers reduced the peak prediction error to 16.19%. This highlights a key benefit of "white-box" models: when they fail, the underlying logic is transparent, allowing researchers to identify and fix the source of the error.
Conclusion and Future Work
By modeling performance at the process level using "natural units" of the simulation—such as the number of fluid nodes and red blood cells—this methodology provides an intuitive and accurate tool for HPC scientists.
While the current approach requires manual effort for initial code instrumentation, future work will explore automating this process through statistical methods. Additionally, the researchers plan to extend the model to multi-node computations and dynamic scenarios where workloads shift between processes in real-time, such as during the formation of a blood clot.
Summary updated