roadmap BUILT

219. The boot tour ends and the kernel halts, so there is nothing to soak

Built (2026-09-01). Minted the same day by the maintainer, after radon booted under script control and the gap became obvious: everything needed for a sustained run exists except a workload that lasts. (Number provisional until the merge queue lands it.)

It needed no board to build and no board to test (this block carried Gate: NONE, now removed because a finished milestone gates nothing). QEMU runs it; a board is only where the answer becomes interesting, and no board has run it yet.

In brief. design/fatal-risks/README.md risk 5 (it cannot be made reliable on multicore, and the bugs appear only on silicon) names its decisive experiment as sustained multi-core stress on the boards with the load-sensitive assertions live. At the time this milestone was minted (2026-09-01) the risk was believed to have already fired once, on radon, with a receiver woken and nothing delivered on three harts, found in a bench session rather than by any test. That reading is retracted (notes/visionfive2.md's fifth bench stop, 2026-08-15, before this milestone was minted): the dumps were the terminal state of a completed boot tour, not a stranded receiver, and notes/scheduler.md ("The undelivered-wake gate") records that the gate built against it "has never fired on a field failure." Found still repeating the retracted reading here 2026-09-23. The rest of this milestone (a workload that lasts, so there is something to soak at all) does not depend on the retracted finding and stands regardless.

Nothing in this tree could sustain anything. The kernel's boot tour ran its checks, printed nife: the capability core runs on RISC-V., and called halt(). Captured on radon on 2026-09-01, that is the last line, after which the board sits in wfi indefinitely. A soak needs a workload that keeps running, and there was not one.

That was the whole milestone: something that runs on every core, for hours, that fails loudly.

What was built

--features soak replaces the halt at the end of the boot tour with a pool of user-mode workers and a supervisor that watches them forever. notes/soak.md is the account; the pieces are kernel/src/soak.rs, fixtures/src/soaker.rs, crates/soak_page, script/soak, script/board-image --soak, and Stage::Soak in crates/serial_console.

It runs on all three architectures under QEMU and is the same workload that would run on radon, argon and xenon. script/soak --arch <a> boots it and judges it with the same recognizer and the same policy script/board-console points at a board, so the rehearsal and the experiment are one thing with different deadlines.

The four questions this block left open, answered with evidence

And a fifth question this block did not think to ask

A saturated workload does not migrate between cores under this scheduler. Measured across three topologies and both multicore architectures: the cross-core handoff count freezes within the first second and never moves again, while the machine does tens of thousands of round trips a second. Rendezvous wakes are local by design (DECISIONS ยง28.2), wake_load_aware is reachable only from a device interrupt, a work steal needs an idle core and a queued thread elsewhere, and nothing rebalances periodically.

So "sustained multi-core stress" is two experiments, and this milestone delivers one of them: concurrent contention on shared kernel state, at rate, on every core. It does not deliver cross-core handoff under load, which is where the observed defect lived. script/soak prints that gap on every run rather than leaving it to be discovered.

The instrument that found this was the second one. The first counted trace::Event::PlaceRemote, which is structurally blind to the migration a rendezvous performs, because the wake queues the peer on the waker's own core and so the placement is local even when the thread has moved. thread::Thread::last_cpu and trace::Event::Migrated answer the question at schedule()'s switch_in, which every path to a CPU passes through.

How a hang is distinguished from a slow run

The heartbeat is on the wall clock, not on the work. A machine doing one round trip a second still prints on time, with a rate that says so; a machine doing none still prints, and its stall check fires. Silence means the thing that prints is itself wedged, which is the only thing silence is allowed to mean.

crates/serial_console implements the other half rather than agreeing to it in prose. Stage::Soak is reached by the kernel's own soak: started line, and reaching it re-arms the quiet check that a completed boot tour suppresses: a halted kernel is supposed to be quiet and a soaking one is not. One word (< Stage::Tour became != Stage::Tour), asserted on a real QEMU capture cut off after its second heartbeat. The beat is five seconds against a fifteen-second default quiet window: three missed beats, exit status 2.

What would make it a real answer to risk 5

Running it on radon, argon and xenon, not just in QEMU, since the entire premise of the risk is that emulation cannot show these defects. notes/soak.md carries the bench procedure, step by step, including which flag builds the payload in the order the measured-boot gate requires.

None of the three has been run at a bench yet. That is the remaining half of this milestone and it needs a person, a board and an evening, not a lane.

Why the instrumentation is behind a feature

Built unconditionally, the instrumentation grows ipc_fastpath 5.7% on aarch64 (5,788 -> 6,120 bytes), over the 5% bound of milestone 132 (the fast path's footprint), with riscv64 and x86_64 at 4.7% and 4.6%, and script/fastpath-footprint refuses it. One cause with three effects; aarch64 was merely the one that tipped. The single largest contributor is the Thread::last_cpu write, which sits in schedule()'s switch, the hottest line of the hottest function, and the per-event counter increments are the rest.

So the counters, the accessors and the last_cpu field are #[cfg(feature = "soak")], and a production build is byte-identical without them: measured at 5,852 / 5,132 / 6,687, the same three numbers as the build with no instrumentation. The 5% bound was not touched, and it should not be: it is Liedtke's cache-footprint argument, which is the oldest performance case in microkernels and the reason the gate exists.

Two consequences worth stating rather than leaving to be found. A soak build is not a production build, its IPC path is five to six per cent larger, and the round-trip figures above are therefore soak-build figures; notes/soak.md carries the per-architecture table. And a cfg-gated instrument is invisible to clippy, so script/lint's per-feature loop includes soak on both ISAs, which on its first run found two real warnings in code nothing had ever linted.

BUGS

Handoff

Two proposed milestones, both of which this lane found and neither of which it should decide, because each is a scheduler-policy or system-call-surface question and those are an architect's:

Follow-on

Index row

--features soak replaces the halt at the end of the boot tour with user-mode IPC workers and a supervisor that beats every five seconds, on all three architectures. The workload is a user program and the detection is in the kernel, because the one defect risk 5 produced is causable from userspace and assertable only from inside. script/soak judges the QEMU run with the same recognizer script/board-console points at a board, and Stage::Soak re-arms the quiet check a completed tour suppresses, so a hang and a slow run are told apart by one rule both halves implement. First numbers: aarch64 ~58,000 round trips/s on four cores, riscv64 ~24,000, x86_64 ~3,900 on one. And a finding the block did not think to ask for: a saturated workload does not migrate between cores under this scheduler, measured across three topologies and both multicore architectures. The soak sustains contention on shared kernel state and cannot sustain cross-core handoff, which is where the observed defect lived. No board has been run yet.