l2-merge samples as groups of nine launches: registered design change
Registered by decision of the lead before implementation, for independent review by 6 before any code. It is a change to the measurement design of one mode before a capture, not to the capture rules or their statistics. It changes what one sample of l2-merge is, and it is adopted only if the check in the last section passes.
Why
In the first GB10 0.23.0 capture (42e039d), l2-merge lost four of seven rounds to rule 1 (3 to 7 flagged points against 4 allowed). The cause is the recorded GB10 DRAM slow episode (v0.3-gb10-first-capture-l2-diagnosis.md, section 2), not the point's level. The round medians of a point agree within 1% to 2%. A 15-sample list is flagged when it happens to hold slow episodes of 1 to 3 consecutive samples, and it can be any point in any round.
Evidence and its limits
The 200-sample timing experiment (a87ac60, section 6 of the diagnosis; 3 processes, two blocks per length) was run on the most often flagged point (96 CTAs, sharing 8, 16 KiB, stagger 16) at its frozen 1464 steps and at 732. About 10% of launches are slow, in clusters; the base level spreads only about 0.6%.
Lengthening a list does not help. With 15, 31, 45 and 63 consecutive samples per list, rule 1 flags 16.8%, 14.2%, 11.6% and 9.1% of lists at 1464 steps, and 13.4%, 14.0%, 18.4% and 19.8% at 732 steps. When a window holds over about a quarter slow samples, its third quartile falls in the slow tail.
Grouping does help. A sample was taken as the median of k consecutive flush-and-launch pairs, 15 groups per list. Rule 1 then flags:
| k | 1464 steps | 732 steps |
|---|---|---|
| 5 | 3.96% | 16.4% |
| 7 | 0.00% | 5.9% |
| 9 | 0.00% | 0.00% |
At k = 9 the list median moves at most +0.23% and +0.76% from the median with the slow samples removed.
The limits of this evidence are stated here and are the reason for the check below. It is one point, the worst one, with six blocks per length. Its windows slide and are not independent. The other 89 points and other sessions are not covered. The change also, by design, makes rules 1 and 2 less sensitive to clusters of 1 to 4 consecutive slow launches. Only runs of 5 or more slow launches, a real shift of the level or host interference would still trip them. The episodes stay visible in launch_ns_each and slow_launch_share. (6's review.)
Change
- A sample of every
l2-mergepoint is the median of 9 consecutive pairs of flush and timed launch. A list is 15 such samples, as before. Every sample list of the point (launch_ns_samples,turnaround_ns_samples,dram_unique_bw_gbps_samples,l2_to_sm_bw_gbps_samples) is built from the same groups: each entry is the median over its group of that quantity per launch. Rules 1, 2 and 3, their thresholds and the profile value (the median of the round medians of the list) are unchanged. What changes is the unit they are applied to. - Raw launches kept. Every launch's event time and in-kernel turnaround are kept in the raw output, in lists not ending in
_samples:launch_ns_eachandturnaround_ns_each, 135 entries per point in launch order. They are neither judged nor profile values. - Slow share recorded. Each point records
slow_launch_share, fixed here. It is the share of the point's 135 launches whose event time exceeds 1.15 times the median of those 135 event times, the threshold used in the diagnosis. It is a plain number per point and per round, reported with the capture and not judged. - Timed window. The timed window of rule 1 of the protocol stays one launch. A group is a repeat of the measured unit, not a window, unlike
l2-rescan: there a single pass cannot be lengthened, so the group of passes is the window. Here each launch can be, and already is, sized to 1.25 ms. So the pilot sizes each point by single launches as now: three launches, the fastest at least 1.25 ms. The capture requires every one of the 135 launches, not only the group medians, to be at least 1.0 ms.long_launch.verifychecks thatlaunch_ns_eachholds exactly 15 x 9 = 135 entries and that its minimum is at least 1.0 ms. Thelaunch.min_nsthatlong_capture.pywrites for the profile, whichcheck_profiles.pyholds to 1 ms, is the minimum oflaunch_ns_eachover the rounds, the shortest real launch, not the minimum of the group medians. (Added after 6's review, before implementation.) - Only
l2-merge.sync-loop, which also shows the episodes (rule 1 at 1 to 4 of 14 per round in that capture), is watched and not changed. No other mode changes.
Adoption check
After implementation and its review by 6, run a GB10 capture of l2-merge alone through long_capture.py: pilot, freeze and five rounds, as in a full capture, with its gates and its two supplements.
- Adopted only if rules 1, 2 and 3 all pass with five valid rounds.
- Withdrawn otherwise, and
l2-mergekeeps one launch per sample.
k is not changed after the check, in either case.
Result of the adoption check: adopted
Measurement commit 8ecd081 (binary SHA-256 9990002a..., built on Spark 1 with CUDA 13.0 for sm_121a). long_capture.py ran the pilot, freeze and capture of l2-merge alone on 2026-11-27 under the GPU lock. The pilot finished at 05:19:54 UTC. The first capture command stopped before any timed process, because the packaged run lacked the python/ tree. Under the protocol that is an interruption, not a round, and the same command, binary and freeze resumed at 05:20:41 and ended at 05:34:10 UTC. The raw records are in results/v03-l2-merge-groups/8ecd081/spark-raw.tar.gz (SHA-256 feb61d0f...) in the 4g worktree.
- Rounds. Five rounds, all valid, with no supplement used. The host gate passed in every round (busiest share per round 6.11%, 5.82%, 5.84%, 6.35% and 6.25%; limit 10%).
- Rule 1. 0 of 90 lists flagged in every round (4 allowed).
- Rule 2. 0 of 90 in rounds 1 to 4 and 1 in round 5 (13 allowed).
- Rule 3. 0 of 90 points (4 allowed), passed.
- Launches. Every point holds 135 launches. The shortest real launch over all rounds is 1.239 ms.
- Slow share (reported, not judged). The per-point
slow_launch_sharehas a median of 0.74% and a largest value of 13.3%. 344 of 450 point-rounds had at least one slow launch: the episodes are still there, recorded and outside the sample medians.
By the rule above, the change is adopted, with k = 9.