roadmap NOT-STARTED

833. The same storage benchmark on nife and Linux, by porting real fio

(The title and slug are provisional.)

It follows from fatal risk 6's GREEN verdict (design/fatal-risks/6-a-confined-driver-is-too-slow.md) and milestone 261 (the NVMe driver leaves the kernel). calef, 2026-10-07 (UTC): "Of course we should port fio. That makes perfect sense."

In brief. Port real fio to nife and run the same binary and the same job file on both systems. Risk 6 went GREEN on one pair of numbers: nife's confined driver at 4 KiB, queue depth 1, against a Linux fio run photographed the same evening. The nife read was 2.16x Linux's, which nobody can explain, and the figures were hand-transcribed. The port serves two risks at once: risk 6 (a comparison nobody has to take on trust) and risk 1 (only software written for nife runs on nife), because a real third-party program would then run on nife.

What it builds

What the port needs from nife, to be discovered

These are questions the port answers, not assumptions. Each is a dependency found by trying.

Answered in part on 2026-10-12 (UTC) by compiling fio 3.40 against the C library without linking it: notes/fio-on-nife.md has the list. fio needs no C thread-locals, since its configure falls back to pthread_getspecific, which costs nife one key lookup per timestamp that Linux does not pay. On the benchmark's path it needs sys/resource.h, libgen.h, select, two header fixes and an os/os-nife.h; the rest can stay stubs with thread=1 and --disable-shm. The C library side was built the same day by lane lane/fio-c-library-pieces: every piece on that list, with the off-path calls refusing honestly rather than missing, checked by fixtures/c/c_library_contract.c on all three architectures.

What it must answer

Why the 2026-10-04 read was 2.16x Linux's (272 MB/s against 126 MB/s) when polled Linux reads were no faster than interrupt-driven ones. Either nife's number is wrong, which the histogram will show, or the gap is real and has a cause worth knowing. Queue depths 4 and 32 are where the comparison stops being one command in flight and "real speed" can be claimed beyond depth 1.

Reuse: fio itself is taken, ported rather than rewritten, and spdk_nvme_perf is taken as is for the Linux side. No nife-side benchmark program is written, so there is no shim to keep.

What it waits on

The C library, milestone 835 (a C library, stage 1), is built. This program's other needs are below.

Threads. fio times its jobs with its own threads even when jobs are processes. Threads are milestone 812 (std::thread::spawn runs real threads), built. Milestone 834 (ioping) answers risk 6's read gap at queue depth 1 without threads.

Done when

§297 (a package jig installs) binds this. calef, 2026-10-12 (UTC): "They should all be installed via jig through basalt."

fio must run on nife installed by jig install from basalt's package index. basalt builds the package against the nife commit it pins. The install waits on milestones 809 and 801, as §297 (a package jig installs) lists. The rest of the port does not start until those milestones land (calef, 2026-10-12 UTC: "For our other programs let's block start on packaging. That was the point but if we are done with fio let's not throw out the work."). The C library work already done for fio stays: the needs #2038 recorded and the pieces #2040 built (getrusage, basename, select, O_SYNC and a stdlib.h fix).

Index row

Real fio, one job file on nife and Linux, queue depths 1, 4 and 32 with per-I/O histograms, so risk 6's read gap is explained or corrected. Waits on a C library and threads.