GB10 spill-latency at 1 KiB frames: explicit maximum-L1 carveout (diagnostic)
Status: plan frozen before capture, result below. Diagnostic only; no profile or rule changes. The diagnostic code (--spill-carveout and microbench/spill_carveout.py) stays on the branch s8/diag-spill-carveout (0b4d34c, plan committed there before the capture) and is not part of the suite.
Question
In the first GB10 0.23.0 capture (main 42e039d), spill-latency failed rule 1 in 6 of 7 rounds. Every failing list was a 1 KiB frame (l1_boundary, 128 KiB per SM, the L1 size): the serial-chain points at 8, 32, 68 and 128 reloads take one of two states per launch (a fast cluster near the median and a slow one 1.7 to 2.5 times it, at random sample positions), and the batched points at 68 and 128 reloads are wide but single-peaked. The spill kernels set no shared memory carveout. If the driver's carveout, and so the L1 left to the frame, differs from launch to launch, a frame exactly at the L1 size would switch between fitting in L1 and spilling to L2. Does an explicit maximum-L1 carveout (cudaFuncAttributePreferredSharedMemoryCarveout = 0) remove the two states?
Design
- Binary built from
s8/diag-spill-carveout(the--spill-carveoutflag, which sets the attribute on all 12 spill kernel instances before the sweep). Same binary for both arms. vgpu_bench --mode spill-latencyunder the frozen schedule of the42e039dcapture (spill-latency.schedule, all 60 points; the schedule binds them all, so no point is dropped), 15 samples, 3 warmups,--clock-probe.- Arms:
default(no attribute) andmax_l1(--spill-carveout 0), alternating, 3 processes each, one session, after a 10 s quiet-host gate, each process traced and host-checked (host_quiet.run_traced), under the GPU lock (microbench/spill_carveout.py).
Frozen reading
- A sample is slow when above 1.4 times its point's lower quartile in that process.
- The control reproduces the two states when at least 3 of the 4 serial 1 KiB points have a slow sample in at least 2 of the 3
defaultprocesses. If it does not, the run is recorded only. - The two states are gone when, in all 3
max_l1processes, none of the 4 serial 1 KiB points has a slow sample and each has an interquartile range of at most 10% of its median. - Otherwise they remain. A failed host check voids the run.
- Also reported, not judged: the batched 1 KiB points' interquartile ranges, and the serial medians per arm (a different carveout may move the medians).
Result
Captured 2026-11-27 04:48:43 to 04:49:08 UTC on Spark 1 under the GPU lock, binary 6751b791... built from 0b4d34c, schedule 603cd013... (the 42e039d freeze); spill-carveout-1.json 28a0a1a1.... All six processes passed the host check (busiest second 5.3% to 6.0%); SM clock 2533 to 2540 MHz.
Verdict by the frozen reading: two states remain with the maximum-L1 carveout. The control reproduced them.
| Arm | Slow samples per process, serial 1 KiB at 8 / 32 / 68 / 128 reloads | Interquartile range / median, serial | Batched 68 / 128 reloads, interquartile range / median |
|---|---|---|---|
| default | 0,1,5 / 4,1,1 / 2,1,4 / 6,5,6 | 1.5% to 105% | 10% to 11% / 6% to 18% |
| max_l1 | 3,6,4 / 2,5,5 / 3,4,3 / 9,6,6 | 5.7% to 123% | 13% / 10% to 16% |
The explicit maximum-L1 carveout does not remove the two states; if anything the max_l1 processes show more slow samples. A launch-to-launch choice of carveout by the driver is not their cause. No further run is planned under this plan.