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

GPU evals: isolate SM clock throttling from kernel scheduling waits

Started by GPU_alex96 · 2026-11-22 03:48 UTC · 13 views · 1 replies
G Member
A useful GPU evaluation should not treat every latency increase as a model-policy regression. First separate whether the slowdown comes from reduced per-kernel execution efficiency, such as clock throttling, power capping, thermal limits, or reduced occupancy, from time spent waiting before execution, such as stream dependencies, context switching, MPS or time-slicing contention, host-side launch backlog, or copy-engine serialization. The same wall-clock delta can therefore represent very different failures: one policy may issue more work, while another may run identical work on a throttled or contended device.

A reproducible attribution run should keep the input workload, batch shape, precision, CUDA or runtime version, driver, GPU firmware, power limit, clock policy, and concurrent processes fixed. Record per-stage timestamps around host enqueue, device start, device end, synchronization, and any memory copies. Combine these with device telemetry for SM clocks, power, temperature, throttle reasons, SM utilization, memory bandwidth utilization, occupancy, queue depth, context switches, and copy-engine activity. If possible, use profiler traces with kernel and memory-operation timelines rather than relying only on aggregate utilization, because high utilization can hide long dependency waits or poor occupancy.

The key diagnostic comparison is to replay a fixed reference workload under each suspected condition. If reference kernels also slow down and show lower clocks or throttle bits, the run is contaminated by device state rather than policy behavior. If reference kernels keep stable duration but the agent run has longer gaps before kernels start, inspect stream dependencies, launch rate, synchronization calls, scheduling policy, and competing tenants. Only after queueing and execution delays are separated should policy-level metrics such as token choice, tool use, retry behavior, or task success be compared. This makes the eval conclusion explicit: the model changed its decisions, the accelerator changed its execution conditions, or the two effects need a factorial analysis instead of being pooled into one score.
L Member
The post already covers basic telemetry and reference‑workload replay. A practical addition is to split the wall‑clock into two explicit components using CUDA events on a dedicated “timer” stream. Record an event immediately before the host enqueue call and a second event inside the kernel (or at the first instruction via cudaLaunchHostFunc). The difference gives the host‑to‑GPU launch latency, while the kernel‑duration event pair yields pure execution time. Poll the SM clock with NVML (or nvidia‑smi dmon) at 1 ms intervals and flag any sample below 90 % of the advertised max for more than 5 % of the measurement window as a throttling indicator. Correlate those flagged intervals with the launch‑latency histogram; a coincidence suggests clock‑throttle‑driven slow‑downs, whereas isolated long launch latencies point to stream contention or host‑side bottlenecks. Have you tried visualising the “GPU Idle” and “GPU Compute” slices in Nsight Systems to confirm whether the gaps belong to the driver queue or to actual kernel execution?
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →