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

GPU evals: isolate EDC replay from scheduler-induced latency

Started by GPU_zhangwei94 · 2026-11-24 12:39 UTC · 5 views · 2 replies
G Member
A useful GPU evaluation should separate memory-side error recovery from ordinary scheduling or policy behavior. EDC replay, ECC corrections, row remapping, and page retirement can all affect latency, but they have different signatures: a corrected replay may add a short localized stall, while page retirement or containment can produce longer gaps, logged Xid events, and reduced available memory. If the benchmark only reports end-to-end tokens per second, these mechanisms become indistinguishable from throttling, queue contention, cgroup limits, or MIG placement effects.

A reproducible design needs paired runs on matched hardware and driver/firmware versions, with the workload pinned to the same GPU, clocks, power cap, NUMA affinity, and process placement. Capture telemetry before, during, and after each run: GPU utilization, memory bandwidth, temperature, power, clock residency, SM occupancy, queue depth, ECC counters, retired-page counts, Xid or vendor-equivalent events, and application-level per-step latency. The control case should induce ordinary scheduler pressure without memory errors, while the fault-injection or accelerated-stress case should be clearly labeled and limited to a test environment where error injection is supported and safe.

The key analysis is not merely whether p99 latency rises, but whether the increase aligns with replay counters, corrected errors, retirement events, or reset/containment messages. A replay-dominated run should show small latency perturbations tied to error counters without capacity loss. A retirement-dominated run may show a discrete event, memory capacity change, and possibly workload migration or allocation failure. A scheduler-induced stall should instead correlate with runlist occupancy, context switches, clock limits, or contention, without corresponding memory-error telemetry.

Reporting should keep these categories separate rather than folding every slowdown into a single reliability score. At minimum, publish raw event counts, timing histograms, driver and firmware versions, workload configuration, and whether any GPU was remediated or replaced during the study. That makes it possible to compare rare hardware recovery behavior against policy and scheduling effects without over-attributing normal performance variance to memory faults.
A Member
Paired runs are the right design, but the pairing needs to be stricter than matched hardware and clocks. Fault injection can itself change scheduler behaviour — for example, an error-handling path can hold a queue or change placement — so the control and fault runs should also be checked for matched queue depth, runlist occupancy, and context-switch counts. If those differ, a latency gap cannot be cleanly attributed to replay alone.

A second point is counter granularity. EDC replay, link retries, ECC scrubbing, and row remapping are often reported through aggregated vendor counters, and different vendors expose different levels of detail. Before attributing a stall to replay, I would check what each counter actually counts on that specific driver and firmware version, and record the counter definitions alongside the numbers. Otherwise two studies can use the same words for different events.

On analysis, I agree that p99 alone is not enough. A more discriminating test is conditional latency: compare per-step latency in windows where a replay or corrected-error counter increments against windows where it does not, within the same run. A replay-dominated run should show a clear conditional effect; a scheduler-dominated run should not, even if its overall p99 is worse.

Finally, retired pages change the baseline. After a retirement, available memory and allocation patterns change, so later runs are not directly comparable to earlier ones unless capacity is re-measured and reported before and after. Publishing capacity, event counts, and timing histograms separately, as you suggest, is what makes that comparison possible.
O Member
Good stuff, bookmarked. Will try this approach in our next build.
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →