Which carveout a kernel with no shared memory gets: registered probe
Registered on 1af5351 before any implementation or run, for review by 6 and release by the lead. Nothing below changes after the data are taken. It measures; it changes no core, profile or rule. Any fix is left to a later PR after the spill decision of ad1d505 is scored (issue #21, option (a)).
Question
The core reads the L1 miss rate of spill frames from the curve of the smallest measured carveout at or above the kernel's carveout (spill_miss_rate in crates/vgpu-core/src/l2/mod.rs). It computes that carveout in occupancy as the smallest option that holds the resident CTAs' shared memory, including the 1 KiB reserved per CTA. For the spill-latency kernel (no dynamic shared memory) this gives 8 KiB, so the 16 KiB curve is read. That curve misses almost fully at a 128 KiB footprint. The zero curve misses 0.56 (GB10) there, and with it the l1_boundary batch points are predicted with MAPE 13.1% instead of 54.9% (the correction of v0.3-gb10-first-capture-l2-diagnosis.md, section 8, local commit 7d92e2c, under review).
The curves come from run_l1_carveout: one 1024-thread CTA with a shared memory request of 0, 16, 32, 48, 64 or 99 KiB, and a ld.global.ca pointer chase. So a curve is labelled by the request, while the core looks it up by the carveout it computes from need plus reserve. Two readings are possible:
- Labelled by request. The driver gives a no-request kernel the L1 of the zero curve, and the core should look up by request.
- Labelled by carveout. The driver gives such a kernel an L1 like the 16 KiB curve, or the core's reading holds otherwise.
Which one holds is not measured. This probe measures it on GB10 and decides no fix.
Step 1: L1 cliff by launch shape
A diagnostic mode, not in BUILD_MODES and not in any profile, runs l1_carveout_pchase_kernel unchanged, with one CTA, in four launch configurations interleaved within each process:
| Name | Threads per CTA | Shared memory request | Role |
|---|---|---|---|
| R0 | 1024 | 0 | replica of the zero curve |
| R8 | 1024 | 8 KiB | the core's computed carveout |
| R16 | 1024 | 16 KiB | the curve the core reads |
| S | 128 | 0, no carveout attribute | the spill-latency CTA shape |
- Working sets. 16, 32 and 64 KiB (the L1 reference), 96 to 160 KiB in 4 KiB steps, and 192, 224, 256 and 320 KiB (the L2 reference).
- Lengths. Chase lengths are sized by the pilot so that each in-kernel window is at least 1.25 ms (the observe overload), and every capture window is at least 1.0 ms.
- Cliff. The cliff C of a configuration is computed exactly as
collect_profile.pycomputesthreshold_bytes_per_sm. Per sample: L1 latency is the median of the first three points, L2 the median of the last four, and the cliff is where the latency first crosses their midpoint, interpolated. C is the median over samples.
Step 2: the spill-latency kernel's own transition
The spill kernel indexes its frame with a power-of-two mask, so the footprint per SM is varied with the warps per CTA, not with an odd frame.
- Shape. Grid one CTA per SM, batched reloads (
batch_before_dep), 128 reloads, frames of 128 B, 512 B and 4096 B, and 6, 7, 8, 9 and 10 warps per CTA. At 512 B these are footprints of 96, 112, 128, 144 and 160 KiB per SM. - Normalized miss. At each warp count w, m(w) = (t512 - t128) / (t4096 - t128) from the per-step times at the three frames. The 128 B frame stays in L1 and the 4096 B frame in L2, at the same warps.
- Transition. T is the footprint where m crosses 0.5, interpolated over w.
- Allocations. The reload points' level depends on the local memory allocation (8's diagnostic,
gb10-spill-alloc-plan.md). So step 2 runs in 5 new contexts (cudaDeviceReset, default stack limit) per process, all three frames and five warp counts in each context. T is computed per context and reported per context, and the reading uses the median of the per-context T. A context whose m(w) does not cross 0.5 between 6 and 10 warps reports "no crossing", with the side it stays on (all below or all above), and is left out of the median. If fewer than 8 of the 15 contexts over the three processes have a crossing, step 2 has no T and is reported as "no transition in the swept range", with the sides; step 1's reading then stands alone. (Added after 6's review, before implementation.) Within a context the points run in a fixed order: warps ascending, frames 4096, 512, 128 B. - Lengths. Steps are sized by the pilot to launches of at least 1.25 ms, as in
spill-latency.
Acquisition
GB10 on Spark 1, under the GPU lock. Three processes in one session, each through capture_posthoc.py with --clock-probe, the thermal and host gates, and rules 1 and 2 on its lists. A process that fails a gate or rule 1 or 2 is void, archived and replaced, at most twice; the readings use the first three valid processes. Rule 3 is reported, not used to void.
Readings, fixed here
Reference. C(R0) must lie within 8 KiB of the GB10 profile's zero-carveout threshold (128378 B). If it does not, the reference is not reproduced and nothing is read.
The readings use the medians over the three processes:
- Labelled by request: |C(S) - C(R0)| <= 4 KiB and |C(S) - C(R16)| > 8 KiB.
- Labelled by carveout: |C(S) - C(R16)| <= 4 KiB, or |C(S) - C(R8)| <= 4 KiB with |C(R8) - C(R0)| > 8 KiB.
- Neither: every other outcome. All four cliffs are reported and no labelling is named.
Step 2 is read against step 1:
- Consistent: |T - C(S)| <= 8 KiB.
- Inconsistent: otherwise. Both values are reported and step 1's reading stands only as a statement about the pointer chase.
Reported, not judged: C for every configuration and process, m(w) per context, and the per-context T.
Limits
- One device, GB10. The RTX 4070 would need its own run.
- The driver's carveout choice may depend on more than the request and the CTA size, for example the registers or the occupancy the kernel could reach. Configuration S covers the
spill-latencyshape only. - Step 2's warp counts also change how many reloads are in flight. The normalization at each warp count is meant to remove that, not proven to.
Result: void, no reading
Measurement commit e08129f (local branch s4/v03-carveout-probe-registration, not in main), binary SHA-256 ea891c92e098e7e1f30bdd03434f922af7ba95924187fbaf6b310ca56a5ea47d, built on Spark 1 with CUDA 13.0 for sm_121a. One session on 2026-11-27 from 06:06:31 to 06:17:36 UTC, under the GPU lock for the transfer, the build and every run. The pilot froze 171 points at 06:08:11. The raw records are in results/v03-gb10-carveout-probe/e08129f/spark-raw.tar.gz (SHA-256 055f4097...) in the 4 worktree.
All five allowed processes (three plus two replacements) are void. Each passed the host gate and rules 1 and 2. Each failed long_launch.verify, and every one stopped at the same point, step 1 R16 at a 104 KiB working set, with an in-kernel window of 988 to 993 us against the 1.0 ms capture floor. verify stops at the first failing point, so whether other points also fell short is not known. No reading is made, and the data are not read for one.
The likely cause is in the design. The pilot sizes each chase from three samples to a 1.25 ms window. The R16 point at 104 KiB sits on that shape's own cliff (about 105 KB for the 16 KiB curve), where the per-step latency of a chase is likely to switch between the L1 and L2 levels; a window 21% shorter than the pilot's 1.25 ms puts a capture sample under 1.0 ms. The registration did not foresee it.
A repeat needs a new registration. One option uses the existing observed_target_ns, as l2-rescan does in GB10's bistable band, to size step 1's windows to twice the floor. That choice, and whether to repeat at all, is the lead's.