fatal-risks

Appendix to risk 4: The architecture imposes a per-crossing cost that cannot be engineered away

An appendix to 4-the-per-crossing-cost.md (risk 4). That entry is the claim of record. This one holds the evidence behind the verdict, as the index describes. Where a study has its own home in notes/ this page links it rather than copying it. Name provisional (design/fatal-risks/ and this file's stem); naming is an architect's.

The claim, and calef named this one first

A capability microkernel pays on every boundary crossing, and on workloads that cross constantly the cost is architectural rather than a matter of tuning.

The verdict of record

The sweep ran on radon on 2026-10-04 (UTC), five boots, and matched step 7's first outcome in notes/job-mix.md. The risk 4 entry has the result and its caveats, and the evening's page has the numbers. The paragraph below is the 2026-09-23 state.

RUN, 2026-09-23. No verdict, and one bench evening stands between here and one. This is the best-covered risk on the list by volume of measurement and it still has no answer, because everything measured so far is a single crossing and the claim is about a cost that cannot be amortized. Amortization is a property of a workload. The instrument that produces a workload number is built, gated and rehearsed on three architectures, and no sweep from its current form has ever run on silicon.

What is measured, and it is a lot.

Why none of that is a verdict, stated once so it is not re-litigated. Every figure above is a single operation or a static size. Milestone 25 (cross-OS performance comparison)'s own block says its suite is entirely single-operation primitives, "the same shape DECISIONS §96 (process kernel or event kernel) means by micro-benchmark". And milestone 168 (a multi-tasking workload benchmark) exists because milestone 25 has that hole. A per-crossing cost a workload can absorb and one it cannot look identical in these numbers.

The shape has been measured once on silicon and is not quotable. Five radon boots on 2026-09-16: throughput rose to about four tasks and then plateaued through 32 without declining, on every boot, at 8x oversubscription, with tasks=1 repeating to 0.0% across five cold power cycles. That is the shape a defense of this risk wants. It does not get to be one, for two reasons milestone 168 records against itself. tasks=4 spread 29.4% between boots and 37.3% within one, so a best-of-three there is a coin flip rather than a number. And the mix contained no page mapping and no process creation, which are the two jobs that go deepest into the kernel. The instrument was rewritten on 2026-09-19 (every point the median of 21 repeats, map and spawn jobs added). And no sweep from it has run on a board. So every stability claim about the current instrument is a resampling of the old one's data.

The decisive experiment has not been run, and it is now a bench evening rather than a lane: milestone 168, one radon evening with the 2026-09-19 instrument, at least five boots, by notes/job-mix.md's procedure. Its step 7 wrote down what each outcome means before the numbers exist, which is what keeps the reading from being a defense afterwards. Flat or rising through 32 with every point inside 10% across boots reads as no architectural per-crossing cost visible at this scale on this silicon. a repeatable knee followed by a decline says a cost exists and grows with load, with the job-mix-kind: lines naming which path pays. Anything still wider than 10% is not a verdict and the spread gets recorded instead. Milestone 188 (the IPC fastpath) is the follow-on if the path that pays is round_trip.

A cheaper cross-check became available on 2026-09-19 and nobody has taken it. calef asked that day for the sweep under HVF on patagonia's own cores, as a cross-check on the shape and never as a result. QEMU refused it five times because kernel/src/drivers/gic.rs was GICv2 only. Milestone 227 (a GICv3 driver) turned BUILT the same day, and its own block records that script/job-mix --hvf was not yet on main when that lane ran, so the cross-check still has not happened although its blocker is gone. It costs no board.

What was refused here, because the refusals are half of what makes the rest readable.

What even a green answer would not cover, put here rather than after the run. Nothing in the mix touches a disk, which is milestone 493 (a disk-file job mix needs a disk)'s territory, so a flat curve is evidence about compute, memory, trap, scheduling, IPC, mapping and process creation, and silent about the filesystem. The mix proportions are chosen rather than derived from an AIM7 workfile, so no figure from it is quotable without naming the mix. And a flat curve on four usable harts says nothing about a machine with thirty-two.

The counter-thesis is published, and it is more specific than "microkernels are slow." Two papers argue that the per-crossing cost is avoidable by removing the crossing. The Case for Writing a Kernel in Rust (Levy, Campbell, Ghena, Pannuto, Dutta, Levis, APSys '17, DOI 10.1145/3124680.3124717) proposes to "entirely throw away hardware protection within the kernel and, instead, write the kernel in a memory-safe programming language". And RedLeaf (OSDI '20), which builds a whole system on that bet. If they are right, a capability crossing is a cost this project chose rather than inherited, and that is precisely what this risk says would be fatal.

Their own stated limits are the strongest thing in this entry's favor, and they are quoted rather than asserted. The 2017 paper evaluates Rust "in a single-threaded setting" on low-power uniprocessors. It leaves on-disk and in-hardware structures "e.g. the page table" to future work, and says of information-flow control that "it is not yet clear if such implementations would be sound." Their open problem is risk 5 below, this project's own hardest entry. Neither side gets to treat multicore as settled.

What this obliges when milestone 168's number arrives. It will be read against theirs by anyone who knows the literature. And a comparison is only honest if it says what differs. A language- isolated crossing trusts the compiler and the absence of unsafe in the isolated code, where a capability crossing trusts the hardware and a kernel small enough to prove things about. Those are different guarantees at different prices, and the number alone does not say which was bought. This entry carries the obligation; the reading of both papers is a lane's, and its note will be cited here once it lands rather than promised from here.

Ranked fourth on purpose

This is where a skeptic expects the project to die and it is where the project has the most evidence that it will not. That evidence is the wrong shape, which is this entry's whole finding: a great deal of it, all of it about one crossing at a time, and the claim is about many.