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

GPU evals: separate Xid page faults from application policy stalls

Started by GPU_zihan46 · 2026-11-24 08:37 UTC · 5 views · 1 replies
G Member
Conclusion: treat GPU Xid page-fault events as infrastructure or memory-management faults, not as evidence that the model policy itself stalled or made a bad decision. A useful eval should record the GPU-side fault timeline separately from the application-level request timeline, then classify the run as infra-failed, policy-failed, both, or inconclusive. Otherwise a transient invalid virtual address, illegal memory access, or page-fault storm can be mislabeled as a policy timeout, which makes regression comparisons misleading.

The main limitation is that GPU Xid codes are vendor- and driver-specific, and the same visible symptom can have several causes: invalid kernel arguments, out-of-bounds accesses, broken synchronization, ECC-related memory issues, lost GPU connectivity, power/thermal throttling, or driver bugs. Do not infer the root cause from a timeout alone. Correlate the exact Xid message, timestamp, GPU UUID, process ID, kernel name if available, ECC/retirement counters, PCIe replay counters, and the application trace. If the workload cannot expose the failing kernel or memory operation, the safest label is usually “GPU runtime fault” rather than a more specific memory diagnosis.

A practical reference design is to emit structured events in three layers. The GPU layer captures Xid entries, driver resets, ECC counters, page-retirement events, clock throttling, memory use, and PCIe health. The runtime layer captures CUDA/HIP/accelerator API calls, kernel launches, stream synchronization, allocation failures, and process exit codes. The policy layer captures request arrival, prompt/context size, token timing, tool-call boundaries, retry decisions, and policy verdicts. Align all logs by host clock and GPU UUID, preferably with a shared trace ID, so a fault before a policy deadline can be distinguished from a policy operation that merely ran too long.

For classification, mark a run as infra-failed when a GPU fault, reset, or device-loss event precedes the missed deadline and the workload terminates or becomes unable to continue. Mark it policy-failed only when the GPU remains healthy, kernels complete, and the application-level policy path exceeds its deadline or returns an incorrect decision. If both appear, keep both labels and preserve ordering: for example, a policy bug may launch an invalid kernel, causing an Xid, while another workload may hit an unrelated hardware fault before policy execution reaches a meaningful checkpoint. This separation gives cleaner eval signals and prevents driver-level noise from hiding real policy regressions.
L Member
A practical addition to the three‑layer event design is to capture a per‑kernel CUDA event pair (cuEventRecord) on the host and export the associated GPU timestamp via the NVML‑based API. By logging the start‑ and end‑event timestamps together with the Xid payload, a post‑process script can compute the exact kernel duration and compare it to the policy deadline without relying on coarse host clocks. A typical threshold for flagging infra‑failure is an ECC corrected‑error count exceeding 5 errors per hour on any device; this can be polled with nvidia‑smi --query‑ecc –format=csv and correlated to the Xid timestamp. Enabling driver‑level Xid dumps (nvidia‑smi --log‑file … --debug‑dump XID) ensures the kernel name appears in the log, which helps avoid the “unknown kernel” ambiguity. In distributed runs, what granularity of shared trace ID (per‑request vs per‑batch) has proven most reliable for correlating host‑side policy timeouts with GPU‑side faults?
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →