PerfTracker: Online Performance Troubleshooting for Large-scale Model Training in Production

Yu Guan, Zhiyu Yin, Haoyu Chen, Sheng Cheng, Chaojie Yang, Kun Qian, Tianyin Xu, Yang Zhang, Hanyu Zhao, Yong Li, Wei Lin, Dennis Cai, Ennan ZhaiarXiv 2025 · DOI

Abstract

Training massive AI models involves a delicate coordination between thousands of GPUs, complex software stacks, and high-speed networking. When performance degrades, identifying the root cause is notoriously difficult due to the scale and complexity of the environment. This paper introduces PerfTracker, the first online performance troubleshooting system designed for large-scale model training (LMT) that provides both fine-grained profiling and cluster-wide coverage. By summarizing complex runtime behaviors into concise statistical "patterns," PerfTracker pinpoints root causes across clusters of up to 100,000 GPUs with minimal overhead and a 97.5% success rate.

Introduction

The training of Large-scale Model Training (LMT) workloads is a cornerstone of modern AI, yet it remains fraught with performance instabilities. These issues range from hardware failures to subtle application-level bugs that only emerge at scale. Traditional monitoring tools often fail to provide the necessary depth, while deep profiling tools are too resource-intensive for production use.

Distribution of performance issues and diagnosis requirements in production environments.

As shown in Figure 1, performance issues in production are split almost equally between hardware (44.4%) and application-level (48.2%) problems. Notably, a staggering 63% of these issues currently require tedious offline experiments for diagnosis, highlighting the need for a more efficient online solution.

The Troubleshooting Dilemma

Existing performance tools force a difficult trade-off:

  1. Online Monitors: Lightweight but "coarse-grained," identifying symptoms (e.g., low GPU utilization) without pinpointing specific code or network links.
  2. Offline Profilers: Fine-grained but data-intensive, generating upwards of 100 MB/s per worker. At the scale of 10,000 GPUs, this volume is untenable for production.

PerfTracker addresses this by enabling fine-grained visibility without the prohibitive data overhead, specifically targeting issues that manifest only at scale.

Methodology: Differential Observability

PerfTracker utilizes "differential observability," focusing on the statistical differences between "healthy" and "sick" workers rather than analyzing every raw event.

The multi-layered architecture of LMT monitored by PerfTracker, spanning from user code to inter-host networking.

The system monitors the entire stack (Figure 2) through several key components:

  • On-Demand Profiling: Monitors iteration time via standard training function wrappers, triggering high-precision profiling only upon detecting significant slowdowns.
  • Runtime Behavior Patterns: Compresses gigabytes of raw trace data into 30KB summaries. Each function is represented as a 3D vector capturing duration ($\beta$), mean resource utilization ($\mu$), and stability ($\sigma$).
  • Critical Path Analysis: Focuses exclusively on bottlenecks that impact training throughput, ignoring background functions that do not block the GPU.
  • Localization Algorithm: A centralized controller aggregates patterns and uses statistical distance metrics to identify outliers across the cluster.

Deployment and Key Results

PerfTracker has been deployed on Alibaba Cloud for over 1.5 years, monitoring a fleet of approximately 100,000 GPUs. It has successfully diagnosed 97.5% of complex performance incidents (78 out of 80) that were missed by existing tools.

Key performance metrics include:

  • Scalability: Identifies abnormal executions in a 3,400-GPU cluster within 3 minutes.
  • Low Overhead: Routine monitoring introduces zero overhead; triggered profiling causes only a brief ~20s pause.
  • Efficiency: Data compression by five orders of magnitude allows a single CPU core to analyze a million-GPU cluster in 7 minutes.
  • Impact: Real-world fixes based on PerfTracker's insights have yielded throughput improvements of 20% to 100%.

Conclusion

PerfTracker demonstrates that statistical symmetry in large-scale training can be exploited to achieve deep visibility with minimal overhead. By transforming raw traces into compact behavioral patterns, it bridges the gap between coarse online monitoring and heavy offline profiling, enabling autonomous performance tuning in the world's largest AI clusters.

Summary updated

BibTeX
@misc{guan2025perftracker,
  author = {Yu Guan and Zhiyu Yin and Haoyu Chen and Sheng Cheng and Chaojie Yang and Kun Qian and Tianyin Xu and Yang Zhang and Hanyu Zhao and Yong Li and Wei Lin and Dennis Cai and Ennan Zhai},
  title = {{PerfTracker: Online Performance Troubleshooting for Large-scale Model Training in Production}},
  year = {2025},
  eprint = {2506.08528},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.08528},
}
Figure