Scenario

A thermal throttle that voided an A/B test

L2WorkingIncident20 minDebuggingML depth

RolesInference EngineeringAI Evaluation and Reliability

Engine
SGLang 0.5.22
Model
Qwen/Qwen3-8B
Hardware
one L4 with 24 GB of memory, in a node whose second L4 ran other tenants

Situation

A team wants to know whether CUDA graphs help their Qwen/Qwen3-8B server on an L4. They run the concurrency sweep with graphs on, then the same sweep with graphs off, one after the other on the same afternoon, three seeds each. The two tables agree within a few percent, and at several points the run with graphs off reads a little faster. They conclude that graphs do nothing on this card and plan to turn them off in production to start faster and save memory.

One teammate mentions that the fans of the node were loud all afternoon, and that the other L4 in the node was running another team's test pods and an FP8 sweep at the same time.

Questions

  1. The two sweeps agree within a few percent. Why is that agreement not evidence that graphs do nothing?
  2. Read the GPU state line. Which slowdown flag is set, what clock does the card run at, and what share of its maximum is that?
  3. What does a slow clock do to a launch-bound step and to a memory-bound step, and why does that hide a graph effect in particular?
  4. Design the protocol that makes an A/B pair comparable on this card. Give the start condition, the repeat rule and what you record.
  5. With that protocol, what did graphs change on this card, and where did the result surprise us?
  6. The same mistake appeared in a speculative decoding test on another engine. What was the clock gap there, and what did the team do with those runs?

Commit to a cause after each listing. Write it down before you read the next one.

Evidence

1/5

the first comparison of CUDA graphs on and off, as the team read it

Compare the two configs row by row, then read the seed ranges in the last column.

evidence/first-ab-table.txt
GPU 0 ran the sweep. GPU 1 ran two other tenants' test pods and an FP8 sweep at the same time.
Qwen/Qwen3-8B, BF16, 512 tokens in, 128 out, median over three seeds; the sweep had no GPU telemetry yet.

config          concurrency  median TPOT ms  output tok/s (min-max over seeds)
default                   1           103.4  10.1 (10.0-14.9)
default                   2            81.2  25.1 (24.6-26.8)
default                   4            67.2  57.4 (55.8-59.3)
default                   8            72.1  93.6 (92.4-94.5)
default                  16            79.0  159.1 (157.4-162.8)
default                  32           113.2  194.2 (193.3-195.7)
default                  64           123.9  199.5 (198.9-200.4)
no-cuda-graph             1           103.4  10.2 (10.2-12.3)
no-cuda-graph             2            73.9  26.6 (25.6-27.3)
no-cuda-graph             4            68.0  55.5 (55.4-58.7)
no-cuda-graph             8            75.4  92.0 (91.2-92.8)
no-cuda-graph            16            75.7  160.8 (157.7-160.8)
no-cuda-graph            32           117.9  193.2 (189.2-194.5)
no-cuda-graph            64           120.8  201.0 (193.3-201.8)

Source: manuals/sglang-101/capture/gpu/incidents/l4-thermal-throttle.txt, lines 6-23

2/5

the state of both GPUs in the node during that sweep

Read the temperature, the current clock against the maximum, and the slowdown flags of the first GPU.

evidence/gpu-state-during-sweep.txt
nvidia-smi on the L4 host during the first load sweep, 2026-10-16 18:10 UTC
index, temperature.gpu, power.draw [W], power.limit [W], clocks.current.sm [MHz], clocks.max.sm [MHz], clocks_event_reasons.active, clocks_event_reasons.sw_thermal_slowdown, clocks_event_reasons.hw_thermal_slowdown, clocks_event_reasons.sw_power_cap, utilization.gpu [%]
0, 87, 58.36 W, 72.00 W, 360 MHz, 2040 MHz, 0x0000000000000020, Active, Not Active, Not Active, 100 %
1, 81, 52.77 W, 72.00 W, 2025 MHz, 2040 MHz, 0x0000000000000004, Not Active, Not Active, Active, 0 %

Source: manuals/sglang-101/capture/gpu/incidents/l4-thermal-throttle.txt, lines 1-4

3/5

the start of each run in the repeated sweep, with the wait before it

All 42 starts were at 72 C, after a wait that differs each time.

evidence/cooled-restarts.txt
[graphs-on-b] c1-s1 start 72 C after 161 s
[graphs-on-b] c2-s1 start 72 C after 262 s
[graphs-on-b] c4-s1 start 72 C after 232 s
[graphs-on-b] c8-s1 start 72 C after 156 s
[graphs-on-b] c16-s1 start 72 C after 166 s
[graphs-on-b] c32-s1 start 72 C after 187 s
[graphs-on-b] c64-s1 start 72 C after 227 s
[graphs-on-b] c1-s2 start 72 C after 267 s
[graphs-on-b] c2-s2 start 72 C after 287 s
[graphs-on-b] c4-s2 start 72 C after 237 s
[graphs-on-b] c8-s2 start 72 C after 161 s
[graphs-on-b] c16-s2 start 72 C after 161 s
[graphs-on-b] c32-s2 start 72 C after 187 s
[graphs-on-b] c64-s2 start 72 C after 182 s
[graphs-on-b] c1-s3 start 72 C after 207 s
[graphs-on-b] c2-s3 start 72 C after 222 s
[graphs-on-b] c4-s3 start 72 C after 182 s
[graphs-on-b] c8-s3 start 72 C after 116 s
[graphs-on-b] c16-s3 start 72 C after 126 s
[graphs-on-b] c32-s3 start 72 C after 136 s
[graphs-on-b] c64-s3 start 72 C after 171 s
[graphs-off-b] c1-s1 start 72 C after 171 s
[graphs-off-b] c2-s1 start 72 C after 237 s
[graphs-off-b] c4-s1 start 72 C after 192 s
[graphs-off-b] c8-s1 start 72 C after 126 s
[graphs-off-b] c16-s1 start 72 C after 136 s
[graphs-off-b] c32-s1 start 72 C after 141 s
[graphs-off-b] c64-s1 start 72 C after 176 s
[graphs-off-b] c1-s2 start 72 C after 217 s
[graphs-off-b] c2-s2 start 72 C after 227 s
[graphs-off-b] c4-s2 start 72 C after 182 s
[graphs-off-b] c8-s2 start 72 C after 116 s
[graphs-off-b] c16-s2 start 72 C after 136 s
[graphs-off-b] c32-s2 start 72 C after 136 s
[graphs-off-b] c64-s2 start 72 C after 166 s
[graphs-off-b] c1-s3 start 72 C after 212 s
[graphs-off-b] c2-s3 start 72 C after 227 s
[graphs-off-b] c4-s3 start 72 C after 182 s
[graphs-off-b] c8-s3 start 72 C after 121 s
[graphs-off-b] c16-s3 start 72 C after 141 s
[graphs-off-b] c32-s3 start 72 C after 166 s
[graphs-off-b] c64-s3 start 72 C after 217 s

Source: manuals/sglang-101/capture/gpu/out-l4/graphs-sameday-starts.log, lines 1-42

4/5

the same comparison on a cooled card, both servers on one day

Read the time per token and the P99 ITL columns, and the note on the last row.

evidence/same-day-pair.txt
| Concurrency | Median TPOT with graphs / without | Output tok/s with / without | P99 ITL with / without |
|---|---|---|---|
| 1 | 60.15 / 60.64 ms | 13.93 / 14.67 | 104 / 104 ms |
| 8 | 66.01 / 66.60 ms | 112.60 / 111.67 | 70 / 68 ms |
| 16 | 70.08 / 70.59 ms | 201.21 / 200.16 | 80 / 73 ms |
| 32 | 95.65 / 94.12 ms | 270.61 / 270.81 | 103 / 87 ms |
| 64, see the note below | 103.39 / 103.12 ms | 264.10 / 265.30 | 109 / 90 ms |

The L4 servers captured decode graphs only up to 48 running requests. At 64 users, batches above 48 ran eager on both servers, so the last row does not measure graphs.

Source: manuals/sglang-101/sections/4-1-forwardmode-and-cuda-graphs.md, lines 123-131

5/5

the same mistake in a speculative decoding test on the other engine

Read the two clocks and what the team did with those runs.

evidence/the-other-engine.txt
Our first EAGLE3 runs had no clock lock. At one user, the run with no speculation ran at 210 MHz, and the EAGLE3 run at about 1,400 MHz. A gap that large hides the effect of speculation, so we set those runs aside.

Source: manuals/vllm-101/sections/4-1-speed-up-decode-with-eagle3.md, lines 110-110

The answer

Show the walkthrough

Start with the first table. The default server and the server without graphs sit within a few percent at every concurrency, and the seed ranges overlap. At one user the ranges are 10.0 to 14.9 and 10.2 to 12.3 tokens per second, which is wide for a point that should be stable. The sweep had no GPU telemetry, so nothing in the table says what the card was doing.

The GPU state line says it. The first GPU, the one that ran the sweep, was at 87 C, its SM clock was 360 MHz against a maximum of 2,040, and the software thermal slowdown flag was active while the card reported 100 percent utilization. The second GPU, at 81 C, held 2,025 MHz while it ran the other tenants' pods. The card under test was running at about a sixth of its clock for a reason that has nothing to do with the server flags.

A CUDA graph removes the launch time of the kernels in one decode step. On this card and model that saving is about half a millisecond of a step of 60 to 70 ms, and a throttled GPU is slow on every step, so the saving disappears in the noise. At the same time the throttle moves with temperature and with the neighbour's load, so two sweeps that ran one after the other did not run at the same speed. Agreement within a few percent on a card whose clock wandered is no evidence at all. The team removed those numbers.

The third listing shows the repaired method. Every run of the repeated sweep started at 72 C or below, and the kit waited for that temperature before each start, from 116 to 287 s. A run whose median SM clock fell under 1,000 MHz was set aside and repeated, up to three times. Both servers ran on one day, one after the other, with the same pool of 24,094 tokens, and a sampler recorded the clock and the temperature every second.

The same-day pair is the result. Up to 16 users the graphs saved 0.5 to 0.7 ms of a step, about 1 percent, 60.15 against 60.64 ms at one user. Throughput was within 1.2 percent from 2 users up. At 16 and 32 users the server without graphs had the lower P99 ITL, 73 against 80 ms and 87 against 103 ms, with no seed overlap, and the manual reports that gap without a mechanism for it. At 64 users batches above 48 ran eager on both servers, so that row does not measure graphs at all.

The last listing is the other engine. Its first speculative decoding runs had no clock lock. At one user the run with no speculation ran at 210 MHz and the run with speculation at about 1,400 MHz. A gap that large hides any effect of the feature, so the team set those runs aside and locked the clock at 900 MHz before it compared again.

Show the resolution

The first A/B was void. The card ran at 360 MHz with the thermal slowdown active, the clock was not recorded, and the two sweeps did not share a clock. Any conclusion about graphs from those tables is a conclusion about heat.

The repaired comparison kept graphs on. They saved about 1 percent of each decode step on this dense model, the throughput tie held within 1.2 percent, and the unexplained lower tail without graphs at 16 and 32 users is a reason to measure the tail on your model, not a reason to turn graphs off for memory. Size the graphs to your traffic instead. The method is the real fix: record clocks.sm and the temperature every second during every benchmark, start each run at a temperature that the card can hold, repeat any run whose median clock falls under your floor, and compare two runs only at similar clocks. The lab notes of the vLLM manual name four L4 sessions for the same reason, and compare numbers only inside one session.

Show the wrong turns
  • “Both configs ran on the same hot card, so the heat cancels out.”

    The throttle moved with the temperature and with the neighbour's load. Two runs an hour apart did not share a clock, and a card at a sixth of its clock hides a half-millisecond effect in any case.

  • “Lock the clock at the maximum and the problem is gone.”

    A lock sets the highest clock, and a GPU at a high temperature still slows below it. We locked at 900 MHz, a value that the card could hold, and still set aside runs that fell under it.

  • “Run the two configs in the other order.”

    The second run still inherits the heat of the first. Alternate the configs, cool the card to the same temperature before each run, and record the clock.

  • “Wait one minute between runs.”

    The repeated sweep needed 116 to 287 s to reach 72 C before a start. Wait for a temperature, not for a time.

Show the general rule

Every A/B on hardware needs a control for the hardware. A clock that changes with heat or with a neighbour is a hidden variable that moves every number by the same factor, and that factor swallows small effects and invents large ones. Record the clock with every measurement, hold the start condition fixed, and treat two numbers from different clocks as two numbers from different machines.

Taught in

The SGLang manual records the first sweep and the repaired pair in the CUDA graphs page and sets the clock rule in its benchmark page, the vLLM manual tells the speculative decoding version in the EAGLE3 page and names the sessions in the lab notes, and the load testing lesson covers what a client cannot see.