Files
LithosAnanake/experiments/bare_metal/runs/doe-riscv64-20260912-174936.csv
T
Robert Allan JamesandClaude Sonnet 5 71bcb72a59
Build / build-amd64-iso (push) Waiting to run
Build / build-aarch64-iso (push) Waiting to run
Build / build-riscv64-img (push) Waiting to run
Fix O(N) idle-loop messaging pump; full 3x9x3 turn-attractor campaign clean on all 3 architectures (FABRIC-3.md §XXII)
sk_repl_idle()'s messaging pump (repl.c) walked the entire live-VM
registry every idle beat (~1Hz) and dispatched a full VM-EXEC
"MSG-TICK" -- a dictionary lookup plus a 32-slot arena scan -- into
every live VM, every tick, unconditionally, forever. Fine at Tripod's
original 3-VM scale; a full 9-identity turn-attractor campaign
exposed it as a genuine wall on riscv64 specifically (its TCG makes
each dispatch cost more): the same campaign that completed in 194s/
339s on amd64/aarch64 never finished on riscv64 at 9 VMs across three
attempts, while 8 VMs there was fine in 159s.

Ruled out capacity explanations before touching anything: bumping
riscv64's QEMU RAM 1024->4096 changed nothing (reverted), and a live
STADIUM-RES@/MSG-STATUS probe with all 9 VMs attached showed no
depletion. Host memory pressure was also ruled out directly (one
background task did get OOM-killed once during the investigation,
but the identical stall reproduced again with 9.2GB free). The real
mistake was three premature kills under 4 minutes with no way to
tell "slow" from "stuck" from outside the guest -- fixed by having
run_doe_batch.sh sample the qemu process's own /proc/<pid>/stat utime
every 60s; with that signal, riscv64 at 9 VMs was unambiguously alive
(climbing utime, no hang), just disproportionately slow going from 8
VMs (159s) to 9 (600s+ and climbing).

This was never really a riscv64-only bug: an O(N) per-second walk
over the full VM population doesn't scale to the hundreds of VMs this
fleet is headed toward, on any architecture -- riscv64 just made it
visible first, at N=9, because its per-dispatch cost is highest.

Fixed by round-robin batching: the pump now dispatches to at most
SK_MSG_PUMP_BATCH (4) live VMs per idle beat via a persistent cursor
that resumes where the previous beat left off, instead of all of them
every time. Bounds both the scan and dispatch cost to O(K) regardless
of total VM count; any single VM's queue now drains roughly every
ceil(N/K) beats instead of every beat, still bounded and still
matching the pump's own existing best-effort contract. No new C
primitives, no messaging/Stadium changes.

Verified: clean build on all 3 architectures, then the full 3x9x3
campaign re-run on all 3 (not just riscv64) per the standing rule
that a defect repair requires a clean re-run everywhere before
anything counts as closed:

  amd64   198s  0 faults  99/99 tokens x8  656/656 K-conserved
  aarch64 339s  0 faults  99/99 tokens x8  659/659 K-conserved
  riscv64 178s  0 faults  99/99 tokens x8  659/659 K-conserved

riscv64 went from "never completes" to faster than aarch64, same
campaign, same seed, same identity set. No regression on amd64/
aarch64.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EXieurDfDSsDFdnSyusuWo
2026-09-12 19:29:14 -04:00

8.8 KiB

1tick_numberelapsed_nstick_interval_nscache_hits_deltabucket_hits_deltaword_executions_deltahot_word_countavg_word_heat_q48window_widthactual_window_sizepredicted_label_hitsjitter_bitsapic_tickstime_trust_q48variance_q48vm_call_depth_maxhera_heat_q48hermes_heat_q48artemis_heat_q48fleet_k_q48fleet_conserved
2436436000010000002568563251251200342565536016250615031527655361
343743700001000000256866211024102400342765536016250615031527655361
443843800001000000256886061024102400343165536016250615031527655361
543943900001000000256895852048204800343265536016250615031527655361
644044000001000000256905762048204800343465536016250615031527655361
744144100001000000256905714096409600343565536016250615031527655361
844244200001000000256905664096409600343665536016250615031527655361
944344300001000000256905644096409600343765536016250615031527655361
1044444400001000000256905594096409600343865536016250615031527655361
1144544500001000000256905542048204800343965536016250615031527655361
1244644600001000000256905462048204800344065536016250615031527655361
1344744700001000000256915472048204800344265536016250615031527655361
1444844800001000000256915481024102400344365536016250615031527655361
1544944900001000000256915501024102400344565536016250615031527655361
16450450000010000002569155151251200344765536016250615031527655361
17451451000010000002569155251251200344865536016250615031527655361
18452452000010000002569255425625600344965536016250615031527655361
19453453000010000002569255525625600345065536016250615031527655361
20454454000010000002569355725625600345165536016250615031527655361
21455455000010000002569452525625600345265536016250615031527655361
22456456000010000002569652725625600345365536016250615031527655361
234574570000100000025610452825625600345465536016250615031527655361
244584580000100000025610452925625600345665536016250615031527655361
254594590000100000025610453125625600345765536016250615031527655361
264604600000100000025610453225625600345865536016250615031527655361
274614610000100000025610453325625600345865536016250615031527655361
284624620000100000025610453525625600345965536016250615031527655361
294634630000100000025610452825625600346065536016250615031527655361
304644640000100000025610449725625600346165536016250615031527655361
314654650000100000025610447925625600346265536016250615031527655361
324664660000100000025610446725625600346665536016250615031527655361
334674670000100000025610446825625600346765536016250615031527655361
344684680000100000025610446925625600346865536016250615031527655361
354694690000100000025610447125625600346965536016250615031527655361
364704700000100000025610447225625600347065536016250615031527655361
374714710000100000025610447325625600347165536016250615031527655361
384724720000100000025610447025625600347265536016250615031527655361
394734730000100000025610447125625600347365536016250615031527655361
404744740000100000025610447225625600347465536016250615031527655361
414754750000100000025610447325625600347665536016250615031527655361
424764760000100000025610447425625600347765536016250615031527655361
434774770000100000025610447625625600347865536016250615031527655361
444784780000100000025610447725625600347965536016250615031527655361
454794790000100000025610447825625600347965536016250615031527655361
464804800000100000025610947925625600348165536016250615031527655361
474814810000100000025610948025625600348265536016250615031527655361
484824820000100000025610948125625600348365536016250615031527655361
494834830000100000025610948325625600348565536016250615031527655361
504844840000100000025610948425625600348665536016250615031527655361
514854850000100000025610948525625600348865536016250615031527655361
524864860000100000025610948625625600348965536016250615031527655361
534874870000100000025610948725625600349065536016250615031527655361
544884880000100000025610948925625600349165536016250615031527655361
554894890000100000025611149025625600349265536016250615031527655361
5613313300001844674407370599161600329173836725625604895412794951727409349565536006250615031527655361
5749049000003570000008373111149125625604704899453134307328349765536016250615031527655361
584914910000100000025611149225625600349965536016250615031527655361
594924920000100000025611149325625600350065536016250615031527655361
604934930000100000025611149425625600350165536016250615031527655361
614944940000100000025611149625625600350265536016250615031527655361
624954950000100000025611149725625600350265536016250615031527655361
634964960000100000025611149825625600350465536016250615031527655361
644974970000100000025611149925625600350465536016250615031527655361
654984980000100000025611150025625600350665536016250615031527655361
664994990000100000025611150125625600350765536016250615031527655361
675005000000100000025611150325625600350865536016250615031527655361
685015010000100000025611150425625600350965536016250615031527655361
695025020000100000025611150525625600351165536016250615031527655361
705035030000100000025611150625625600351265536016250615031527655361
715045040000100000025611550725625600351365536016250615031527655361
725055050000100000025611650825625600351565536016250615031527655361
735065060000100000025611751025625600351665536016250615031527655361
745075070000100000025611751125625600351865536016250615031527655361
755085080000100000025611751225625600351965536016250615031527655361
765095090000100000025611751325625600352065536016250615031527655361
775105100000100000025611751425625600352265536016250615031527655361
785115110000100000025611751625625600352365536016250615031527655361
795125120000100000025611751725625600352465536016250615031527655361
805135130000100000025611751825625600352565536016250615031527655361
815145140000100000025611751925625600352665536016250615031527655361
825155150000100000025611752025625600352765536016250615031527655361
835165160000100000025611752125625600352865536016250615031527655361
845175170000100000025611752325625600352965536016250615031527655361
855185180000100000025611752425625600353065536016250615031527655361
865195190000100000025611752525625600353465536016250615031527655361
875205200000100000025611752625625600353765536016250615031527655361
885215210000100000025611752725625600353865536016250615031527655361
895225220000100000025611752825625600353865536016250615031527655361
905235230000100000025611753025625600354065536016250615031527655361
915245240000100000025611753125625600354165536016250615031527655361
925255250000100000025611753225625600354265536016250615031527655361
935265260000100000025611853325625600354365536016250615031527655361
945275270000100000025611853425625600354465536016250615031527655361
955285280000100000025611853525625600354565536016250615031527655361
965295290000100000025611853725625600354665536016250615031527655361
975305300000100000025611853825625600354765536016250615031527655361
985315310000100000025611853925625600354765536016250615031527655361
995325320000100000025611854025625600354965536016250615031527655361
1005335330000100000025612054125625600355065536016250615031527655361