roadmap NOT-STARTED

834. ioping on nife and Linux, storage latency one request at a time

(The title and slug are provisional.)

calef, 2026-10-08 (UTC): "I'm leaning ioping now ... ioping beats SQLite to move our risks, but SQLite is way more useful."

In brief. Port unmodified ioping and run it on nife and on Linux on xenon, against the same files, with real logs, repeated passes and a latency for every request. It is the lightest standard storage benchmark there is: one process, one thread, one request in flight. So it can run before threads exist, which milestone 833 (real fio) cannot.

What it measures

ioping issues one I/O at a time, like ping, and prints the latency of each one, then the minimum, mean, maximum and deviation. With direct I/O it times the driver and the device rather than a cache. Request size, count and read or write are flags, so a run can match risk 6's first comparison: 4 KiB, queue depth 1, a fixed window on the Micron 2450.

Which fatal risks it informs

Risk 6 (a confined driver at real speed). calef put it back to amber on 2026-10-08 because nife's read was 2.16x Linux's and nobody can explain it. Those figures came from one pass per boot, transcribed from photographs. A latency per request, from logs on both systems, shows whether nife's reads are fast or Linux's are slow, and in which part of the distribution.

Risk 1 (only software written for nife runs on nife): a third-party C program running unmodified.

What nife must supply, as questions

The target and direct I/O on nife

calef ruled both on nifeos/nife#2371 (2026-10-18 UTC): "Yes, read-only at prompt" (21:36) and "Per-client window" (23:06).

The run at the prompt:

cd /disk/nvme0
ioping -D -c 1000 -i 0 -s 4k -S 64m -o 1m n1

Reuse: the disk tree is written. Nothing in the tree or in a dependency serves a raw block range over the file contract, and the server is a namespace of two names over file_system_contract::blk.

The names /disk, nvme0, n1 and disk_tree are provisional.

The Linux comparison

The same ioping release, pinned by tag. The same flags on both sides: direct I/O, 4 KiB, a fixed count, reads and then writes. The same disk and window as bench/xenon-2026-10-04/. Linux runs from the Fedora live USB used on 2026-10-04 or a pinned successor, and its kernel version, I/O scheduler and polling mode are recorded. Each system boots at least three times and runs at least five passes per boot. Every pass is reported, not only a median.

The logs are committed whole under bench/xenon-<date>/, as the program printed them. Nothing is transcribed by hand.

What it waits on

The C library, milestone 835 (a C library, stage 1), is built. ioping 1.3 runs unmodified on nife under QEMU on all three architectures. What remains is the comparison on xenon.

It needs nothing else that is missing. From memory, to be checked against the pinned source, ioping uses open, pread and pwrite, clock_gettime and getopt, with no threads and no fork. Of the benchmarks §262 lists, it asks the least of nife.

Reuse: ioping is taken unmodified; no nife-side benchmark program is written.

How it runs continuously

It runs continuously as milestone 826 (an lmbench subset on nife and Linux) does.

Done when

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

ioping 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 package itself is milestone 906 (ioping is packaged in basalt, and its test installs it with jig). No work toward that starts until those milestones land (the package manager holds the rule).

BUGS

Index row

The lightest standard storage benchmark, unmodified on nife and Linux on xenon with real logs and a latency per request, so risk 6's unexplained 2.16x read is explained or corrected before fio can run. Its C library is milestone 835, built.