907. hackbench is packaged in basalt, and its test installs it with jig
(Minted 2026-10-12 (UTC) by lane maintainer/foreign-programs-via-jig, under §297 (software
reaches a nife system as a package jig installs from basalt's index, the kernel included). The
number is provisional until the merge queue lands it; 905 was held by #2022 and 906 by this lane's
ioping block when this was written. The title and slug are drafts.)
BUILT, 2026-10-17 (UTC). basalt builds hackbench from a recipe that pins hackbench.c by
SHA-256 and publishes one package per architecture. nife builds no hackbench. On all three
architectures under QEMU, swish-check types jig install hackbench against basalt's package and
runs the installed program's thread mode, and the kernel suite runs both of c_thread_tests'
hackbench runs on the same bytes. The recipe pins each architecture's package digest, as milestone
917 built. "Built" below has the rest.
calef, 2026-10-12 (UTC): "They should all be installed via jig through basalt. I missed that for
our benchmarking tools, so I created debt by prioritizing them first." This is that debt for
hackbench, on the pattern of milestone 810 (ripgrep is packaged in basalt and installed with
jig) and milestone 897 (SQLite is packaged in basalt, and its tests run in basalt's package
build).
What existed, checked 2026-10-12 (UTC)
Nothing on main yet. hackbench's helper arrives with #2009, milestone 836 (a C library, stage 2:
threads), which was open and unmerged when this was written. On that branch:
helpers/build-hackbench.shfetches rt-tests 2.11'ssrc/hackbench/hackbench.cfrom thev2.11tag on kernel.org, pinned by SHA-256, and compiles it unmodified for the three targets intotarget/hackbench/<triple>/hackbench, with rt-tests' own flags and one warning disabled.system_tests/src/user/c_thread_tests.rsruns it, and skips when the helper has not run.
Milestone 827 (hackbench on nife and Linux, as a scheduler benchmark and a multicore soak) runs the same program on silicon, and from 2026-10-12 its exit needs the package this milestone builds.
The work
- A recipe in
nifeos/basaltnaming rt-tests 2.11'shackbench.c, its source URL and the SHA-256 the helper pins. The build refuses a download that does not match. - basalt's package build turns the helper into a build job at the nife commit
pins.tomlnames. It links against that commit's C library with threads, once for each architecture (§19 (architectural parity is a tenet; the targets are aarch64, riscv64, and x86_64)). - The manifest note, written by basalt's build through the writer milestone 810 builds.
- The package, vouched for and published as item 4 of milestone 906 states.
- The test moves behind
jig install hackbench:c_thread_tests.rsinstalls the package before it runs the program, or the test moves into basalt's package build as milestone 897 moves SQLite's. - When the package is the only source,
helpers/build-hackbench.shand the archive's packing oftarget/hackbench/leave this tree.
Built 2026-10-14 (UTC)
Lane milestone/907-hackbench-is-packaged-in-basalt, with nifeos/basalt#21.
- The recipe is basalt's
recipes/hackbench.toml:hackbench.cand rt-tests'COPYINGatv2.11, each pinned by SHA-256, the source's being the helper's. It isGPL-2.0-or-later, so basalt's source archive is the source offer. The flags are the helper's (item 1). - The build is milestone 906 (ioping is packaged in basalt)'s C recipe shape, unchanged but for
two things kernel.org needed. A source names the
fileit is saved as, since cgit puts the tag in a query (?h=v2.11). And the fetch sends a named User-Agent, since kernel.org answers Python's default with 403 (items 2 to 4). The aarch64 package measured 278,523 bytes. The first published Release isrolling-2026-10-14-80d9b38, andxtask/basalt-pinnames a basalt commit whose recipe records its digests. - Item 5's finding: both, as for ioping.
cargo xtask basalt-fetchtakes the three hackbench lines from the recipextask/basalt-pinnames, and the archive carries the package'sbin/hackbench.unmodified_hackbench_threads_over_pipesand..._over_socket_pairsrun it with every assertion unchanged. CI'srg-threadsrows boot the suite filtered tounmodified_withNIFE_HACKBENCH_REQUIRED=1, which covers ioping's test in the same boot. script/swish-checktypesjig install hackbenchandhackbench -T -p -g 1 -f 2 -l 10: one group of two senders and two receivers, whose stacks fit an unvouchedstdprogram's heap.helpers/build-hackbench.shandtarget/hackbench/left the tree (item 6).- Documentation, for the later step that installs it: upstream ships a man page,
src/hackbench/hackbench.8, at the samev2.11tag. The package does not carry it.
Exit
On aarch64, riscv64 and x86_64: a nife at basalt's pinned commit runs jig install hackbench
against basalt's index, the archive's digest matches the recipe, and the installed hackbench
passes the run c_thread_tests.rs makes of the helper-built one. A recipe whose checksum disagrees
with the download fails basalt's build.
Reuse: the helper's pinned fetch and flags and milestone 810's recipe, build job and publishing, moved rather than rewritten.
The package's digest, checked 2026-10-19 (UTC)
- basalt's
recipes/hackbench.tomlcarries a[package_digest]table, one SHA-256 for each of aarch64, riscv64 and x86_64, recorded by milestone 917 (basalt's packages build reproducibly) in nifeos/basalt#29. basalt's pin-bump rewrites it with each new pin. - basalt's build holds a package to that digest, as milestone 917 states.
- The three digests equal the pinned Release's assets, checked as for SQLite in
milestone 897.
cargo xtask basalt-fetchaccepts each package only under them, throughpackage_index::accept, andjig install hackbenchchecks the index line built from them.
BUGS
- At the prompt the run is smaller than the kernel suite's: an unvouched
stdprogram gets 256 pages of heap, and each of hackbench's threads asks for a 64 KiB stack. Milestone 827's silicon runs need its recipe to vouch for a larger heap (§195), or a smaller run per process. - A nife change the pinned hackbench cannot run on cannot pass CI on its own, as for
rg.
Follow-on
- Done. The digest in the recipe: milestone 917.
- Recorded. The prompt's heap limit on hackbench's threads, in this block's
BUGS, for milestone 827. - Done. Milestone 897 (SQLite is packaged in basalt) builds on the same C recipe shape, which unpacks its amalgamation's zip.
- Recorded. The man page
hackbench.8waits onjiginstalling documentation, noted in "Built" above.
Index row
hackbench built by basalt from a pinned source and installed on nife by jig, so the scheduler
benchmark milestone 827 runs is a package and not a helper-built binary.