Abstract
Optimizing parallel programs is a complex task due to the massive volume of performance data generated across multiple execution contexts. Traditional graphical user interface (GUI) tools often fail to scale, requiring manual effort to identify bottlenecks across thousands of nodes or multiple runs. This paper presents Chopper, a Python-based API built on the Hatchet library that automates parallel performance analysis. Chopper introduces high-level programmatic abstractions for identifying load imbalances, discovering hot paths, and unifying disparate execution profiles. Our evaluation across several high-performance computing (HPC) benchmarks demonstrates that Chopper scales linearly with data size and enables rapid identification of real-world performance bottlenecks.
Introduction
Parallel performance analysis typically relies on exploring Calling Context Trees (CCTs)—hierarchical representations of function calls and their associated costs. However, as programs scale to thousands of processors, the resulting CCTs become too large for manual inspection. Developers face a "scaling problem" where identifying patterns across millions of nodes or comparing dozens of different execution runs (e.g., scaling from 64 to 1024 processors) becomes nearly impossible using traditional GUI-based tools. There is a critical need for programmatic tools that bridge the gap between low-level data collection and high-level performance insights.
The Chopper Framework
Chopper extends the Hatchet library, which utilizes a GraphFrame structure to link call hierarchies to pandas DataFrames. Chopper adds a high-level analysis layer designed to automate common performance engineering tasks.
Single-Run Analysis
Chopper provides specialized algorithms for analyzing individual program executions:
- Load Imbalance Detection: The
load_imbalancefunction automatically calculates statistical spreads (e.g., percentiles and histograms) across MPI ranks for every node in the call tree. This allows developers to pinpoint specific functions where a few "stray" ranks are delaying the entire simulation. - Hot Path Discovery: The
hot_pathtool traverses the CCT to identify the most expensive sequences of function calls, focusing optimization efforts where they will have the greatest impact.
Multi-Run and Correlation Analysis
Chopper’s most significant innovation is its ability to handle multi-run datasets. The unify_multiple_graphframes function merges call trees from different executions into a single unified topology. This enables "differential profiling," allowing for direct, per-node comparisons of speedup and efficiency across varying processor counts or input parameters. Additionally, Chopper includes tools for correlation analysis to determine if specific hardware metrics (such as cache misses) are statistically linked to execution time at the function level.
Evaluation and Results
The authors evaluated Chopper using a suite of HPC benchmarks, including LULESH, Quicksilver, AMG, Laghos, and the real-world CFD application Tortuga.
Scalability
Chopper demonstrates linear scalability with respect to data size. In tests using a massive MILC profile containing 121 million rows, Chopper calculated load imbalances in under eight minutes—a task that would be practically impossible to perform manually.
Real-World Impact
In a case study involving the Tortuga application, Chopper identified poor scaling in the writeSingleField function. Detailed analysis revealed a blocking MPI I/O call as the culprit. By replacing this with a non-blocking version (MPI_File_iwrite), the execution time for that function on 1024 processes was reduced from 7.03s to 2.08s.
Performance Variability
By analyzing six months of historical data for AMG and Laghos, Chopper helped confirm that performance "jitter" was primarily attributable to communication libraries and network congestion rather than application-level code changes.
Conclusion and Future Work
Chopper shifts parallel performance analysis from manual GUI exploration to an automated, programmatic workflow. By integrating analysis directly into Python-based environments like Jupyter notebooks or CI/CD pipelines, it provides developers with the agility needed to optimize modern HPC applications.
Future work will focus on expanding Chopper's capabilities to include predictive modeling for forecasting performance at scale, GPU support for kernel and memory transfer analysis, and enhanced visualization features within the API.
Summary updated