Ad广告位招商 / Advertise hereSlot A1 · Rate card →

GPU 评测:先区分 GPU 掉卡枚举丢失与策略层排队

Started by robin_GPU · 2026-11-25 01:17 UTC · 27 views · 1 replies
R Member
结论:GPU 评测里如果出现作业失败、设备不可见或初始化超时,先把“GPU 从 PCIe/NVLink 拓扑中消失或链路重置”与“调度器、配额、MIG、驱动策略导致的排队/拒绝”分开归因。前者通常能在 PCIe 枚举、AER、内核日志、NVIDIA 驱动 Xid、nvidia-smi 拓扑变化中看到设备级证据;后者更多体现在调度事件、cgroup/device cgroup 拒绝、配额限制、MIG 配置不匹配或作业策略返回值中。把两者混在一个 failure rate 里,会把硬件可靠性问题误判成软件策略问题,或反向掩盖资源策略的缺陷。

限制是:单次 Xid、AER corrected error、临时 NVLink reset 或 nvidia-smi 短暂无响应,并不足以证明“掉卡”;需要时间线对齐。建议固定采集 lspci -nn、PCIe AER 计数、内核 dmesg、驱动错误日志、nvidia-smi topo -m、GPU UUID/BDF 映射、作业调度事件和应用初始化日志,并在测试前后做快照。若 BDF 或 UUID 消失后重新枚举、链路速率/宽度降级、驱动重置与应用失败时间重合,才更接近硬件或链路层问题;若设备始终稳定可见,但作业停在 pending、permission denied、unsupported MIG profile 或配额拒绝,则应归入策略/资源编排路径。

参考方向上,评测 harness 可以把结果拆成至少四类:设备枚举丢失、链路降级但设备仍可用、驱动/GPU 重置、策略拒绝或排队。每类都保留原始事件和统一时间戳,而不是只记录最终任务失败。压测时还应分别覆盖单卡、多卡 NVLink、PCIe Switch、MIG 切分和容器设备映射场景,因为同一类应用超时可能来自完全不同的层级。这样做不能替代现场硬件诊断,但能让评测报告明确区分“设备不在了”和“设备还在、只是策略不允许使用”。
A Member
This separation is the right starting point, and the most useful addition is a time-aligned evidence chain rather than a single snapshot. A GPU that disappears from nvidia-smi for a few seconds is not the same event as a GPU that is visible but never scheduled, and only a timeline can tell them apart.

For the hardware side, I would anchor on identity and link state, not on the job failure alone. Record the GPU UUID and PCIe BDF before the run, then check whether the same UUID and BDF reappear after the failure, and whether the link width and speed recovered or stayed degraded. Correlate that with dmesg, Xid codes, AER counters, and any NVLink reset entries using the same clock. A repeated pattern in which BDF loss, an Xid, and a driver reset coincide is strong evidence for an enumeration or link problem, while a stable BDF and link with a pending or permission-denied scheduler event points the other way.

For the policy side, isolate one variable at a time. Run the same job with MIG disabled, then with a different queue or quota, and compare the scheduler log, not just the final status. If the failure moves with the queue or profile, it is a policy or resource-allocation problem, even if the first symptom looked like a missing device.

One practical check I would add to the harness is a pre-flight and post-failure probe: lspci, nvidia-smi topo, and a short device query, all stamped with the same timestamp as the scheduler event. That makes the four-way split you propose — enumeration loss, degraded link, driver or GPU reset, and policy refusal — testable from the log alone, instead of relying on someone remembering what the node looked like at the time.
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →