profiling-analysis-communication
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "profiling-analysis-communication" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5f9643d48cc12d4b0e6e2fdfc0b97ec94bc0696f0511409deef0ebb4864030b5. Verify the upstream source and version against https://github.com/ascend-ai-coding/awesome-ascend-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Communication profiling and analysis: used to analyze communication performance bottlenecks in Ascend NPU systems and detect slow/fast rank issues. Applicable for analyzing communication efficiency, data transfer bottlenecks, or using profiling data to identify slow/fast ranks.
Introduction source: third_party · ascend-ai-coding · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Skill for analyzing communication performance bottlenecks and detecting slow/fast rank issues in Ascend NPU systems. Use this skill whenever you need to analyze communication efficiency, data transfer bottlenecks, or identify slow/fast rank problems using profiling data.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: profiling-analysis-communication
description: Skill for analyzing communication performance bottlenecks and detecting slow/fast rank issues in Ascend NPU systems. Use this skill whenever you need to analyze communication efficiency, data transfer bottlenecks, or identify slow/fast rank problems using profiling data.Profiling 通信瓶颈分析与快慢卡检测 Skill
功能概述
该Skill用于分析系统中的通信瓶颈问题和检测快慢卡现象,当主分析Skill检测到通信耗时占比超过10%时自动触发。支持对集群环境下的通信性能进行深入分析,识别影响性能的关键因素。
该Skill采用条件分支的工作流程:
- 运行一次mstt工具获取各rank的slowAffectCount值
- 基于slowAffectCount最大值进行分支判断:
- 分支1:slowAffectCount最大值 > 20
- 计算Z-score进行统计分析
- 若Z-score > 0.5 → 判定为存在快慢卡现象,引导使用host快慢卡问题skill
- 否则 → 建议检查plog日志
- 分支2:slowAffectCount最大值 ≤ 20
- 转到通信算子异常分析分支进行进一步分析
- 分支1:slowAffectCount最大值 > 20
该Skill包含两个主要的分析功能模块:
- 通信瓶颈分析:从profiling的"communication"泳道提取通信操作数据,分析通信耗时分布和原因
- 快慢卡检测:基于mstt工具和Z-score统计方法检测集群环境下的快慢卡现象
支持的数据格式
- profiling数据文件夹
功能模块说明
1. 通信算子异常分析
处理主分析Skill判定的非快慢卡问题的通信算子异常情况,直接建议用户查看plog日志以进一步分析通信问题。
主要功能:
- 接收主分析Skill的非快慢卡通信异常判定
- 提示用户检查plog日志以分析通信异常
- 提供plog日志检查方法和异常处理建议
- 提供通用的通信性能优化建议
详细文档: 通信算子异常分析
2. 快慢卡检测
分析集群环境下的快慢卡现象,识别影响性能的异常rank,并提供针对性的优化建议。
主要功能:
- 检测集群环境下的快慢卡现象
- 分析快慢卡对整体性能的影响
- 定位导致快慢卡的具体原因
- 基于Z-score统计方法的异常检测
- 提供针对性的优化建议
详细文档: 快慢卡检测
使用方式
1. 由主分析Skill自动调用
该Skill通常由主分析Skill /profiling-analysis-profiling-main 自动触发。当主Skill检测到通信耗时占比超过10%时,会自动调用相应的子技能进行深入分析。
2. 单独使用
根据具体需求,选择使用相应的子技能:
2.1 使用通信瓶颈分析
通信瓶颈分析功能通过主分析Skill自动调用,无需手动执行脚本。
详细说明: 请参考 通信瓶颈分析文档
2.2 使用快慢卡检测
# 检测快慢卡问题
msprof-analyze cluster -d ./profiling_data -m slow_rank -o ./result
详细说明: 请参考 快慢卡检测文档
使用建议
自动分支流程: 该Skill会自动执行以下分析流程,用户无需手动选择功能模块:
- 自动运行:当主分析Skill检测到通信耗时占比超过10%时自动触发
- 一次检测:运行一次mstt工具获取快慢卡次数
- 智能分支:基于slowAffectCount最大值自动选择分析路径
- 结果输出:提供针对性的分析结果和建议
优化分析路径:
- 首先运行通信瓶颈分析获取初步结果
- 根据分析结果中的分支建议采取下一步行动:
- 若判定为快慢卡现象 → 使用host快慢卡问题skill深入分析
- 否则 → 检查plog日志确认是否存在hccl异常
- 结合多维度分析结果制定综合优化策略
依赖要求
- 快慢卡检测依赖:msprof_analyze工具
注意事项
- 确保安装了正确版本的快慢卡检测工具
- 提供完整的profiling数据以获得准确的分析结果
- 对于大规模集群,可能需要更长的分析时间
- 结合系统架构和应用场景综合分析结果
- 当分析结果要求提供plog日志时,请确保收集完整的日志文件
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 针对昇腾NPU系统通信性能瓶颈的专业分析工具
- 具备自动分支判断和Z-score统计方法的快慢卡检测能力
- 提供多路径分析流程,从初步检测到深度优化建议形成闭环
Highlights
- 触发条件明确(通信耗时占比超过10%自动触发)
- 使用场景描述清晰,覆盖通信效率、数据传输瓶颈、快慢rank识别
- 边界定义合理,不易与其他Skill混淆
Areas to improve
-
缺少When to Use章节 Reported severity: Minor
文档结构完整但缺少明确的When to Use使用场景章节
Recommendation: 建议在文档开头增加When to Use章节,明确列出典型使用场景和最佳实践
Highlights
- 文档结构完整,包含功能概述、模块说明、使用方式等必要章节
- 提供了清晰的自动分支流程和端到端使用示例
- frontmatter完整,单文件长度适中
Highlights
- 工具来源明确(msprof_analyze),参数使用正确
- 覆盖了主要异常情况处理(Z-score判断、plog日志检查)
- 具备智能分支判断机制,提供针对性的分析路径
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.