roadmap NOT-STARTED

827. hackbench on nife and Linux, as a scheduler benchmark and a multicore soak

(The title and slug are provisional.)

Model: milestone 833 (the same storage benchmark on nife and Linux, by porting real fio).

In brief. Port hackbench (rt-tests; about 700 lines of C) and run it on the boards, once as a benchmark and again as a long soak. Groups of sender and receiver tasks pass small messages over sockets or pipes, so every message is a cross-task, often cross-core, handoff.

What it measures

Wall time for G groups of 20 senders and 20 receivers to exchange N messages. It stresses the scheduler, wakeups, IPC and cross-core migration together, with no useful compute.

Which fatal risks it informs

Risk 4 (the per-crossing cost): total time over message count is a cost per handoff that is comparable across OSes. Risk 5 (5-not-reliable-on-multicore.md): the load is thousands of tasks with constant cross-core wakeups, which is the shape that exposes lost wakeups and races. Run for hours it is a second soak workload beside milestone 225 (run the soak on radon, argon and xenon). A hang or corrupted message count is a defect found, not a number.

What nife must supply, as questions

The Linux comparison

The same hackbench revision, pinned by rt-tests tag, same group count, loops, message size and mode, same board, with the Linux kernel version and scheduler (EEVDF or CFS) recorded. Three runs, median and spread; core count fixed with --smp or taskset identically on both.

Reuse: hackbench is taken, ported and not rewritten.

What it waits on

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

Threads or fork. hackbench's thread mode needs threads, and its process mode forks. Threads are milestone 812 (std::thread::spawn runs real threads), built. nife has no fork, so a fork row follows milestone 826 (an lmbench subset)'s rule.

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."

hackbench 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 907 (hackbench 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).

Index row

hackbench on the boards, as a cost per cross-task handoff and as a second multicore soak. Waits on a C library and on threads (milestone 812), since its other mode forks.