Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
31 KiB
Ours against vanilla Strata 0.2.6 on the RTX 5090: balanced paired runs with a machine-state record (claude/baseline-pair)
Date 2026-10-31 to 2026-11-01. RTX 5090 server rnr5090, Ryzen 9 9950X3D, uptime 29.8-34.7 h during the runs, frozen corpus, ~245k context, 5 turns, --max-output 300, final-turn input 246,862-246,961 tokens.
Labels: M measured in the run named. All 69 runs of parts a-d are VALID (validity rules of speedtrain3-ab.sh; vanilla arms also checked against their engine log for the tail-skip / CPU-share lines).
Parts c and d (newer main binaries, PCIe 0.55/0.45 and 0.45) are in section 7; section 1 leads with the final pairing (part d).
1. Result
Final pairing (part d, current main ffd9322c7, PCIe share 0.45 = product default, 6 balanced blocks, all valid): ours is ahead of vanilla v2 in 6 of 6 blocks.
| arm | n | all-turn tok/s mean (sd) | min..max | tokens/round | ms/round (sd) |
|---|---|---|---|---|---|
| ours (defaults) | 6 | 155.6 (1.6) | 153.1..157.2 | 2.11 | 13.57 (0.14) |
ours, LELEKA_HUGEPAGES=on |
6 | 156.4 (2.0) | 152.4..158.0 | 2.11 | 13.49 (0.07) |
| vanilla v2 (tail skip off, CPU share 0) | 6 | 132.9 (5.5) | 126.4..142.3 | 1.88 | 14.23 (0.59) |
Block-paired (same block): ours - v2 +22.7 tok/s (+17.2 %), per block +24.0 +14.6 +24.0 +25.2 +21.6 +26.7, 95 % interval about +18..+27 tok/s; ours+hugepages - v2 +23.5 (+17.8 %); hugepages - defaults +0.8 tok/s (+0.5 %), per block -0.5 +1.0 +0.7 +3.9 +0.7 -0.7, interval -0.9..+2.6: not distinguishable from zero here (the hugepages page measured +1.3 %). Ours rounds are 0.66 ms shorter than this series' vanilla and carry 0.23 more tokens per round.
The vanilla state matters and I cannot call the +17 % "the" gap. In part d five of the six vanilla runs were in the poor state (started after an ours run, 44.5-45.2 GiB of the arena as huge pages): 131.0 tok/s; the one full-coverage run was 142.3. Pooling all 34 vanilla runs of parts a-d (uptime 29.9-43.6 h): full-coverage n=14 146.9 tok/s (sd 12.5, best runs 160-174), poor n=20 136.8 (sd 11.6). Against those, current-main ours at 155.6-156.4 is ahead by about 6 % of vanilla's good-state mean and 14 % of its poor-state mean, and still behind vanilla's best single runs (160.3, 161.2, 162.4, 162.5, 174.2: 5 of 34 runs above 160 tok/s). The good-state comparison is across parts and uptimes (vanilla's good-state mean was 149.3 in part a, and one run at 142.3 in part d), so it carries the time confound of section 5; the within-block comparison above is the clean one.
Part e (section 10, one arm per fresh boot, page cache of the files read so far evicted per file, vanilla at full huge-page coverage in all 6 runs): ours 155.4 tok/s (sd 2.4, n=3), v1 137.0 (sd 5.6), v2 144.7 (sd 23.0, one run at 171.2). Block-paired ours - v1 +18.4 tok/s (+13.5 %), 3 of 3 blocks; ours - v2 +10.7 (+9.2 %), 2 of 3 blocks (block 2: v2 171.2 against ours 152.6, ours 10.8 % behind). So: ahead of vanilla in vanilla's good THP state on average, behind its occasional fast mode; n=3 blocks and the fast mode is unexplained.
How ours moved over the work (same harness, ours only): main e381c3082 (parts a, b) 143.4 (sd 2.0, n=11) at PCIe 0.55; main 11e021161 (part c) 151.5 at 0.55 and 148.4 at 0.45; main ffd9322c7 (part d) 155.6 at 0.45. Against vanilla in the same part: parts a-b e381c3082 level with v2/v1 (-0.9 % / +0.8 % paired, n=6); part c 11e021161 vs v2 +7.6 % (0.55) and +5.4 % (0.45), ahead in 5 of 6 and 4 of 6 blocks; part d +17.2 %. Part c's vanilla was also mostly poor-state (5 of 6), so its +5..8 % understates the good-state gap.
Vanilla is the unstable arm; ours is not. Vanilla sd 11-17 tok/s per part (5.5 in part d), ours 1.6-2.5 in every part and arm. ms/round of ours has sd 0.07-0.17 ms, vanilla 1.0-1.2 ms.
Vanilla drift: partly explained, the rest not. (a) Predecessor and huge-page coverage (section 5): a vanilla launch after an ours run gets 44.0-45.2 GiB of its 46.8 GiB arena as huge pages instead of 46.4-46.7; across 34 runs vanilla after ours is 10.8 tok/s (8 %) slower and 0.91 ms/round longer (Welch t -2.6 and +2.6, one of about 20 variables inspected). (b) A slow decline with uptime remains inside both classes (about -0.7 to -0.8 tok/s per hour over 30-43 h, pooled r -0.35, n=34); I cannot separate uptime from the number of vanilla launches since boot. CPU clocks, GPU clocks and temperature, PCIe probe, vanilla's PCIe share (0.35 in all runs), hit rates and page cache do not explain it. About two thirds of the remaining spread inside a class is round time, not acceptance, and nothing recorded correlates with it.
2. Method
- Ours =
dt/bin-footprint3b(claude/slots-footprint39e13fc809).git diff 9e13fc809 e381c3082outsidedocs/andscripts/is empty, so this is the code of maine381c3082(the task's minimum). Shipped lossless defaults: seed off, upstream ranked profile, auto slots (12,192), budget 31,300 MiB, spec-min-p 0, prefix cache auto, nothing experimental. The harnessrun-e2e.shexportsLELEKA_ORIGINAL_SERVE_PCIE_FRAC=0.55when unset (the product default is 0.45; cpu-service found this): every ours arm of parts a and b ran PCIe share 0.55. Vanilla settles at 0.35 by itself in every run (M, CPU pool 42-44 us per expert, probe 49.8-51.0 GB/s). - v1 vanilla Strata 0.2.6 shipped defaults (route tail skip ON rank 7, prefill CPU share ON). v2
STRATA_ROUTE_TAIL_SKIP=0 STRATA_PREFILL_CPU_SHARE=0(lossless-comparable). Same launch line and client asspeedtrain3-ab.sh. - Order. Part a: 6 blocks of the three arms in the 6 permutations (three reversed pairs: every arm is first, second, last twice; ABBA generalised). A block is the unit of pairing. Part b: 5 x (v2 v2 ours), a predecessor test (vanilla directly after ours against vanilla directly after vanilla, interleaved in time).
- Warm-up discipline. Identical start procedure for every arm (no GPU process, load1 < 0.5, GPU <= 48 C, nothing dropped or pre-touched); the state is recorded, not normalised. Block 1 is not discarded.
- State record (
baseline-sampler.py, read-only, pinned to CPU 31):pre.jsonlbefore an arm,state.jsonlduring it (full sample every 15 s, per-CPU clocks and load every 2 s),post.jsonlafter: per-CPUscaling_cur_freqand utilisation, governor / driver (powersave, amd-pstate-epp, balance_performance, boost 1),/proc/meminfo(AnonHugePages, HugePages_*, MemAvailable, Cached, Shmem), THPenabled(madvise) /defrag(madvise),/proc/buddyinfo, THP / compaction / allocstall counters of/proc/vmstat, uptime, loadavg, PSI,nvidia-smi(SM and memory clocks, temperature, power, P-state, throttle reasons), for the GPU process itsCpus_allowed_list,smaps_rollup(AnonHugePages, Rss), every thread (tid, name, last CPU, CPU ticks, affinity), and the top-5 other CPU consumers. Client lines are timestamped (client.ts.log) so decode windows can be joined to samples. - tokens/round, ms/round. Ours:
produced / roundsof the request outcome line and decode time = 300 / client tok/s. Vanilla: engine line "N generated in X ms, drafts accepted A of M": rounds = N - A. - Provenance and frozen inputs:
/data/leleka-e2e/baseline-pair/MANIFEST.sha256(tools, ours binaries, harness, profile, corpus manifest, vanilla launcher and engine 0.1.50, settings) is verified at every job start;PROVENANCE.txt. The tools were reinstalled three times between jobs (line endings, options); the sampler and job logic of part a are those of the first install apart from line endings and the laterSEQ,PRE_ARM_HOOK,ours45additions. Part b's first launch failed in the first second (CRLF line endings my edit introduced, no GPU time used) and was re-queued asbp-b2.
3. Part a: balanced blocks (M, runs/baseline-pair, uptime 29.8-31.3 h)
| run | tok/s T1..T5 | all-turn | tok/round | ms/round | arena AnonHugePages GiB | thp fallback pages |
|---|---|---|---|---|---|---|
| b01 ours | 146.0 143.7 142.5 137.2 157.1 | 145.3 | 2.08 | 14.32 | 0 | 0 |
| b01 v1 | 128.9 177.9 162.6 154.2 155.8 | 155.9 | 1.76 | 11.43 | 44.6 | 1144 |
| b01 v2 | 136.7 149.7 146.0 134.4 137.1 | 140.8 | 1.81 | 12.89 | 46.6 | 145 |
| b02 v2 | 165.5 175.4 186.2 157.8 186.2 | 174.2 | 2.01 | 11.55 | 46.7 | 61 |
| b02 v1 | 146.6 158.9 158.7 172.0 169.7 | 161.2 | 1.82 | 11.32 | 46.6 | 143 |
| b02 ours | 139.9 144.8 137.0 148.5 151.7 | 144.4 | 2.04 | 14.14 | 0 | 0 |
| b03 v1 | 151.3 122.7 151.4 124.9 117.8 | 133.6 | 1.80 | 13.57 | 44.7 | 1102 |
| b03 v2 | 140.4 152.1 143.9 138.7 120.9 | 139.2 | 1.83 | 13.20 | 46.4 | 232 |
| b03 ours | 140.1 145.3 142.9 142.6 137.9 | 141.8 | 1.98 | 13.97 | 0 | 0 |
| b04 ours | 140.0 145.1 137.4 148.6 152.0 | 144.6 | 2.04 | 14.09 | 0 | 0 |
| b04 v2 | 157.5 144.0 172.0 123.0 121.7 | 143.6 | 1.89 | 13.27 | 44.7 | 1073 |
| b04 v1 | 136.8 135.2 165.8 137.3 155.6 | 146.1 | 1.89 | 12.99 | 46.5 | 187 |
| b05 v2 | 167.0 136.6 135.1 133.6 132.4 | 140.9 | 1.93 | 13.75 | 46.7 | 60 |
| b05 ours | 139.9 145.1 137.2 148.2 145.8 | 143.2 | 2.00 | 14.01 | 0 | 0 |
| b05 v1 | 134.0 135.7 147.1 120.7 124.2 | 132.3 | 1.86 | 14.04 | 44.7 | 1095 |
| b06 v1 | 159.6 139.3 142.0 138.1 136.2 | 143.0 | 1.87 | 13.05 | 46.5 | 157 |
| b06 ours | 140.1 145.0 136.5 140.6 142.5 | 140.9 | 1.95 | 13.87 | 0 | 0 |
| b06 v2 | 121.9 123.9 126.1 130.1 114.5 | 123.3 | 1.86 | 15.11 | 44.5 | 1194 |
(Rows in run order within a block as executed; the block number is the pairing unit.)
| arm | n | all-turn tok/s mean (sd) | min..max | tok/round | ms/round (sd) |
|---|---|---|---|---|---|
| ours | 6 | 143.4 (1.7) | 140.9..145.3 | 2.02 | 14.06 (0.15) |
| v1 | 6 | 145.4 (11.6) | 132.3..161.2 | 1.83 | 12.73 (1.12) |
| v2 | 6 | 143.7 (16.6) | 123.3..174.2 | 1.89 | 13.29 (1.16) |
Block-paired differences (same block, a - b, all-turn mean tok/s):
| pair | per block 1..6 | mean | pairs a faster | ms/round | tok/round |
|---|---|---|---|---|---|
| ours - v1 | -10.6 -16.8 +8.1 -1.5 +10.9 -2.1 | -2.0 (-0.9 %), se 4.3 | 2 of 6 | +1.33 | +0.18 |
| ours - v2 | +4.5 -29.8 +2.6 +1.0 +2.3 +17.6 | -0.3 (+0.8 %), se 6.4 | 5 of 6 | +0.77 | +0.13 |
| v1 - v2 | +15.1 -13.0 -5.6 +2.5 -8.6 +19.7 | +1.7 (+1.8 %), se 5.4 | 3 of 6 | -0.56 | -0.06 |
v1 and v2 are not different; the lossy tail skip and the prefill CPU share buy nothing measurable on this card at this context. Position in the block: ours 145.0 / 142.1 / 143.1 (first / second / third), v1 138.3 / 158.5 / 139.2, v2 157.6 / 141.4 / 132.0 (n=2 each; the vanilla pattern is the predecessor effect of section 5, not position).
4. Part b: predecessor test (M, runs/baseline-pair-b, uptime 33.5-34.7 h)
5 x (v2, v2, ours); the first v2 of a triple follows ours, the second follows v2.
| run | tok/s T1..T5 | all-turn | tok/round | ms/round | AnonHugePages GiB | thp fallback |
|---|---|---|---|---|---|---|
| b01 v2 (after cpu-service jobs) | 160.0 171.4 164.3 137.2 127.8 | 152.1 | 1.90 | 12.59 | 44.4 | 1231 |
| b01 v2 | 140.1 152.4 140.4 125.1 134.1 | 138.4 | 1.84 | 13.30 | 46.4 | 213 |
| b01 ours | 139.8 145.0 142.6 147.8 148.3 | 144.7 | 2.05 | 14.19 | 0 | 0 |
| b02 v2 (after ours) | 113.6 151.8 115.9 113.5 122.2 | 123.4 | 1.74 | 14.25 | 45.1 | 905 |
| b02 v2 | 133.9 177.0 174.6 174.8 141.1 | 160.3 | 1.95 | 12.39 | 46.6 | 141 |
| b02 ours | 142.3 161.2 143.6 145.3 142.2 | 146.9 | 2.11 | 14.36 | 0 | 0 |
| b03 v2 (after ours) | 153.9 171.3 151.1 136.1 129.0 | 148.3 | 1.91 | 12.96 | 44.0 | 1453 |
| b03 v2 | 120.5 126.6 153.0 137.8 131.9 | 133.9 | 1.92 | 14.39 | 46.6 | 118 |
| b03 ours | 139.7 147.2 141.0 140.0 135.1 | 140.6 | 2.02 | 14.39 | 0 | 0 |
| b04 v2 (after ours) | 112.7 131.2 110.4 135.0 115.8 | 121.1 | 1.77 | 14.63 | 44.3 | 1297 |
| b04 v2 | 119.3 134.4 133.8 140.1 136.4 | 132.8 | 1.80 | 13.64 | 46.6 | 110 |
| b04 ours | 146.1 143.8 143.3 142.1 144.4 | 143.9 | 2.04 | 14.19 | 0 | 0 |
| b05 v2 (after ours) | 157.2 144.2 141.2 120.8 127.3 | 138.1 | 1.89 | 13.69 | 44.5 | 1204 |
| b05 v2 | 157.5 163.3 168.7 156.6 166.3 | 162.5 | 1.79 | 11.02 | 46.5 | 177 |
| b05 ours | 139.7 142.4 145.9 141.1 138.2 | 141.5 | 1.98 | 13.99 | 0 | 0 |
Ours: 143.5 (sd 2.5, n=5). v2: 141.1 (sd 14.3, n=10). Vanilla after ours (4 runs here) 132.7 against after vanilla (5 runs) 145.6; the first v2 of block 1 followed cpu-service jobs and also got partial coverage.
5. Drift analysis (parts a + b pooled, vanilla n=22, ours n=11)
- Predecessor, huge pages and free 2 MiB blocks (M). Vanilla requests
MADV_HUGEPAGEfor its 23,983 x 2 MiB (46.8 GiB) expert arena (MAP_HUGETLB unavailable, vm.nr_hugepages=0; THP ismadvise, defragmadvise). Free memory in blocks of 2 MiB or more before the launch (buddyinfo) was 48.1-49.6 GiB after a vanilla run and 40.0-45.9 GiB after an ours run (ours holds 57 GiB in 4 KiB pages and exits leaving a fragmented free list; it uses no huge pages: AnonHugePages 0 in all 11 runs). With >= 48 GiB free the arena got 46.4-46.7 GiB of huge pages (fallback 60-232 pages of 2 MiB); with <= 46 GiB it got 44.0-45.1 GiB (fallback 905-1453 pages). The classification is perfect in 22 of 22 runs. Per class: full coverage n=12 147.8 tok/s, 12.79 ms/round; partial n=10 137.2, 13.55 ms/round. Vanilla after ours - after vanilla: -12.3 tok/s (-8 %), +0.87 ms/round (Welch t -2.2 and +1.9; I looked at about 20 variables, so read this as suggestive). The kernel does compact:kcompactd0burned 5-31 s of CPU per vanilla launch (ours 0.4-1.8 s), mostly before the first request; during the session itself it used 0-4.5 s and does not correlate with decode speed (r about +-0.4, n=12, mixed sign). - Uptime. Part a alone looked like a trend (vanilla ms/round +1.9 ms per hour over 29.9-31.3 h, r 0.79); part b, 3 hours later, has the same predecessor pattern and no trend (pooled +0.13 ms per hour over 29.8-34.7 h). The part-a trend was the predecessor pattern aliased with time. Uptime beyond that range (the 175 tok/s right after a reboot) is not covered; a freshly booted machine has unfragmented memory, which fits the mechanism but was not tested.
- Frequency. Busy cores (utilisation > 40 %) averaged 5.43-5.52 GHz in the decode windows of 30 of 33 runs, all arms (max 5.756 GHz); three runs show lower means (5083 vanilla b06, 5215 vanilla b-b01, 4968 ours b-b01), which I read as a sample where a lightly loaded core sat at its 2.98 GHz idle clock but did not check per run. Correlation with tok/s or ms/round is not significant (r -0.34..+0.46, n=12-30) and flips sign between v1 and v2. Governor is
powersavewith amd-pstate-epp and EPP balance_performance, boost on; it did not limit the busy cores. - GPU. SM clock 2872-2917 MHz, temperature 56-66 C, power 304-458 W (full samples inside decode windows, runs that had one); the throttle-reason field was recorded but not analysed. Correlation with vanilla speed is confounded by time and not independent.
- Not explanatory: PCIe probe (49.8-51.0 GB/s, r about 0), final
pcie_frac(0.35 in all 22), CPU pool us per expert (42-44), decode VRAM hit rate (97.1-98.5 %; v1 98.4-98.5 vs v2 97.1-97.4 by construction of the tail skip), PCIe-read share, foreign process CPU (nothing but kernel threads, the agent daemons and the sampler), page cache (Cached 57.5 or 59.2 GiB before a run is the same predecessor pattern). - Variance split (turn level, 30 turns per arm of part a): ours' turn-to-turn spread is acceptance (tokens/round explains ~110 % of the log tok/s variance, round time ~-10 %); vanilla's is 62-78 % round time (ms/round) and 21-38 % acceptance. So vanilla's instability is mostly in how long its rounds take, and inside the full-coverage class (sd 13 tok/s) I have no explanatory variable. Ours is stable (sd 2.0, ms/round sd 0.17) in all three state classes.
- Does ours drift too? Part a: all-turn 145.3, 144.4, 141.8, 144.6, 143.2, 140.9 over 1.6 h (r with uptime -0.77, n=6); part b 144.7, 146.9, 140.6, 143.9, 141.5. Pooled over 29.8-34.7 h r = -0.11 (slope -0.11 tok/s per hour). No drift established. Ours' predecessor does not matter (after vanilla 143.1, n=9; after ours 144.6, n=1).
Limitations: the sampler runs on CPU 31, the SMT sibling of pool worker 15, for ~2 ms per 2 s plus ~100 ms per 15 s, in every arm alike; it was not switched off for a control. n is small (6 blocks); intervals are t-approximations. The harness gives ours PCIe share 0.55, vanilla self-tunes to 0.35. Vanilla runs at its shipped settings including its own pinned-memory behaviour; the 54 GiB Shmem of the KAR holder is present in all arms and leaves ~9-11 GiB MemAvailable during a vanilla run, which may be what makes huge-page availability matter. Nothing was changed on the machine.
6. Owner-run test of the mechanism (not run by me)
scripts/e2e/decode/owner-compact-memory.sh (root) asks the kernel to compact free memory once and prints free 2 MiB+ blocks before and after. Used through the job's PRE_ARM_HOOK with SEQ="v2 ours v2 ours ..." it tests whether "vanilla after ours" loses its penalty once memory is compacted before the launch. It changes no setting. Nothing else (THP knobs, governor) needs changing for the hypotheses above; I did not test any.
7. Parts c and d (M)
Part c (runs/baseline-pair-c, 2026-10-31 22:30Z to 2026-11-01 00:05Z, uptime about 36 h; ours = dt/bin-cpuservice = claude/cpu-service bba658f20, the same code as main 11e021161 outside docs/scripts; arms ours at PCIe 0.55 (the then harness default, pcie-frac.txt), ours45 at the product default 0.45, vanilla v2; 6 balanced blocks, all valid): ours 151.5 (sd 1.9, 2.09 tok/round, 13.82 ms/round), ours45 148.4 (sd 0.5, 2.06, 13.90), v2 141.7 (sd 12.5, 1.88, 13.42). Paired: ours - v2 +9.8 tok/s (+7.6 %, per block -13.2 +12.7 +4.4 +22.4 +14.1 +18.5), ours45 - v2 +6.7 (+5.4 %, -14.3 +7.7 -0.5 +21.9 +11.2 +14.2), ours - ours45 +3.1 (+2.1 %, 6 of 6 blocks, se 0.8). The gain of 0.55 over 0.45 on this binary is the opposite of cpu-service2's end-to-end result (equal across 0.45-0.65, later binary); I did not investigate. In block 1 vanilla had its full-coverage run and was 13-14 tok/s ahead of ours.
Part d (runs/baseline-pair-d, 2026-11-01 05:09Z to 06:48Z, uptime 42.0-43.6 h; ours = dt/bin-main-ffd9322 = main ffd9322c7; PCIe share pinned to 0.45 in the job (pcie-frac.txt, LELEKA_ORIGINAL_SERVE_PCIE_FRAC=0.45 in env-arm.txt); arms ours and ourshp (LELEKA_HUGEPAGES=on: engine log "after collapse ... 46.78 GiB huge (99.9 %)", AnonHugePages 46.8 GiB in the process) against vanilla v2):
| run | tok/s T1..T5 | all-turn | tok/round | ms/round | AnonHugePages GiB | thp fallback |
|---|---|---|---|---|---|---|
| b01 ours | 159.5 151.4 173.8 152.0 149.4 | 157.2 | 2.15 | 13.69 | 0 | 0 |
| b01 ourshp | 159.9 161.3 158.5 156.0 147.9 | 156.7 | 2.11 | 13.47 | 46.8 | 2186 |
| b01 v2 (after ourshp) | 139.5 134.1 130.8 137.1 124.9 | 133.3 | 1.89 | 14.19 | 44.7 | 1090 |
| b02 v2 (after v2) | 141.9 149.3 147.7 141.7 130.9 | 142.3 | 1.89 | 13.28 | 46.7 | 77 |
| b02 ourshp | 160.1 161.8 161.9 146.3 159.2 | 157.9 | 2.14 | 13.51 | 46.8 | 2381 |
| b02 ours | 159.3 151.0 173.7 151.4 149.1 | 156.9 | 2.15 | 13.72 | 0 | 0 |
| b03 ourshp | 161.0 155.4 154.6 142.1 171.5 | 156.9 | 2.10 | 13.37 | 46.8 | 2164 |
| b03 v2 (after ourshp) | 127.8 164.8 121.5 123.2 124.0 | 132.3 | 1.84 | 14.02 | 44.8 | 1066 |
| b03 ours | 159.8 151.4 174.9 149.2 145.9 | 156.2 | 2.10 | 13.42 | 0 | 0 |
| b04 ours | 159.7 157.4 165.8 144.6 142.9 | 154.1 | 2.11 | 13.65 | 0 | 0 |
| b04 v2 (after ours) | 127.0 134.1 136.3 119.6 127.3 | 128.9 | 1.88 | 14.61 | 44.7 | 1089 |
| b04 ourshp | 160.1 159.7 163.4 148.8 158.0 | 158.0 | 2.14 | 13.52 | 46.8 | 2945 |
| b05 v2 (after ourshp) | 119.4 140.6 161.7 120.3 129.9 | 134.4 | 1.91 | 14.24 | 44.5 | 1200 |
| b05 ours | 159.7 153.3 171.7 144.5 150.7 | 156.0 | 2.10 | 13.46 | 0 | 0 |
| b05 ourshp | 160.0 161.6 158.6 155.3 147.8 | 156.7 | 2.11 | 13.47 | 46.8 | 2854 |
| b06 ourshp | 150.1 156.6 153.5 152.4 149.5 | 152.4 | 2.07 | 13.59 | 46.8 | 2225 |
| b06 ours | 159.6 154.0 158.1 144.0 149.9 | 153.1 | 2.06 | 13.46 | 0 | 0 |
| b06 v2 (after ours) | 127.1 128.5 125.5 127.7 123.2 | 126.4 | 1.90 | 15.02 | 45.2 | 859 |
(Rows in the order they ran.) Observations: turn 1 of ours is 159-161 in all but one run, higher than in any earlier ours series (newer code; not investigated). A LELEKA_HUGEPAGES=on process does not leave memory in a better state for the next vanilla launch: all three vanilla runs that followed an ourshp arm (b01, b03, b05) got partial coverage.
Caveats of part d: the first build of this binary came from a CRLF checkout and was 9 MB smaller than every earlier binary; it was discarded and rebuilt from a worktree re-checked out with LF endings (74.56 MB like the others), and only that one was run. The server copy of run-e2e.sh still defaults to PCIe 0.55; the job pins 0.45 explicitly. Vanilla ran at 42-43.6 h uptime with the partial-coverage penalty in 5 of 6 runs because the balanced design puts it after an ours arm in most blocks. Pooled predecessor analysis of parts a-d: analysis/bp-abcd-pred.txt.
8. Reproduce
scripts/e2e/decode/baseline-install.sh (on the server) installs the tools; stubs bp-a.sh, bp-b2.sh, bp-c.sh, bp-d2.sh in ~/work/gpu-runs/holder2/jobs/ hold the environment of each part (BLOCKS, SEQ, OUTR, BINDIR, SUBST_V1). Analysis: baseline-analyze.py, baseline-turns.py, baseline-compact.py, baseline-pred.py (outputs in /data/leleka-e2e/baseline-pair/analysis/). Data: /data/leleka-e2e/runs/baseline-pair{,-b,-c,-d}/<run>/ (long-session.json, client.ts.log, engine.log or inference.log, pre/state/post.jsonl, startup.txt, VALIDITY.txt).
9. Part e, first attempt (owner-authorised reboots, 2026-11-01/02): stopped after cycle 1, cost problem; completed in section 10
Driver: scripts/e2e/decode/baseline-reboot-series.sh (runs on the laptop; per cycle: wait until no foreign job, sync, sudo -n systemctl reboot, wait for a new boot id, check the safety net, pre-read the KAR file, restart the holder the way notes.md did after the boot of 2026-10-29, pre-read the model shard / MTP / pack, queue one holder job with ENTRIES, wait for it). Arms: ours = dt/bin-main-ffd9322 (main d29e3dba2 has the same code outside docs/scripts), PCIe 0.45 pinned, defaults; v1; v2. Per run the job also writes hook.txt (boot id and time, uptime at the hook, rescue sshd :2222, /dev/watchdog0, hung_task_panic, swap, NVMe dmesg hits, holder pid and READY time, buddyinfo) next to the usual pre/state/post.jsonl.
What happened (M):
- Safety net after every boot checked: rescue sshd on :2222 up,
/dev/watchdog0present,kernel.hung_task_panic=1, swap off, no NVMe timeout / reset / abort / error line in dmesg. Boots took 253-255 s to ssh, no hang, no rescue needed. - A cold start is dominated by reading the 55 GB KAR file into the holder memfd. The holder reads with plain buffered
read(): on this NVMe that runs at 8-35 MB/s (iostat r_await 4-15 ms, 112-128 KiB requests, queue depth 1-2): 2003.8 s (33 min) for the first holder after the first reboot. The same drive does 600 MB/s with 32 MiBO_DIRECTreads and 0.6-2.4 GB/s withposix_fadvise(WILLNEED)readahead. The pre-read (baseline-prefetch.py) helped in one cycle (holder READY about 8 min after start) and not in the next (the unread tail of the file was not resident; holder still at 8-25 MB/s after 26 minutes); I did not find out why. - Cycle durations: cycle 1 (reboot, pre-read, holder, run) 25 min; cycle 2 more than 45 min and stopped by my own 15-minute holder timeout (raised to 90 min). At that pace 18 cycles take 10-14 h, so I stopped the series after cycle 1 and did not resume it.
- Owner option (not done by me, it is a runtime sysfs setting):
scripts/e2e/decode/owner-readahead.sh set 4096raises the device readahead from 128 KiB; expected to bring holder and model loads down to minutes, which would make a cycle about 15 min. Resume withSTART_CYCLE=2 bash scripts/e2e/decode/baseline-reboot-series.sh "1 2 3 4 5 6"on the laptop after it (the stop file isbaseline-reboot-series.STOP).
Results so far (only ours ran on fresh boots):
| run | boot age at start | tok/s T1..T5 | all-turn | tok/round | ms/round | state |
|---|---|---|---|---|---|---|
pilot (pipeline test, runs/baseline-pair-e-pilot/b00p1-ours) |
0.6 h | 157.7 153.9 178.0 148.8 150.7 | 157.8 | 2.16 | 13.70 | valid |
cycle 1 (runs/baseline-pair-e/b01p1-ours) |
0.3 h | 159.9 151.1 173.8 151.7 148.9 | 157.1 | 2.15 | 13.71 | valid, hook.txt in the run dir |
Ours on a fresh boot is 157.1-157.8 against 155.6 (sd 1.6, n=6) at 42-44 h uptime in part d: boot state moves ours by about 1 %, inside its own spread. The vanilla arms, which are the ones that depend on the boot state (section 5), have not been run on fresh boots, so the question "is fresh-boot vanilla in its good state (arena THP >= 46.4 GiB)" is not answered here: on the fresh boots the free memory in 2 MiB+ blocks was recorded in pre.jsonl / hook.txt but no vanilla launch followed. Cycle 2's boot was not used.
One vanilla run on a fresh boot (runs/baseline-pair-e/b01p2-v1, boot age 0.74 h, same boot as cycle 1, holder up, model shard pre-read; the cycle-2 slot, not a clean cycle): valid, 130.6 tok/s (113.9 147.9 138.1 125.9 127.4; 1.84 tokens/round, 14.13 ms/round). Its engine log says "expert arena: ... transparent huge pages NOT requested: only 0 GiB of free 2 MiB blocks for a 46 GiB arena": vanilla checks the free 2 MiB blocks before asking for huge pages, and with the holder's 55 GB memfd plus the page cache that the KAR read and the pre-read leave behind (Cached 115 GB, MemFree 10 GB, buddyinfo order 9+ about 8 GiB) there were none. AnonHugePages of the process was 0 (Rss 65.7 GiB), the worst vanilla state seen in 36 runs. So fresh-boot vanilla is not in its good state when the holder has just been loaded: a fresh boot is not an unfragmented machine, it is a machine whose RAM is full of page cache. This also reads back on the partial-coverage class of section 5: that class is vanilla's own guard (huge pages only where free 2 MiB blocks exist) meeting the page-cache and 4 KiB-page footprint an ours run leaves behind, not a defect of the launch. I did not test dropping the cache of the KAR file after the holder load (a read-only posix_fadvise(DONTNEED) on that one file would be the obvious next step) and did not run vanilla on a boot without the pre-read.
10. Part e completed: one arm per fresh boot, page cache evicted, vanilla in its good THP state (M, runs/baseline-pair-e, 2026-11-02 00:29Z to 06:28Z)
Resumed after section 9 with three changes: 3 blocks (9 cycles, permutations 1-3: ours v1 v2 / v2 v1 ours / v1 v2 ours), per-file posix_fadvise(DONTNEED) (baseline-evict.py; not drop_caches) of the KAR file, both model shards, the MTP files and the vanilla pack after the holder load and before every arm (the holder's read otherwise leaves ~50 GB of page cache and vanilla found "only 0 GiB of free 2 MiB blocks" and ran without huge pages), and a THP gate for vanilla arms (baseline-thpcheck.py: AnonHugePages >= 46.4 GiB, else the run is moved to _poor/ and the cycle repeated once). Holder-load timeout 90 min. No sysfs, readahead or other setting changed; the only privileged call was sudo -n systemctl reboot (and read-only sudo -n dmesg). Ours = dt/bin-main-ffd9322 (code of main d29e3dba2), PCIe 0.45 pinned.
All 9 runs VALID on the first attempt; no run was repeated, no poor state occurred. Every boot: ssh back in 255-257 s, rescue sshd :2222 up, /dev/watchdog0, hung_task_panic=1, swap off, no NVMe error lines in dmesg. Cycles took 23-55 min (the cold holder load of the 55 GB KAR file, 10-39 min, dominates). After eviction every cycle showed MemFree 68.0-68.3 GiB, Cached 52.0-52.2 GiB (the holder's 51.5 GiB memfd), free 2 MiB+ blocks 54.0-55.3 GiB (_cycles/series.log).
| run (block, position) | boot age at start | tok/s T1..T5 | all-turn | tok/round | ms/round | AnonHugePages GiB | THP fallback pages | note |
|---|---|---|---|---|---|---|---|---|
| b01p1 ours | 0.8 h | 159.8 151.4 173.9 153.9 144.2 | 156.6 | 2.11 | 13.44 | 0 | 0 | |
| b01p2 v1 | 0.3 h | 142.8 136.7 129.4 131.2 162.8 | 140.6 | 2.00 | 14.29 | 46.5 | 158 | |
| b01p3 v2 | 0.5 h | 127.3 137.2 132.8 120.0 132.1 | 129.9 | 1.95 | 15.05 | 46.7 | 77 | pcie_frac retuned 0.35 -> 0.30 mid-run |
| b02p1 v2 | 0.3 h | 176.5 174.5 174.1 153.7 177.0 | 171.2 | 1.94 | 11.38 | 46.7 | 66 | engine ready in 76 s (others 102-132 s) |
| b02p2 v1 | 0.8 h | 139.7 122.3 135.6 132.2 123.0 | 130.6 | 1.92 | 14.68 | 46.6 | 105 | |
| b02p3 ours | 0.8 h | 158.5 155.2 149.5 153.2 146.6 | 152.6 | 2.07 | 13.54 | 0 | 0 | |
| b03p1 v1 | 0.8 h | 143.9 146.1 135.1 126.5 147.7 | 139.9 | 1.95 | 13.92 | 46.7 | 65 | |
| b03p2 v2 | 0.4 h | 136.9 117.6 139.7 133.9 137.4 | 133.1 | 1.92 | 14.41 | 46.7 | 66 | |
| b03p3 ours | 0.3 h | 159.7 151.3 173.7 151.1 149.1 | 157.0 | 2.15 | 13.72 | 0 | 0 |
THP per vanilla run: 46.5, 46.7, 46.7, 46.6, 46.7, 46.7 GiB of the 46.8 GiB arena, fallback 65-158 pages (the engine log says "transparent huge pages requested (MADV_HUGEPAGE)" in all six). Fresh-boot vanilla with the page cache evicted is in its good state every time, so the 130-171 tok/s spread below is not the huge-page coverage of section 5.
| arm | n | all-turn tok/s mean (sd) | min..max | tokens/round | ms/round (sd) |
|---|---|---|---|---|---|
| ours | 3 | 155.4 (2.4) | 152.6..157.0 | 2.11 | 13.57 (0.14) |
| v1 | 3 | 137.0 (5.6) | 130.6..140.6 | 1.95 | 14.30 (0.38) |
| v2 | 3 | 144.7 (23.0) | 129.9..171.2 | 1.94 | 13.61 (1.96) |
Block-paired differences (same block, a - b):
| pair | block 1 | block 2 | block 3 | mean | blocks a faster | ms/round | tok/round |
|---|---|---|---|---|---|---|---|
| ours - v1 | +16.1 | +22.0 | +17.1 | +18.4 tok/s (+13.5 %), se 1.8 | 3 of 3 | -0.73 | +0.15 |
| ours - v2 | +26.8 | -18.6 | +23.9 | +10.7 tok/s (+9.2 %), se 14.6 | 2 of 3 | -0.04 | +0.17 |
| v1 - v2 | +10.7 | -40.6 | +6.8 | -7.7 tok/s (-3.5 %), se 16.5 | 2 of 3 | +0.68 | +0.02 |
Reading (n=3 blocks, intervals wide):
- Ours is ahead of vanilla in vanilla's good state, with one exception. Against v1 in 3 of 3 blocks (+13.5 %, tight: se 1.8). Against v2 in 2 of 3 blocks; in block 2 vanilla v2 ran 171.2 tok/s (11.38 ms/round) and ours 152.6, ours 10.8 % behind. Ours itself did not move (152.6-157.0, sd 2.4; 155.6 at 42 h uptime in part d, 143.4 on the older main of parts a-b).
- Vanilla has two speeds that nothing recorded separates. v2 b02p1 (171.2, ready in 76 s, boot age 0.3 h, full huge pages, free 2 MiB blocks 55.0 GiB, PCIe probe 49.4 GB/s) and the other five (130-141) have the same huge-page coverage, memory state, CPU clocks (5.49-5.53 GHz busy cores) and PCIe probe (46.4-50.7 GB/s). The pooled record has the same shape: 5 of 34 earlier vanilla runs were above 160 tok/s. I cannot say what puts vanilla into its fast mode; a fresh boot does not (5 of 6 fresh-boot vanilla runs were slow).
- v1 against v2 is noise again (-3.5 %, signs split), as in part a.
- Fresh-boot vanilla is slower on average (140.9, n=6, sd 15.5) than the 146.9 of the good-THP class pooled over uptimes 30-43 h in section 1 (n=14): within the noise of both.
What the series does not show: whether eviction itself changes vanilla (the pre-eviction state was measured only once, 130.6 tok/s with 0 huge pages, section 9). Statements about the earlier poor-state class (section 5) rest on that one fresh-boot run plus the predecessor analysis of parts a-d.