kali20gakki/msAgent / skills/host-cpu/msagent-perf-cpu-config-audit
msagent-perf-cpu-config-audit
Verified昇腾训练/推理主机的环境配置体检:对 NUMA 亲和、大页/THP、governor 频率、cgroup 限流、IRQ smp_affinity、环境变量等 8 个配置域做单点快照审计,输出分级 Finding 与可回滚修改建议,不改动运行状态。触发:检查环境、配置体检、新机器开箱、换容器、 大页没配、governor 不对、cgroup 限流、中断亲和配置、NUMA 配置检查、绑核没生效。 不用于:训练变慢/step 抖动/利用率低的根因归因(→ perf-cpu-perf-triage); 产出绑核方案(→ perf-cpu-bind-tune);运行期实际落核观测(→ perf-cpu-tracing)。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.2 KB |
| references/check-items.md | markdown | 6.5 KB |
| references/process-roles.md | markdown | 1.7 KB |
| references/profiles/ascend910.json | config | 1.6 KB |
| references/profiles/kunpeng920-910b.json | config | 507 B |
| references/rules-locality.md | markdown | 2.3 KB |
| resources/report_template.html | other | 11.5 KB |
| scripts/audit.py | script | 19.6 KB |
| scripts/baseline.py | script | 4.4 KB |
| scripts/checker.py | script | 39.6 KB |
| scripts/classify.py | script | 2.7 KB |
| scripts/discover.py | script | 6.6 KB |
| scripts/npu_query.py | script | 15.0 KB |
| scripts/preflight.py | script | 3.3 KB |
| scripts/procfs.py | script | 9.0 KB |
| scripts/report.py | script | 6.4 KB |
| scripts/rules_locality.py | script | 8.7 KB |
| scripts/static_collect.py | script | 13.8 KB |
| scripts/topology.py | script | 9.4 KB |
| scripts/workspace.py | script | 2.1 KB |
references/profiles/ascend910.json
View on GitHub{
"match": {"cpu": "", "npu": "Ascend910"},
"notes": "Ascend 910 家族通用 profile(910B 有专属 profile 时按最长匹配优先路由到更精确的)。覆盖 A2/A3/A5 三个拓扑类检查项的机型输入:A2_remote_distance 为 8 node 机型的跨组距离线显式声明;snc_expected 待机型标定后填入(当前 null=不校验,仅报 FACT);npu_numa_override 仅 PCIe/Box8 形态可标定(当前 null)——UB(灵衢)/HCCS_SW 交换互联机型 NPU 与所有 CPU 等距,本来就没有 NPU→NUMA 亲和,A5 输出「无(UB/等距)」属合法形态,无需标定,绑核按 global_slice 均衡分配。die_topo 为 A3/910C 双 die 实测事实:8 封装 × 2 die = 16 逻辑设备(davinci0-15),Phy-ID (0,1)(2,3)...(14,15) 成对经 SIO 片内互联,跨封装 HCCS_SW/UB;绑核 CPU 域按封装划分(同封装两 die 的 Host 线程放同一 NUMA node,不可跨 node 拆分)。",
"thresholds": {
"A2_remote_distance": 21
},
"snc_expected": null,
"npu_numa_override": null,
"npu_numa_override_calibratable": "仅 pcie_or_box8 形态可标定;fabric 为 ub / hccs_sw 时不存在亲和关系,标定无意义",
"npu_numa_override_example": {"0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7},
"die_topo": {
"dies_per_package": 2,
"in_package_link": "SIO",
"cross_package_link": "HCCS_SW",
"binding_unit": "package",
"note": "A3 实测;绑定单位=封装(同封装 die 对不可跨 node 拆分),die 分组与 Logic ID 映射由采集层从 npu-smi info -m 获取"
}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |