25. Cross-OS performance comparison (extends 21)
Everything but sel4bench is done, and sel4bench times single
operations through a PMU cycle counter that neither QEMU-TCG nor HVF provides. The hardware is no
longer 16a's board: milestone 127 bought the machine under the only published aarch64 seL4 numbers
(a sealed TX1 kit, 2026-08-15, arriving ~08-19 to -26). So this gate now counts down in shipping
days rather than waiting on a decision. Milestone 74 is the driver that reads that counter, and 74's block states the
dependency this one does not.
In brief. EL0-measured primitive benchmarks (system call, context switch, IPC, map, spawn) the lmbench
way, so the numbers include the trap the kernel-side benchmarks skip. Then line them up against
lmbench (Linux, macOS guests) and sel4bench (seL4), at a matched virtualization tier, with release
builds. Fold in the icount codegen-sensitivity fix.
Why it matters. turns perf claims into cross-OS numbers: where does a Rust capability microkernel
stand next to Linux, macOS's XNU, and seL4 on the primitives that define an OS. Largely done: four
EL0 primitives (null system call, context switch, IPC, page map) on both instruments, and a release
build path. Also the three-way comparison (nife vs Linux-under-HVF vs native macOS) with nife
winning null/IPC ~5x. spawn landed too. Its real prerequisite was never retype, which had already
shipped, but object revocation: reclaiming a child's TCB/aspace/endpoint so a spawn loop can repeat.
That shipped as its own milestone (notes/object-revocation.md). The EL0 lat_proc bench,
spawn_el0, is in the suite and the committed baseline. Remaining: only sel4bench. It is built
and booting for qemu-arm-virt, but it times single ops via the PMU cycle counter, which neither
QEMU-TCG nor Apple HVF provides. So it is deferred to real hardware, the milestone-16 machine,
which has a real PMU. (This validates our CNTVCT + long-loop design). notes/benchmarks.md
This milestone's own suite is entirely single-operation primitives, the same shape DECISIONS §96 means by "micro-benchmark." Milestone 168 was minted from §96's own text noting this milestone "has the same hole": a real multi-tasking workload, which is what would actually reveal a process-kernel-vs-event-kernel difference. Not this milestone's own scope, recorded here so the gap has one home rather than two.
Follow-on
- Outstanding.
sel4benchitself, the only piece of this block not done. It builds and boots forqemu-arm-virtbut times single operations through the PMU cycle counter, which neither QEMU-TCG nor HVF provides, so it has never produced a number, and nothing inbench/orxtaskruns it. - Outstanding. The hardware half of this block's gate. argon, the Jetson TX1
(
design/roadmap/0127-the-sel4-machine.md), is not in hand. It has no delivery date (notes/bench-runbook.md). - Done. Folding in the icount codegen-sensitivity fix.
--checkis a coarse 10% tripwire rather than a 2% gate, stated innotes/benchmarks.mdand carried in the baseline headers underbench/. - Outstanding. Milestone 74, the driver that reads
PMCCNTR_EL0and the SBI PMU, is still NOT-STARTED, and it is what a realsel4benchcomparison needs on our side of the table. Checked 2026-09-03 against its block. - Done. The authority question underneath 74's aarch64 half is answered and built.
design/decisions/0139-cycle-counter-authority.mdis DECIDED (calef, 2026-09-02) and milestone 229 shipped the per-thread grant the same day:kernel/src/arch/aarch64/timer.rsopens and closesPMUSERENR_EL0.CRon the context switch. - Outstanding. What argon's firmware left in
PMCCFILTR_EL0decides whether nife runs twice. calef ruled on 2026-10-07 (UTC) that nife writes0on every aarch64 board, counting EL0 and EL1 (milestone 353 (the aarch64 half of 74)). seL4's published TX1 figures never write the register, so they counted whatever firmware left, and argon's boot line prints it (firmware left PMCCFILTR_EL0 0x...). If that value hasP(bit 31) set, seL4's numbers exclude its kernel, and this milestone runs nife a second time with the filter matched to seL4's and labels that run as matched to seL4's filter, beside the policy run. Not yet checked: argon has not booted. - Milestone 168. The multi-tasking workload this block's own suite cannot supply, minted from DECISIONS §96's text so the gap has one home.
Index row
turns perf claims into cross-OS numbers