Radon, 2026-10-05: milestones 761 and 766, and a crossing that moves with code layout
Appendix to null-system-call-under-load.md, recorded 2026-10-05 (UTC)
by lane/radon-2026-10-05-record from the evening's transcripts. Nineteen boots, power-cycled by
calef from 09:56 to 10:35 UTC. Transcripts, patches, hashes and the boot-to-commit table are
bench/radon-2026-10-05/ (nifeos/nife:bench/radon-2026-10-05/README.md). Boots 1 to 7 follow its
run sheet (nifeos/nife:bench/radon-2026-10-05/RUN-SHEET.md), written before any boot. Boots 8 to 19 were
decided during the evening, after boot 1, so nothing about them was pre-registered.
All numbers are per_job of the null_system_call job (64 traps on an empty capability slot) in ticks
of radon's 4 MHz timer, unless a row says otherwise.
Milestone 761: the lock left the lookup
Milestone 761 (capability lookup off the global lock) gives each thread's capability table its own lock.
The three main boots (1, 3, 5), against the 2026-10-04 fix evening (bench/radon-2026-10-04-fix/):
| 1 task | 4 tasks | 32 tasks | growth 1 to 4 | |
|---|---|---|---|---|
2026-10-04, b500b3d48 |
99, 99, 99 | 147, 146, 147 | 171, 170, 170 | 48 |
2026-10-05, c8b5fd09e |
110, 110, 110 | 120, 121, 120 | 130, 133, 134 | 10 |
compute, 2026-10-05 |
2,409 to 2,410 | 2,528 | 4.9% |
The lock-wait boots (6, 7) say why. At four tasks:
| 2026-10-04 (boots 4, 5) | 2026-10-05 (boots 6, 7) | |
|---|---|---|
current_cap calls that waited |
41.4%, 41.8% | 228 of 476,296 and 232 of 476,397 (0.05%) |
IPC_TABLES wait, ticks |
2,593,130 | 1,241,793 and 1,278,777 |
IPC_TABLES contended acquisitions |
320,054 and 325,022 | |
| reaper's stack free per reap, no lock held | 167 | 173 and 168 |
instrumented null_system_call, 1 / 4 tasks |
118 / 342 to 345 | 116 / 124, 116 / 123 |
current_cap now takes its own thread's table lock (rank 57), and the few waits left are on that
lock. Half of the global lock's wait went with it. The rise from one task to four is 10 ticks, of
which compute's preemption share (4.9% of 110) is about 5. What remains is about 5 ticks a job,
0.08 a trap, 20 ns.
Throughput moved with it, with the layout caveat below attached: jpm_median at four tasks 953,023,
945,805 and 944,235 against 926,438 to 932,371 (+1.8% on the medians), and at 32 tasks 1,032,445
to 1,035,350 against 997,945 to 998,880 (+3.5%). At one task it fell 2.2% (318,503 against
325,789), the same rise boot 8 below pins on placement.
Against the run sheet. The median at four tasks is 120, inside the 116 to 135 band that reads "partial: the lock was part of the rest". The one-task guard failed: 110 is above 101. The rule written beforehand says that rise is to be explained before any row is claimed, and it is the section after next. Read with that explanation, the four-task number is not a fair comparison with 147 in either direction, because the two builds differ by a layout draw worth up to 8 ticks. The growth from one task to four is the comparison that survives it (shown below to hold within a tick across five layouts), and it fell from 48 to 10.
Milestone 766: the alignment is material on radon
Milestone 766 (each core's PerCpu on its own cache line) aligns each core's block to 128 bytes.
Boots 2 and 4 ran main with 766 undone and PERCPU forced to 24 mod 128 (24 mod 64 on the
U74's 64-byte line), the HVF appendix's positive control.
| 1 task | 4 tasks | growth | |
|---|---|---|---|
main (boots 1, 3, 5) |
110, 110, 110 | 120, 121, 120 | 10 |
unaligned (boots 2, 4) |
110, 110 | 128, 127 | 17.5 |
D = (127.5 - 110) - (120 - 110) = 7.5 ticks on the per-boot medians (7.45 on ticks / jobs).
That is 0.12 ticks a trap, about 29 ns. The run sheet's band for 6 or more reads "alignment is a
material share of the rest ... well above any plausible scaling of HVF". Its guards hold: the
one-task difference is 0 (the control's extra load does not show), and the two unaligned boots
spread 1 tick at four tasks, the same as the three main boots. The run sheet also asked for the
census before believing a result this size; the placements differ between boots on both sides and
do not track the result.
The scaling argument predicted 0.43 ticks a job if a line bounce cost radon what it costs an M3. Radon paid about 17 times that. A coherence miss on the U74 (shared L2, 64-byte line, slower core) costs far more than it does on Apple's cores, and nothing measured before this evening said so.
The extra load the control adds changes kernel text, which the next section shows can move the
level by 8 ticks. It did not move the one-task level here (110 against 110), and D is a difference
of growths, which is the quantity that held still across layouts. So this result does not lean on
the layout luck that finding 3 warns about.
Why one task rose from 99 to 110
The guard failed, so the boots after 7 went looking. Boot 8 rebuilt b500b3d48, the 2026-10-04
commit, and read 99 and 148, with jpm_median 326,010 / 928,896 / 998,121 against 326,007 /
928,910 / 998,717 that evening. The board had not drifted; the build had.
Bisect over the 74 first-parent merges from b500b3d48 to c8b5fd09e, plus controls:
| Boot | Build | 1 task | 4 tasks | growth | trap_entry mod 64 |
|---|---|---|---|---|---|
| 8 | b500b3d48 |
99 | 148 | 49 | 40 |
| 11 | merge 41 (#1630, 761) | 101 | 116 | 15 | 16 |
| 13 | merge 51 (#1644) | 100 | 114 | 14 | 40 |
| 14 | merge 52 (#1659, milestone 105 (the two forks)'s sixth register) | 116 | 131 | 15 | 12 |
| 15 | merge 52, b500b3d48's userspace stub |
108 | 122 | 14 | 12 |
| 12 | merge 58 (#1665) | 120 | 133 | 13 | 32 |
| 9 | main, b500b3d48's userspace stub |
107 | 116 | 9 | 16 |
| 10 | main, empty slot 64 (outside the table) |
109 | 119 | 10 | 16 |
| 1, 3, 5 | main |
110 | 120 | 10 | 16 |
trap_entry's offset is read from each worktree's linked kernel with llvm-nm. main's value
comes from the three builds that share its kernel source (boots 9 and 10, and the unbooted
no1663), since the radon-2026-10-05 worktree's ELF was last linked for lock-wait.
The step is #1659: 100 at merge 51, 116 at merge 52, with nothing between them. The evening's
session disassembled both and found no instruction added on the kernel's trap path. The data layout
did not move either. Thread was 408 bytes rounded to 416 before and after, and the capability
table sat at the same offset in the thread page. The userspace stub that #1659 introduced (six
registers through a wrapper) costs part of it: 8 ticks at merge 52, and 3 on main, where #1663
had already reworked the stub. The in-table empty slot that milestone 754 (the capability table
grows to 64 slots) introduced costs about 1 (boot 10).
That leaves most of #1659's 16 ticks with no instruction to blame, which is what a placement change
looks like. So the last four boots moved nothing but placement. They are main built with
fastpath_pad, NIFE_FASTPATH_PAD=0 and NIFE_FASTPATH_SHIFT=N, milestone 370 (a layout control)'s knob,
which shifts the whole kernel text by N bytes and adds nothing any path reaches:
| Boot | Shift | trap_entry mod 64 |
1 task | 4 tasks | growth |
|---|---|---|---|---|---|
| 16 | 0 | 24 | 111 | 122 | 11 |
| 19 | 16 | 40 | 118 | 128 | 10 |
| 17 | 32 | 56 | 116 | 126 | 10 |
| 18 | 48 | 8 | 110 | 121 | 11 |
The single crossing moves 8 ticks, about 7%, with no code change. The growth from one task to
four does not move: 10 or 11 across all four shifts and main. Two more things the table says:
trap_entry's own offset is not the variable. Offset 40 is the best layout in the bisect (99 and 100) and the worst in the sweep (118). Whatever is aliasing, it is where the hot pieces sit relative to each other and to the userspace stub, not one symbol's cache line. The U74's L1 instruction cache is 32 KiB and two-way, with 256 sets indexed by virtual address bits 6 to 13 (script/fastpath-footprint's--layoutcomment, from the core manual). Three hot pieces of code that land on one set evict each other on every trap. That is a reading, not a measurement: nothing here counted misses.- The 2026-09-04 session saw the same thing on a different benchmark: a padded build 3% faster on
ipc_rtt_el0(notes/footprint-perturbation.md). Then it was one pair of layouts. Now it is a sweep.
The conclusion. Radon's per-crossing number is layout-sensitive at about 8 ticks, 7%. A comparison of two builds' single-crossing cost under about 8 ticks is not meaningful unless layout is controlled. The 99 to 110 is mostly a placement draw, with about 3 ticks of userspace stub and 1 of the in-table slot inside it. No change in it is a defect to revert. A comparison of growth with cores is robust to it, which is why the 761 and 766 verdicts above use growth.
Even capability slots straddle a cache line
Found while checking the data layout. The capability table lives in the thread page at byte 696,
32 bytes a slot, so slot i starts at 696 + 32i, which is 56 mod 64 for every even i. Each even
slot spans two 64-byte lines. It is the same in every build tonight, so it is not the 99 to 110.
The job's EMPTY_SLOT is 63, odd; boot 10's slot 64, even and outside the table, read 109, so a
straddling bounds-check miss costs nothing visible here. A lookup that reads a whole even slot pays
two lines. Unmeasured. Recorded in milestone 761's BUGS.
BUGS
- Boots 8 to 19 are one boot each. The 2026-10-04 and 2026-10-05
mainboots agreed within a tick boot to boot, so a single boot is a number on this board, but each of these rows is one draw. - The shift sweep is four layouts. The 8-tick range is a lower bound on the spread, not its size.
- The bisect is a set of chosen points, not a full search: merges 41, 51, 52 and 58. The step at
#1659 is adjacent merges; nothing else between
b500b3d48and merge 41 was booted. - The board image runs debug userspace under a release kernel (
script/board-image'sBUGS), so the stub's share above is a debug stub's share. - Cleaned transcripts only; the raw captures were not committed.
Name: provisional, lane/radon-2026-10-05-record, 2026-10-05 (UTC), following
radon-2026-10-04.md's stem. Naming is an architect's call.