eACGM:面向机器学习系统的非侵入式性能追踪与异常检测
eACGM: Non-instrumented Performance Tracing and Anomaly Detection towards Machine Learning Systems
AI总结:
本文提出基于 eBPF 的全栈监控框架 eACGM,无需插桩即可采集 GPU、网络及 CUDA/PyTorch 等软硬件性能数据,并利用高斯混合模型进行异常检测,在分布式训练中验证了其低开销、稳定的故障诊断能力。
摘要:
我们提出 eACGM,一个基于 eBPF 的全栈 AI/ML 系统监控框架。eACGM 从关键硬件组件(包括 GPU 和网络通信层)以及关键软件栈(如 CUDA、Python 和 PyTorch)实时采集性能数据,全程无需任何代码插桩或修改。此外,它利用 libnvml 获取进程级 GPU 资源使用信息。通过对采集到的多维性能指标应用高斯混合模型(GMM)进行统计建模和聚类分析,eACGM 能够有效识别复杂故障模式,例如延迟异常、硬件故障和通信低效,从而快速诊断系统瓶颈和异常行为。为评估 eACGM 的有效性和实用性,我们在多节点分布式训练场景中开展了大量实证研究和案例分析。结果表明,eACGM 在保持非侵入式和低开销特性的同时,成功捕获了模型训练和推理过程中的关键性能异常。其稳定的异常检测性能和全面的监控能力验证了它在真实生产环境中的适用性和可扩展性,为大规模 AI/ML 系统的性能优化和故障诊断提供了有力支持。
英文摘要:
We present eACGM, a full-stack AI/ML system monitoring framework based on eBPF. eACGM collects real-time performance data from key hardware components, including the GPU and network communication layer, as well as from key software stacks such as CUDA, Python, and PyTorch, all without requiring any code instrumentation or modifications. Additionally, it leverages libnvml to gather process-level GPU resource usage information. By applying a Gaussian Mixture Model (GMM) to the collected multidimensional performance metrics for statistical modeling and clustering analysis, eACGM effectively identifies complex failure modes, such as latency anomalies, hardware failures, and communication inefficiencies, enabling rapid diagnosis of system bottlenecks and abnormal behaviors. To evaluate eACGM's effectiveness and practicality, we conducted extensive empirical studies and case analyses in multi-node distributed training scenarios. The results demonstrate that eACGM, while maintaining a non-intrusive and low-overhead profile, successfully captures critical performance anomalies during model training and inference. Its stable anomaly detection performance and comprehensive monitoring capabilities validate its applicability and scalability in real-world production environments, providing strong support for performance optimization and fault diagnosis in large-scale AI/ML systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。