becker.koeln/ai/burnin-stick
// bootable hardware burn-in · built with nix

BURN-IN//STICK

memtest passed for 40 hours. The board was still broken.
A USB stick that tests hardware the way Linux actually drives it: real kernel, real power management, sustained load, and deliberate load↔idle transitions.

00why this exists

  • 04:19A network daemon on a small home router segfaults on an address with exactly one flipped bit.
  • 05:51The monitoring daemon dies with SIGILL. The bytes on disk are fine.
  • 06:02Kernel Oops, invalid opcode, panic. The house is offline.
  • +1 dayRAM reseated, other power supply, latest BIOS. Same fault in early boot. memtest86+: 0 errors.
  • +9 daysThe CMOS battery reads 1.8 V on the multimeter. Swapped. The clock now survives a power cut. Is the board fixed?

Both faulty opcodes in the panic logs were off by the same bit:

0x0f → 0x4f
0x48 → 0x08

Bit 6, twice, and only under Linux. memtest86+ tests memory at a fixed clock. It never lets the cores drop into deep C-states, and it never ramps their frequency up and down thousands of times an hour. A box that fails only there passes it. That is exactly what happened here.

So this stick boots the newest kernel with microcode updates and keeps the board busy. Every cycle it also drops it into idle and pulls it out again, while every check verifies its own results.

01download

file
burnin-stick.iso
size
607 125 504 bytes (579 MiB)
base
NixOS 26.05.20261118.3457b69
nix store
/nix/store/fjax0c6add2pxs8gjapwq9nfq52bw06z-burnin-stick.iso
nixpkgs
3457b69ac4aba6d9ea9a743370af160fb502db29
source
github.com/devfbe/burnin-stick commit 5a811c9
arch
x86_64 · UEFI and legacy BIOS · hybrid ISO

sha256

e325be62aa11caa60e1097f3347808f7329f5cb468f078639c238a34dc11228c

sha512

a1e33add6ae376367dcca7f70b8b8bd93b05108ed9d236079487fa10fe64f8c4a0d35408d3763028fad79c7ca879b81c62ea2c1aad703410e39c6bbd0080408f

Plain-text sums: SHA256SUMS · SHA512SUMS

verify

# in the download directory
$ curl -O https://becker.koeln/ai/burnin-stick/SHA256SUMS
$ sha256sum -c SHA256SUMS
burnin-stick.iso: OK

write to a stick

$ lsblk                      # find the stick. double-check.
$ sudo dd if=burnin-stick.iso of=/dev/sdX \
       bs=4M conv=fsync status=progress

or build it yourself

$ nix build github:devfbe/burnin-stick
$ readlink result
/nix/store/fjax0c6add2pxs8gjapwq9nfq52bw06z-burnin-stick.iso

Boot it with no network cable. Leave it running for 24–48 h, and through at least one night.

02screens

Recorded in QEMU/OVMF from this ISO, with the phase durations shortened. A VM exposes no temperature, frequency or idle-state data, so those lines read n/a there. On real hardware they are filled in.

Status screen: all tests PASS, green CLEAN banner
tty1 · clean. Elapsed time, cycle, phase with a progress bar, PASS / FAIL / WARN per test, journal counters, sensors.
Status screen: RAM block FAIL, invalid opcode event, red ERRORS DETECTED banner
tty1 · errors. Faults injected by hand to show the red path: one byte flipped in the resident RAM block, plus a fake invalid-opcode trap line in the journal. The flip counts once, and the banner stays red.
GRUB boot menu: Burn-in Stick built on NixOS 26.05
boot menu. It boots on its own after a few seconds. No keyboard needed.
Root shell on tty2 with the burn-in log
tty2 · Alt+F2. A root shell. journalctl -u burnin, per-phase logs in /run/burnin/logs/, turbostat, sensors.

03one cycle · ~75 min · forever

0 minload ▲ · idle ▼ · power spike every 2 min in stressapptest~75 min
phasecommandcatches
stressapptest · 15 min stressapptest -s 900 -M <70% free> -m <cores> -W --cc_test --pause_delay 120 --pause_duration 15 bit flips under heavy copy load (Google's server burn-in), cache coherency across cores, a 15 s drop to idle every 2 min
cpu-icache · 10 min stress-ng --cpu 0 --cpu-method all --icache <cores> --verify wrong arithmetic results, instruction-cache reload faults
memory · 10 min stress-ng --vm <cores> --vm-bytes 60% --vm-method all --verify memory pattern errors with Linux paging and caching active
memtester · ≤ 25 min memtester <½ free / cores>M 1 on every core in parallel the classic patterns (stuck address, walking bits, …), this time under the real kernel
integrity nix-store --verify --check-contents · sha256sum of a 256 MiB block held in RAM · zstd | zstd -d | sha256sum per core flips in program bytes cached in RAM (fine on disk, wrong in memory) and in data that has been resident for hours
burst · 10 min loop: stress-ng --cpu 0 --verify -t 3s; sleep 4 hundreds of P-state and C-state transitions, the conditions memtest never creates
idle · 10 min sleep 600 deep package C-states, like a server at 4 a.m.

verdicts

04what the screen listens for

Every 6 s the status screen reads the journal of the current boot incrementally (journalctl --after-cursor) and sorts new lines into five classes. Lines written by the test tools themselves are skipped; their failures are already counted as test results.

classseveritypattern
Machine check / HW errorerrorMachine check|Hardware Error|EDAC|mce: \[
Oops / BUG / panic / lockuperrorOops|BUG:|general protection fault|Kernel panic|soft lockup|hard LOCKUP|rcu_\w+ (self-)?detected stall|WARNING: CPU
invalid opcode / segfaulterrorinvalid opcode|segfault at|traps:|dumped core|SIGILL|SIGSEGV|SIGBUS
Thermal throttlingwarntemperature above threshold|clock throttled
Out of memory killswarnOut of memory|oom-kill

temperature

Maximum of coretemp / k10temp hwmon inputs (falling back to thermal zones), with the session maximum next to it.

frequency

scaling_cur_freq of every core, sampled every 2 s. In the burst phase you can watch the numbers jump.

idle states

Deltas of cpuidle/state*/time summed over all cores: the share of wall time spent in POLL, C1, C6, C10 … during the last 2 s. It proves the idle phase really goes deep.

05internals

burnin.service burnin-run · strict bash stressapptest · stress-ng · memtester · nix-store · zstd kernel + tools Oops · MCE · segfault · OOM → journald (volatile) /run/burnin events.jsonl · 1 line/result phase.json · logs/*.log journalctl -b --after-cursor, every 6 s regex classes, own lines skipped burnin-dashboard python curses on tty1 + /sys hwmon, cpufreq, cpuidle

decisions worth stealing

06build · hack · embed

build

$ git clone https://github.com/devfbe/burnin-stick
$ cd burnin-stick
$ nix build .#iso           # → result/iso/burnin-stick.iso

a full cycle in minutes

# divide every phase duration by 60
systemd.services.burnin.environment.BURNIN_SCALE = "60";

embed in your own image

{
  inputs.burnin-stick.url = "github:devfbe/burnin-stick";

  outputs = { nixpkgs, burnin-stick, ... }: {
    nixosConfigurations.my-burnin = nixpkgs.lib.nixosSystem {
      modules = [
        burnin-stick.nixosModules.default
        { nixpkgs.hostPlatform = "x86_64-linux"; }
      ];
    };
  };
}

files

flake.nix outputs
burnin.nix the image
burnin-run.sh the cycle
dashboard.py the screen

not included

mprime: its source fetch in nixpkgs 26.05 is broken upstream. y-cruncher: needs AVX, which many low-power boxes do not have.

safety & license

Root has no password, on the local console only. The box gets hot, which is the point. MIT for the repo code; the ISO is free software plus redistributable CPU microcode, and the source is the flake. No warranty.