roadmap NOT-STARTED

148. A noise bound, not a noise measurement

Minted 2026-08-21 by calef, from the same HPC-differentiation question as milestone 147. Every HPC center already measures operating-system noise with FTQ/FWQ-style microbenchmarks (Fixed Time Quantum / Fixed Work Quantum: sample how much work a tight loop completes per fixed interval, and read the jitter in the histogram). None of the general-purpose kernels those benchmarks run against can turn a good histogram into a proof, because their scheduler and interrupt paths are not verified and their source of possible preemption is not exhaustively enumerable by a reader.

The first increment needs nothing that does not exist: milestone 51's clock service is enough to port FTQ today, on both boards, with no PMU and no new kernel surface. The bound argument that follows the measurement is where this milestone earns its number, and it needs no decision to start either: it needs the kernel's own preemption sources enumerated, which is reading code that is already written.

In brief. OS noise is the interference a running compute thread experiences from anything other than its own instructions. It is timer ticks, interrupt delivery, other threads, softirq-shaped kernel work. At HPC scale it is not a curiosity: Petrini et al.'s ASCI Q study showed noise amplifying across a barrier-synchronized job of thousands of nodes into slowdowns wildly disproportionate to the noise's own size on one node. That is why lightweight kernels (IBM's CNK, Cray's CNL) exist as a category. Every tool that quantifies it today (Netgauge's FTQ port, LLNL's system-noise FWQ suite, the Linux osnoise tracer). Each reports what happened on one run, at whatever confidence a histogram carries. This milestone's claim is different in kind. Enumerate every kernel-side event that can ever preempt a running thread, and bound each one's worst-case cost, the way milestone 132's fastpath-footprint gate already turned "the IPC path is fast" from a benchmark into an enumerated, gated call-graph walk.

Context, not evidence: Brown, "RISC-V for High Performance Computing" (CUG '25, ACM 3757348.3757367) is the source calef read. It raised the HPC-differentiation question behind both this milestone and 147. It does not measure OS noise (its performance-tooling gap is about hardware counters and profilers, milestone 147's territory, not about scheduler/interrupt jitter), so it is cited here only for the board it happens to already report real numbers on. The VisionFive V2's JH7110, the same board calef has wired to his bench for milestone 16a, appears in the paper's Table 2 (NPB Class B, Mop/s) alongside the SG2042, VisionFive V1, SiFive U740 and others. That table is a useful sanity check for milestone 149's NPB comparison, not for this milestone's noise claim; the paper is silent on OS noise entirely. That is worth stating plainly so this milestone's citation of it does not overclaim support it does not offer.

Two phases, and the first needs no decision

Phase A: measure, and compare (buildable today)

Phase B: enumerate, and bound (the differentiator)

A histogram is a claim about one run; an enumeration is a claim about every run. Phase B is walking the kernel's own preemption sources and pricing each one. It is possible here specifically because the kernel is small enough to read completely (the same property that makes milestone 132's call-graph walk and milestone 84's stack high-water mark tractable at all):

Why this is the differentiator and not just a second benchmark

CrayPat, VTune and Forge all report what a profiled run showed. The HPC noise literature already treats that as insufficient for the barrier-synchronization case precisely because noise on one node is not linear in its effect at scale (Petrini's finding), so a center wants a guarantee, not a sample. No general-purpose kernel offers one. None is verified and none is small enough for a human to enumerate its own preemption sources with confidence. nife's verification path (Kani over the capability core, loom over the concurrency-sensitive paths, the fastpath-footprint gate's call-graph method) is not a testing convenience here: it is the mechanism that makes Phase B's "and no others exist" a checkable claim rather than an assertion. That is the sentence to put next to the histogram. It is the sentence a lightweight-kernel HPC customer has never been able to get from Cray, Intel, or Linaro's tools. Those tools profile a kernel none of them verify.

What each phase needs to answer

What this does not decide

BUGS

Index row

Every HPC center already runs FTQ/FWQ noise benchmarks and reads a histogram. None of their kernels are small or verified enough to turn "the noise was low on this run" into "here are all N sources of preemption and their worst-case cost, enumerated." Phase A ports FTQ against milestone 51's clock, no PMU needed, and compares against Linux on the same board. Phase B walks every interrupt source (timer, IPC, milestone 108's confined drivers) with the fastpath-footprint gate's static-analysis method and publishes a bound a reader can check rather than a sample they have to trust.