Skip to content

Latest commit

 

History

History
724 lines (619 loc) · 56.6 KB

boot-time.md

File metadata and controls

724 lines (619 loc) · 56.6 KB

Boot time: where it stands

This page follows the goal's two numbers (AGENTS.md, "The goal"). It says where each stands and where its time goes. It lists what the machine carries for them and what each item earns, what was tried and rejected, and what is open: those tables are one record a row in docs/experiments, rendered by spin-machine-dev docs tables and on the site. The log, docs/log, tells each change, dated. Each release's own numbers are in docs/releases.md. What the guest's memory and disk cost is in docs/memory-and-disk.md. How a number is measured is measuring.md, and the lab's commands are in docs/cli.md, "Measuring".

Every number here comes from the bench fleet (spin-stack/ci: AWS c8id.4xlarge, Xeon 6975P-C, nested KVM, scratch on local NVMe) in spin's shape, as p50 or p50/p95 in ms, unless a row says otherwise. An interval is the bootstrap 95% interval of a Δp50.

Where the two numbers stand

Number Probe p50/p95 Over 100 ms Run
Cold boot to the first SSH login ssh-first: from before QEMU's exec to true run over SSH 456/477 +356 report 44811347183, v20261120.04
The same, QEMU started ahead prestart, prestarted boot: from the request 428/440 +328 the same
A checkpoint restored to the first login restore-first, evicted: the state read from NVMe, out of the page cache 108/111 +8 the same
The same, QEMU started ahead prestart, restored into prestarted 83.2/87.1 under the same

The cold number's probe stopped adding work on 11-22 (#450). ssh-first used to close the connection that timed accepts and log in on a new one, and on spin's path sshd started a session for the closed one beside the first login. It now logs in over the connection accepted. In one run, the probe's two versions as rows of one tree: accept to login −4.3 [−5.4, −3.0], first login −4.4 [−9.1, +0.3] (bench, spin's shape and login, v20261122.01, 40 each, lab 44987441326). A release measured with the new probe reads ~4 ms lower without the machine having changed.

These are the release's numbers, booted interleaved with v20261120.03 (docs/releases.md). Two runs are two machines, so compare a new number only with one booted in the same run (docs/measuring.md, rule 3).

The restore is under 100 ms when QEMU is started ahead, and the cold boot is not close. A cold boot cannot reach 100 ms by userspace work alone: QEMU, the firmware and the kernel take ~157 ms before PID 1 runs (budget below), ~154 once the firmware row's anchor is corrected (#665). Without systemd, sshd accepted at 189 ms in spin's shape (lab 44750322384, 2026-11-20). Every phase before PID 1 has to shrink as well.

What spin runs, and what the probes boot

The probes boot and log in as spin does, unless a run asks otherwise (docs/cli.md, "Measuring"):

  • The shape. spin (spin-stack/spin, internal/runner/vmm/vmm.go) boots 1 vCPU and 2048 MiB, with ceilings of 16 vCPUs and 8 GiB. Its hotplug controller has 16 targets, 4 of them for disks attached while it runs and the rest for the extensions it boots with (internal/runner/qemu/spec.go, controllerTargets, since spin's c0ffbc0 of 2026-11-20). The probes boot 16 too. Against the 4 they booted before, 16 read within noise: first login −3.8 [−11.1, +4.5] (lab 44847364468, 2026-11-21), so the budget's rows taken with 4 stand.
  • The memory. Nothing is plugged at boot. spin boots every workspace with the least memory one holds, 2048 MiB (canonicalMemory, installconfig.MinMemoryMB), since spin-stack/spin#1660 of 2026-11-23. Right after the start, virtio-mem plugs only what a workspace holds above that, which the least one does not. The probes plug nothing (plugged=0). Before #1660, spin booted 128 MiB and plugged 2048 right after the start, and the probes did the same. A tree with --opt memory=128 --opt plugged=2048 boots that shape. A guest left at 128 MiB runs its OOM killer through every boot (lab 44784196287).
  • The login. spin turns off systemd's vsock sshd (systemd.ssh_auto=0). It reaches a long-running ssh.service as root through its supervisor's forwarder to 127.0.0.1:22 (login=spin). The image's own vsock lane is login=lane.
  • Checkpoints. A checkpoint is mapped-ram, saved and loaded on 8 multifd channels (machine.DefaultChannels). Before the RAM load, the resume reads the state ahead.
  • The host. spin's host must set THP defrag to defer, and spin does not set it (docs/memory-and-disk.md, "What the host must set"). The probes leave the bench host's policy as it is, unless restore-together is given defrag=.
  • The host key. Before it execs systemd, spin's vminitd places the workspace's host key at /run/spin/ssh/ssh_host_ed25519_key with a drop-in naming it sshd's only HostKey, and the image's keygen then does not run (#515). login=spin does the same from a shell as PID 1, a stand-in that costs 6-8 ms of its own before systemd (docs/measuring.md, "The ledger"; #575).
  • Still not spin's. spin boots /sbin/vminitd from its own initrd before systemd. Its supervisor starts ssh.service when it installs the user CA. The probes boot the image's init behind the handoff's shell.

Most numbers taken before 2026-11-21 used another shape (2 vCPUs, 2 GiB, no ceilings, the "ladder" shape) and another login (the lane). The "Shape" column of each row below says which. A row marked spin from before that date passed spin's shape options by hand (#319). Read a number in the ladder shape as a lead in spin's shape.

The bench fleet is nested, not metal

On a c8i.metal-48xl (the same CPU), the cold first login read 332 ms against 378-392 nested (v20261114.02, ladder shape, lab 44537498507), so nesting costs ~50-60 ms. Most of that is VM exits: the PCI walk takes 5.00 ms nested against 2.22 on metal, about 29 µs an exit against 13 (labs 44535161371, 44535156851). A production host that is not nested starts closer to the goal.

Both hosts make the same exits, and the nested ones cost more (#565, the exits probe, v20261122.06, labs 45082640147 and 45082640186). A cold boot to the first login makes ~10,400 exits on either host: CPUID 3805, MMIO 3138, MSR writes 1169 (1043 of them the TSC deadline), preemption timer 827, port I/O 667, interrupts 424, HLT 334, EPT violations 172. The nested L1 spends 78.7 ms on them against 48.3 on metal. Removing 1541 CPUID exits moved the first login −10.3 ms, ~6.7 µs an exit. EC2 gives the L1 EPT, VMCS shadowing and APICv, all on, so no L1 setting is left to turn. Every exit removed counts at ~5-15 µs nested. #565 ranks the levers.

The EPT violations are half guest RAM first touched, half MMIO first touched (#568, exits, v20261123.04, lab 45111606645, 3 boots, the same counts in each). Of 171 at ~110 µs each nested (18.9 ms), 52 land in the 128 MiB base and 6 just above it, 48-51 in the memory virtio-mem plugs from 4 GiB, and ~65 at MMIO addresses, where KVM's first fault on a page installs the entry that every later access exits through as EPT_MISCONFIG: 39 in the PCIe ECAM at 2.75 GiB, 9 below 4 GiB (the IOAPIC, the local APIC, the flash), 17 in the 64-bit BARs at 12 GiB. Prefaulting the base in a QEMU started ahead could win at most the base's ~58 × 110 µs, ~6 ms, of prestart alone, since ssh-first's clock starts before QEMU's exec. That is under the noise and off both goal numbers, so it was not built.

Density: a host's first login holds until about a third to a half of its CPUs are busy (#563, section 2, density, v20261123.04, spin's shape and login, 2026-11-23). Each row boots that many workspaces first, logs into each, lets them settle 10 s, and times one more's first login. Under load=cpu every crowd workspace keeps its one vCPU busy. The line #563 reads is a first login p95 within 25% of the empty host's in the same run.

host load crowd: first login p50/p95 within 25% runs
nested c8id.4xlarge, 16 CPUs cpu 0: 387/417; 4: 378/431; 8: 441/450; 16: 1015/1215; 24: 941/1196 up to 8 lab 45110655407, 10 a row
metal c8i.metal-48xl, 192 CPUs cpu 0: 337/447; 16: 331/488; 32: 335/344; 48: 336/341 up to 48 lab 45110663095, 10 a row
the same cpu 0: 342/363; 64: 327/366; 96: 466/486 up to 64, not 96 lab 45110670764, 8 a row
the same cpu 0: 316/339; 72: 328/386; 80: 393/493; 88: 365/439 up to 72, not 80 lab 46203613322, 8 a row (#634)
the same, 4 vCPUs a workspace cpu 0: 292/316; 12: 287/313; 16: 299/329; 24: 382/397 up to 16, not 24 lab 46203613298, 8 a row (#634)
the same idle 0: 345/368; 16: 336/343; 32: 329/341; 48: 334/352 all lab 45110678888, 10 a row
the same idle 0: 342/356; 64: 328/350; 96: 331/340 all lab 45110688511, 8 a row

Idle workspaces cost a metal host nothing up to 96, as they cost the bench nothing up to 16 (lab 44667235868). Busy ones moved the first login at 16 of the bench's 16 CPUs, and at 96 of metal's 192 (+124 ms p50). The metal empty row's p95 of 447 in lab 45110663095 is one slow boot of ten. What a metal host holds is busy vCPUs, not workspaces (#634, v20261127.03, 2026-11-28): 72 busy workspaces of 1 vCPU hold and 80 do not, and 16 of 4 vCPUs (64 busy) hold and 24 (96) do not, by 2 ms. The line is past 72 busy vCPUs and before 80, about 40% of the host's CPUs. At 8 a row a p95 is near the slowest boot, which is why 80 read slower than 88. The crowd boots one at a time, ~0.8 s each on metal's EBS scratch and ~0.75-1.1 s on the bench's NVMe. Section 1 of #563, what nesting costs a running workspace's I/O, needs io and build probes and equal storage on both hosts, and is open.

Where the time goes

Each table splits one number into phases, in spin's shape, and gives each phase a source. A phase "by difference" is two numbers of one run subtracted. A phase marked "approximate" comes from another run or another release. The last column is one way to spend 100 ms. It is an allocation, not a measurement: it says how far each phase has to move.

Cold boot

Phase p50 Source How well known For 100 ms
QEMU's exec to a guest ready to run ~28 cold 456 less the boot into a QEMU started ahead, 428 (report 44811347183) by difference, one run 0, started ahead
… of it, QMP: QEMU's main loop free to cont answered, 14 commands 6.2 transport cold_qmp, lab 44912471522 (v20261121.01); 4.5 of it QEMU waiting on spin-machine's next command measured
… of it, the reset copying the vmlinux's 37.4 MB of segments into guest RAM, before the main loop 9.1 before QEMU 0009, now beside the main loop romcopy (a probe on branch exp/698-romcopy, not on main) rom_copy, lab 45257214350 (v20261123.07, 20 boots, p95 9.3); the ledger read the vmlinux's QEMU start +8.4 against a bzImage's (lab 45260129735, #697) measured
qboot and the bzImage's decompression, to the kernel's clock 33.6 boot:firmware-stages, lab 44787491631 (v20261120.02's kernel); ~21 of it is the decompression KASLR needed, which the machine no longer runs since #645 (first login −18.6, "What the machine carries"). Its end, KVM_SET_CLOCK plus the sched offset, is 2.8 ms after the kernel's 0 on bench, so ~31 (#665) measured, another run; its anchor late 5
The kernel's clock to "Freeing unused kernel image" 95.1 initcalls freeing, v20261120.04 again, 20 boots (89.6 to 97.9), lab 45885883883, on the kernel's clock. The report's 79.9 was dmesg's, 15.2 ms short from late_initcall on (#666) measured, another run 25
PID 1 to sshd accepting ~239 sshd accepts 396 (lab 44841266997) less the three rows above; ~242 with the firmware row's anchor corrected by difference, across runs 35
sshd's accept to the first login 68.4 ssh-first accept_to_login, lab 44841266997 measured 35
… of it, what any login costs (a second login) 35.9 ssh-first second_login, the same measured
… of a login, vsock: 10 round trips of 57.5 µs through the forwarder 0.6 transport login_turns, forward_rtt, lab 44912471522 measured
Total 465 lab 44841266997, v20261120.04 (456 in the report's run) 100

PID 1 to sshd is more than half the cold boot. On one vCPU, everything systemd starts before sshd accepts is on the login's path. The groups in "What the machine carries" show how much masks, generators and the coldplug filter took off it. The no-systemd floor accepted at 189 ms in spin's shape. Before PID 1, ~157 ms of QEMU, firmware and kernel remain (~154 with #665's correction), ~129 of them with QEMU started ahead. Each phase from the first row to the fourth has to shrink to reach 100 ms.

Restore, QEMU started ahead

Phase p50 Source How well known For 100 ms
spin-machine's exec and its dial 2.3 split (a probe on branch restore-split-lab, not on main), lab 44809015139 (v20261120.03) measured, one run 1
QMP round trips to migrate-incoming (17 of them) 6.7 transport restore_qmp, lab 44912471522 (v20261121.01); 5.2 of it QEMU waiting on spin-machine. The read-ahead runs beside it measured, one run 3
The RAM load (8 channels, 181 MiB of data, evicted) 38.8 before the read-ahead; ~27 after it the same; the read-ahead −11.9 to running (lab 44809512339) measured, then by difference 25
Device state and cont 4.5 the same measured, one run 3
… after it, the guest running to the restore's last answer (remove-fd, query-status) 2.7 transport restore_after, lab 44912471522 measured, one run
Running to the first login ~35 83.2 less running (~47); laptop: the connection ~5, to "Accepted publickey" ~22, the session ~4 by difference; split on a laptop 35
Total 83.2 report 44811347183 67

A restore that starts QEMU itself adds ~25 ms (108 against 83.2). From the page cache, the RAM load is ~10 ms instead of ~50 on a laptop, so the evicted load is the disk. Eight restores let go at once read ~190-240 ms each under defer, against ~100 alone ("Open experiments", the burst).

Restore, QEMU started by the restore

This is the goal's second number, restore-first's evicted row. The rows come from lab 44976494418 (v20261122.01's parts, main's spin-machine at ee1be0f, 30 restores).

Phase p50 Source How well known
The monitor's socket listening 2.5 listening. machine.Start binds it before QEMU exists, so it no longer marks QEMU's start measured
QEMU's exec to its first answer ~19.5 transport, lab 44912471522 (v20261121.01). spin-machine restore waits on it in its dial measured, another run
The first answer to spin-machine restore returning: 17 QMP commands, the load, device state, cont ~49 evicted, ~35 cached running 70.8 evicted and 57.0 cached, less the two rows above by difference
Running to the first login 40.2 login 111 less running 70.8 by difference
Total 111 evicted, 95.2 cached the same

The evicted row read 16 ms more than the cached one, and that was the disk. The read-ahead started in Resume, after the dial had waited ~19.5 ms for QEMU. Started before the dial, it runs beside QEMU's start: running 62.7, login 101, 6 ms over the cached row ("What the machine carries"). Asked for by four goroutines instead of one, the evicted row is level with the cached one, login 96.2 against 96.3 (lab 44976924478). What is left of the restore is not the disk.

About a third of the restored login is sshd sleeping. On a laptop, a restored login of 32 ms split into 4.6 ms to the server's banner, ~5 ms of key exchange, 14.5 ms from the signed userauth request to its success, and ~4.7 ms for the channel, exec and exit. ~12 ms of the 14.5 are OpenSSH's minimum time for a userauth request (auth2.c, ensure_minimum_time_since): 5 ms plus 0-4.2 ms after the key query, and again after the signed request that succeeds, because the flag it checks is set only after the sleep. sshd logs both at LogLevel DEBUG3. With every nanosleep in sshd returning at once, a bound and not a candidate, the restored login read −13.4 [−15.2, −10.5] on the bench and the cold login −3.2 [−13.7, +2.7], within noise (lab 44980029214). On a cold boot the vCPU still has boot work to run while sshd sleeps. ("Open experiments", #457.)

The shirudo machine's initrd

The budget entry, written before the runs (#851). The shirudo machine boots a systemd initrd that dracut builds in the operator's guest (docs/shirudo.md, "The initrd"). On today's machine (v20261127.03's parts, main's kernel with 0033, QEMU with 0012, shirudo 88f9888), spin's shape at 512 MiB, its phases are cut at exec and exit events of the ledger's scheduler trace, p50 of 5 (lab 46286708452):

Phase p50 What runs
The kernel's clock to the initrd's PID 1 196.2 a kworker's 112.8 ms of CPU unpacking 76.2 MB of cpio from 26.7 MB of zstd; the plain machine has no such kworker
The initrd's PID 1 to udevd's exec 133.9 generators, dracut's dracut-cmdline hooks (~70 ms of shell forks, which udevd waits for; bootchart, lab 46286668841), journald, enter-initrd, tmpfiles
udevd to sysroot.mount 95.0 the coldplug of every device, the root's device unit, the root's fsck
sysroot.mount to shirudo's exec 15.3 the remount read-write
shirudo's exit to the root's PID 1 47.5 the initrd's cleanup, leave-initrd, the switch
shirudo's init 430.6 not this entry's

The ceiling is ~405 ms of the first login's 1222: the unpack's ~113 and the initrd's systemd outside shirudo, 292. Each change is decided by ssh-first against the one before it, 20 a side interleaved, with restore-first no worse, and the ledger shows the phase it moved. Prior art:

  • Fedora split libtss2-fapi out of tpm2-tss in 2023 because FAPI's libcurl went into every initrd that took tpm2-tss for systemd, which does not use FAPI (bugzilla 2252535). Ubuntu's dracut tpm2-tss module needs the tpm2 binary, which systemd does not pull in (Launchpad 2069290). Neither measured a boot.
  • shirudo's own test VM builds its initrd from an explicit --modules list (its testing/vm/run.sh). Fedora's dracut host-only mode shrank an initrd from 23 to 5.5 MB in 2013 and its testers saw no clear boot-time gain (Features/DracutHostOnly).
  • Decompression is most of populate_rootfs's time, for a 6 MB lz4 initrd on ppc and a 26 MB xz one on a laptop, with no absolute numbers (LKML, 2021-03-09). The kernel's own help puts zstd's decompression near LZO's and below LZ4's (usr/Kconfig).
  • Nothing found measured an initrd's units or its coldplug in a VM (searched: dracut's and systemd's trackers, Fedora's and Ubuntu's lists, LKML).

Measured (bench, spin's shape at 512 MiB, today's machine as above, each change a shirudo commit of exp/851-initrd-slim that does inside shirudo-gen-initrd what the machine does from outside, 20 a side interleaved, lab 46288783448; the ledger, 5 a side, lab 46288791493):

  • No tpm2-tools in the operator's guest. dracut's tpm2-tss module stays out, and with it tpm2-tools, libtss2-fapi and the libcurl, GnuTLS, Kerberos and LDAP they link: 40 files, 16.5 MB unpacked, 5.9 MB compressed. shirudo's dracut module brings the libraries systemd-pcrextend loads instead (spin-stack/shirudo#2), and PCR 11 after the boot is the value an initrd with tpm2-tools leaves (laptop, one boot each). The first login −38.2 [−50.3, −23.4], p50/p95 1195/1229 to 1157/1185; the kernel's clock to the initrd's PID 1 193.6 to 168.7 ms; QEMU's anonymous RSS at the second login −22.6 MiB. Carried.
  • Only shirudo's dracut module and its dependencies (--modules shirudo): 92 files fewer, 59.7 to 55.9 MB unpacked and 20.9 to 19.6 MB compressed, and none of dracut's shell hooks, its root generator, fsck or the hibernation generator. The first login −75.7 [−92.6, −66.9], p50/p95 1157/1185 to 1081/1112, against the change above (the lab's statistic on the run's samples). The initrd's systemd outside shirudo 285.4 to 224.1 ms: its PID 1 to udevd 130.5 to 107.8, udevd to sysroot.mount 94.2 to 54.8, the root's fsck gone. The restored login with both changes, −3.1 [−11.8, +0.4] evicted and −3.2 [−21.3, +26.8] cached, within noise, the state −28.1 MiB (lab 46288799007, 20 a side). Carried.
  • The initrd's coldplug of the block devices alone, the operator's drop-in for systemd-udev-trigger.service in place of --type=all. The first login −53.5 [−63.8, −37.8], p50/p95 1081/1112 to 1027/1053, against the change above. udevd to sysroot.mount 54.8 to 12.2 ms, and the initrd's PID 1 to udevd 107.8 to 87.0, since the trigger ran its whole enumeration ahead of udevd's start on the one vCPU. The restored login −1.4 [−5.3, +3.7] evicted and −0.9 [−32.8, +20.1] cached, within noise. Carried.

The three together: the first login −167.3 [−181.2, −155.2], 1195/1229 to 1027/1053; the initrd 76.2 to 56.0 MB unpacked and 26.7 to 19.6 MB compressed; the initrd's systemd outside shirudo 287.2 to 152.5 ms; QEMU's anonymous RSS −29.8 MiB; the restored login −4.5 [−12.0, −1.7] evicted and −4.0 [−24.7, +17.6] cached, the state −28.9 MiB.

What is left of the unpack is zstd's decompression, and taking it costs memory. The kernel's clock to the initrd's PID 1 is 181.1 ms with zstd -15, 129.2 with lz4 and 112.0 uncompressed (ledger, lab 46290445396, 5 a side). Against zstd, the first login reads −48.0 [−63.8, −36.7] with lz4 and −49.5 [−66.1, −37.0] uncompressed (lab 46290436558, 20 a side, a machine ref whose operator installs lz4). A larger archive stays in guest RAM until free page reporting returns it: QEMU's anonymous RSS at the second login +11.4 MiB with lz4 and +32.0 uncompressed, a checkpoint at the boot's end +9.3 MiB with lz4 (lab 46290453622, the restored login within noise). Uncompressed is rejected ("Measured and rejected"), and so is lz4: the owner kept zstd, since #809 puts scalability before speed (#864). zstd's level was not measured: its decompression speed "remains roughly the same at all settings" (zstd's README), so a level trades only the archive's size, and dracut's -15 is near the top.

shirudo's init in the initrd

The budget entry, written before the levers' runs (#809). On today's machine (v20261127.03's parts, main's kernel with 0033, QEMU with 0012, shirudo 8f770c0b), spin's shape at 512 MiB, shirudo's init is the longest phase of the shirudo machine's first login: 429 ms from its exec to its exit at the median, of a first login at 1023 ms. Its ceiling is that phase less what has to stay: the TPM's own commands and the verifier's work on programs init must load. The rule is the goal's: ssh-first 20 a side against the pin, restore-first no worse, check:shirudo passing.

Where the 429 ms go, from a profiling build of the pin (spin-stack/shirudo exp/809-profile): a mark at each step of init into the trace and the journal with the process's CPU time and every TPM command's time, BPF_LOG_STATS on every program, and a 2.5-10 kHz perf sampler of init itself, kernel callchains and user stacks, resolved against the kernel's kallsyms and an unstripped build of the same commit. Ledger, 5 boots, p50 (labs 46298750972, 46299644799, 46300837768):

Step ms What it is Source
exec to main, hardening 4.4 page-in of the 14.3 MB binary, mlockall measured
pre-flight 12.7 user CPU: vmlinux BTF parsed, the LSM hooks of both objects read measured
the boot keys 45.0 25 of it disk: the runtime image and config read through dm-verity; the bpf keyring's ML-DSA enrolment; the TPM session's start measured
the boot keys released 19.6 16 of it disk: unmounts and dm-verity removes measured
bpf2 loaded 64.4 the verifier 38.2 (BPF_LOG_STATS, 29 programs, 20,375 instructions), of it 21 in bpf_compute_live_registers; libbpf's CO-RE candidate search 14 of user CPU measured
seal loaded 41.7 the verifier 26.8 (31 programs, 11,137 instructions); the candidate search 10 measured
60 LSM links attached 64.4 all kernel: every attach updates the trampolines' direct ftrace ops, and __ftrace_hash_update_ipmodify walks all 43,197 records, 36 of the 64 measured
the identity, the P-256 writer 7.2 measured
the runtime mounted 25.3 12 of it disk; vmlinux BTF parsed again measured
the boot settings 39.0 11 of TPM over 8 commands; 16 of user CPU, TPM2-TSS's OpenSSL backend measured
the register bound 84.2 48 of TPM over 31 commands; 36 of user CPU, the same backend measured
completed, the rest 19.7 the authenticated boot completed (12.0, 3 TPM commands), the bpffs, the state bind, the eventlog measured
init 428 CPU 262 (user 111, system 151), runnable 29, disk 102, asleep 36; TPM 76 over 49 commands measured

63 ms of the user CPU is TPM2-TSS 4.2.0 making a new OpenSSL library context for every hash, HMAC, nonce, RSA encryption and ECDH: evp_generic_fetch is on the stack of nearly every sample of the three TPM steps. Prior art: upstream moved each of those operations to a context of its own so that a TPM2 provider in the global one is never called back (tpm2-tss c423d4fe, 91a2676e, d32903d1 and 65ffe67c, 2026), RHEL 9 carries the same as a patch, and nobody measured what a context per operation costs. Upstream's Jiri Olsa made the trampolines share one direct ops ("ftrace,bpf: Use single direct ops for bpf trampolines", 2025-2026, LKML) and later made its temporary ops filter on the passed hash because the full one was slower; nothing found addresses the walk itself (searched: LKML, the bpf and trace trees).

Measured (bench, spin's shape at 512 MiB, today's machine as above):

  • TPM2-TSS's backend keeps one context for the process (spin-stack/shirudo#3). The first login −67.8 [−81.0, −56.8], p50/p95 1023/1060 to 955/978 (lab 46301603024); restored no worse (lab 46301602996). In the ledger init's CPU 263 to 201 ms and its window 429 to 372 (lab 46302189818). Carried.
  • libbpf's CO-RE candidate search by name (spin-stack/shirudo#4). The first login −23.1 [−30.7, −1.8] (lab 46302148236); stacked on #3, −88.2 [−99.0, −65.3] against #3's −67.8 alone (lab 46303644385); restored no worse (labs 46302774309, 46303644353). The ledger saw init's CPU fall 14 ms and its window within noise (5 a side), so the gain is the ssh-first runs'. Carried.
  • Kernel 0034, a direct ops' IPMODIFY check by lookup. Against main's kernel, the first login −38.0 [−50.7, −29.8], 1025/1058 to 987/1015 (lab 46302514288); restored no worse (lab 46302514364). Carried.

What is left: the verifier (65 ms, its liveness pass a third of it), the rest of each attach (ftrace's other two walks, ~28 ms), the TPM's commands (76 ms, which shirudo's upstream is batching), the disk under the image steps (~55 ms), and pre-flight and the runtime's BTF parses.

A machine with a TPM

spin gives a workspace that runs shirudo a TPM (machine.Spec.TPM, #719): swtpm beside QEMU, behind tpm-crb. Each row is what the TPM adds to a phase, a machine with one against the same machine without, interleaved, spin's shape, v20261126.01's parts (#745, #775, 2026-11-26).

Phase Δ with a TPM Source How well known
QEMU's exec to the guest's first instruction: swtpm's start and QEMU's backend waiting on it +4.8 [+4.1, +9.7] ledger qemu_start, lab 45830006273, 3 a side measured
… of it, swtpm's exec to its first answer 0, overlapped strace of swtpm and QEMU (labs 45838340907, 45838342840, 3 a side each): QEMU sends its first control command 6.3-7.2 ms after its exec and swtpm answers it in 0.1 ms. swtpm starts beside QEMU and is ready before QEMU asks measured, traced
… of it, CMD_INIT, which QEMU waits on at its reset 5.0-5.5 under strace the same traces: the INIT ~28 ms after QEMU's exec, 1 ms of it reading the host's openssl.cnf, the rest CPU; callgrind put 89% of an INIT's instructions in swtpm's test of OpenSSL's algorithms, RSA signs at every key size (qemu/swtpm/README.md) measured, traced
The kernel's clock to PID 1: crb_acpi_driver_init +19.1 [+17.3, +21.5] initcalls, lab 45829990377, 10 a side; the ledger's kernel window +18.8 of idle, the kernel's CPU unchanged measured
… of it, TPM2_SelfTest after the kernel's TPM2_Startup 16.7 function_graph under tpm_transmit, lab 45833173266, 2 boots, traced: the refused self test 1.6, TPM2_Startup 1.2, the locality 0.6, the rest under 1.3 measured, traced
PID 1 to the login none seen no TPM unit on the login's chains; CPU by process within ±1 ms (bootchart, lab 45829997996, 3 a side); the ledger's windows from PID 1 move either way bounded
Cold first login +31.7 [+22.0, +36.0]; +9.5 [+4.5, +19.5] with 0032; with 0032 and swtpm's patch, the patch takes −5.1 [−9.7, −0.6] of a +9.0 [+2.1, +13.8] ssh-first, lab 45829973230, 30 a side; with 0032, lab 45834343191; the patch, lab 45844362398, 30 a side measured
Restored first login, evicted +6.3 [+5.3, +7.0]; with swtpm's patch, the patch takes −3.8 [−5.2, −0.8] of a +5.7 [+4.1, +7.1] restore-first running +6.4, listening +0.0, lab 45829981897, 30 a side. Traced, there is no INIT at the reset of a QEMU that waits for its stream: the cost is the state blobs set over the control channel (0.5 ms) and the INIT after them (5.1-5.6 under strace), labs 45838342840. The patch, lab 45844362132, 30 a side measured

The cold cost was the kernel waiting on libtpms's self test. qboot did not start the TPM, so the kernel's first TPM2_SelfTest is refused, it sends TPM2_Startup, and then asks for the self test again, which right after a startup tests every algorithm libtpms has. The vCPU sleeps through it in 1 ms polls. A TPM tests an algorithm before its first use anyway, so 0032 drops that second self test ("What the machine carries"), and the first command that needs an algorithm pays its test instead: shirudo's first RSA-3072 primary, after the login. Since qboot starts the TPM to measure the boot (#742), the kernel's first self test would no longer be refused and would run the whole test, so 0032 probes with TPM2_Startup, which a started TPM refuses, and sends no self test at all.

What was left was swtpm testing OpenSSL at each INIT, not its start (#775). swtpm starts beside QEMU and is waiting before QEMU's first control command. QEMU then waits on the TPM's CMD_INIT, at its reset on a cold boot and after the state blobs on a restore, and swtpm spends the INIT signing with RSA keys of every size to learn whether its OpenSSL has disabled an algorithm. Ours links its own libcrypto, so only the host's configuration file could; swtpm's patch reads none and skips the test (qemu/swtpm/README.md, "What the machine carries"). What a TPM costs after it, ~4 ms cold and ~2 ms restored, is the refused self test, the startup, the driver's capability reads, the state blobs and what is left of the INIT, none above the noise alone. #775 measured that on a tree whose qboot did not start the TPM and whose 0032 skipped only the self test after the kernel's own startup. The image's systemd is built without TPM2 (docs/image.md, "Two rebuilt packages"), so nothing after PID 1 waits on the TPM; a systemd with TPM2 brings its generator and units onto that path, and the "PID 1 to the login" row is measured again then.

Measuring the boot adds nothing seen on top of the TPM (#742). These are against a machine that already has a TPM, not against none, so they do not add to the table's rows. The baseline is main at b8fc0ac with swtpm's patch and 0032 as first carried (parts run 45849429862); the other arm adds qboot's tpm.patch and 0032 probing by TPM2_Startup (parts run 45849895726), with the digests supplied rather than hashed at the boot; bench, spin's shape, 30 a side, interleaved. First login −1.0 [−5.8, +4.3] (lab 45851405387); restored login −0.1 [−0.8, +0.8] evicted and −0.2 [−1.5, +0.8] cached (lab 45851411671). All within noise. spin-machine boot --tpm hashed the vmlinux at every boot, +28.7 ms on the probes' clock, until it kept each file's digest under its identity (#776, lab 45884499622).

On the shirudo machine each TPM command waited out a millisecond's poll (#851). shirudo sends its TPM commands on the first login's path, through the kernel's resource manager: 551 a boot with v20261127.03's shirudo and 1207 ms inside tpm_transmit, 306 and 777 ms with 975afe0's (ledger with the TPM kprobes, p50 of 5, lab 46261075649). Beyond swtpm's own work, which is ~0.1 ms for all but the RSA primaries, a command cost the guest 1.15 ms plus 4.3 µs per command byte (fitted over 548 commands a boot, lab 46215235522). The fixed part is in the source. tpm_try_transmit reads the status once after send(), before swtpm can have answered, then sleeps tpm_msleep(1), usleep_range(700, 1000), between reads. The hrtimer is programmed for the end of the range, so on an idle vCPU the sleep is the whole millisecond (HZ 1000, NO_HZ_IDLE, high resolution timers). Traced, 547 of a boot's 551 commands slept once, for 1009 µs at the median (lab 46266299371). The rest of a command is its accesses to tpm-crb, each an exit to QEMU: about seven register reads and four writes, and the command buffer's (below).

The budget entry, written before the run. The phase is the time in tpm_transmit above. 0033 polls 50-100 µs apart for the first millisecond, so its ceiling is ~0.8 ms a command: ~250 ms of the first login with 975afe0's shirudo, ~440 with v20261127.03's. It is decided by the first login, the release's kernel against the same with 0033, interleaved, 20 a side, with the restored login no worse. #745 tried the first ten polls 50-100 µs apart on a machine whose only TPM commands before the login were the kernel's probe, its time one self test of 16 polls, and it read −1.5 [−9.4, +3.1] ("Measured and rejected"); the shirudo machine sends hundreds on the login's path, each short. Prior art, all on hardware TPMs or no machine named:

  • Upstream took this poll from 5 ms to 1 ms in 2018 (59f5a6b07f64, v4.18; 1000 PCR extends on an Infineon TPM 1.2 over LPC, ~14 s to ~10.7 s) and tpm_tis' status waits to 100-500 µs (424eaf910c32). Its author kept this one in milliseconds "to balance between the smaller and longer commands" (linux-integrity, 2018-05-14). 0033's fine phase ends after a millisecond for that reason.
  • Shorter tpm_tis waits were blamed for a Nuvoton NPCT6xx falling off the bus (a 2018 patch back to 750-1000 µs, not merged, no root cause found) and an Atmel TPM 1.2 crashing (79ca6f74dae0, v5.16, a slower wait for that part alone). In 2022 a TPM vendor relayed through the list that polling interrupts a command and recommended a sleep that adapts to the command. The NAK'd Infineon patch of that thread would have lengthened tpm_msleep.
  • A vTPM-only 1-5 µs poll (HPE, 2017-10, TPM_CHIP_FLAG_VIRTUAL, 12x the PCR extends, patch) was not taken, for process. A NitroTPM RFC of 2026-11-18 polls this loop from 100 µs doubling to 1 ms, tested in QEMU with swtpm and on EC2 without numbers. On 2026-11-25 its author proposed taking the poll out of the series.
  • crb_wait_for_reg_32's usleep_range(50, 100) came with tpm_crb's idle states (ba5287b6ef6a, v4.10), with no measurement. Cloud Hypervisor's tpm-crb runs a command inside the guest's start write, so its first status read already finds it done. QEMU's is asynchronous.

Patchwork's list mirror was read for the threads (lore refused automated reads on 2026-11-29), and the GitHub mirror of torvalds/linux for the commits. None measured a guest.

Measured (bench, spin's shape at 512 MiB, v20261127.03's parts, the kernel of parts run 46266221767 against the release's, 2026-11-29). The first login −351.1 [−504.4, −251.9], p50/p95 2516/2800 to 2165/2416 (lab 46266756399, 20 a side). With 975afe0's shirudo −185.5 [−237.8, −141.4], 1931/2071 to 1745/1784 (lab 46266786394, 20 a side). The restored login −0.1 [−2.3, +1.1] evicted and +0.1 [−1.5, +2.3] cached (lab 46266756244, 20 a side). The ledger, 5 boots a tree (lab 46266786457): the 549 commands a boot that take under 20 ms took 744 ms instead of 1091, the vCPU idle for 103 of them instead of 458; ContextSave 1.39 to 0.59 ms at the median, FlushContext 1.28 to 0.47, ContextLoad 3.13 to 2.51. With 975afe0's shirudo 639 to 444 ms over 305 commands. The two RSA-3072 primaries a boot took 31-477 ms whichever kernel booted, swtpm's own time, which 0033 does not touch. The exits probe (lab 46266756410, 3 a side): the guest's HLT time −405.8 [−594.8, −174.4], ~340 more status reads a boot. With 975afe0's shirudo the first login now lands while udev is still running its coldplug, which then runs beside the second login: that login +11.1 [+5.1, +23.7], the console prompt 42-134 ms after the first login instead of 4-28 (one boot's journal, inferred).

What a command costs now is its bytes. QEMU's tpm-crb puts the command buffer at 0xFED40080, in the page of its registers, as RAM that KVM cannot map, since KVM maps whole pages (QEMU's kvm_align_section). Every access to it exits. In the exits probe (lab 46266756410), a boot of 551 commands made 22,143 writes to the buffer, 40 a command, each a full exit from the guest: 23,194 of the boot's 34,823 EPT_MISCONFIG exits are memcpy_toio's, at 10.5 µs each of the L1's handling alone. Its 24,057 reads of the buffer made 1,445 exits from the guest: KVM goes on emulating a rep movs that reads MMIO without re-entering the guest, and re-enters it after each 4 bytes a string write stores: complete_emulated_mmio returns to the guest after a write and goes back into the emulator after a read (arch/x86/kvm/x86.c). That is why the answer's bytes cost the guest almost nothing and the command's 4.3 µs each. A buffer in a page of its own is a QEMU patch, lever 3 of #851. QEMU refused a ram_device buffer in 2022 (it is an emulated device's RAM, v4) and did not take a read-as-memory mapping in 2023 (v1), neither for speed.

Lever 3: what tpm-crb costs a command (#851). The budget entry, written before the run. The phase is what a command costs the guest inside tpm_transmit beyond swtpm's work. On main's machine, 0033 and 975afe0's shirudo, a boot sends 306 commands of 55,317 bytes and spends 566 ms in tpm_transmit, 444 of it in the commands under 20 ms (p50 of 5, lab 46266786457). Fitted over those, a command costs 0.72 ms plus 4.1 µs a command byte. Two QEMU patches go at the two terms, each measured alone against main's machine:

  • The buffer in a page of its own, at 0xFED41000, which KVM maps, so a command's bytes are stores to RAM. Ceiling: the bytes, 4.1 µs × 55,317, ~230 ms. The page is locality 1's in the PTP's fixed map (v1.07, Table 17), which a TPM of locality 0 alone (CapLocality) leaves unused. The PTP caps the buffer at 3968 bytes to keep it from "crossing a locality address boundary" (§6.5.1.7), and it keeps that size. Linux's tpm_crb maps the buffer the control area names through the _CRS resource that holds it (3ef193822b25, 2019, for AMD's fTPM, whose buffers are outside its control area), and qboot's tpm.patch reads the address too; OVMF writes at 0x80 whatever the control area says (edk2 Tpm2Ptp.c), and this machine boots no UEFI. QEMU rounds a RAM block up to a host page, so the old block was already a page and a migration would load an old checkpoint into the new layout, whose guest still writes at 0x80. The block is renamed, so a migration across the two layouts is refused, and the record of a machine with a TPM moves with it. A machine without one keeps its record, and boot:compat, whose machines are plain, refuses nothing new.
  • The command inside the start write, on the vCPU thread with the BQL held, as Cloud Hypervisor's CRB does (devices/src/tpm.rs, d0b253d15fdd, 2022, unmeasured), so the guest's first status read finds it done. Ceiling: the fixed 0.72 ms less swtpm's ~0.1 and the ~11 register exits, ~0.45 ms a command, ~140 ms. It costs the guest its vCPU, and QEMU its main loop, for swtpm's time: ~0.1 ms for most commands and 22-283 ms for the boot's RSA-3072 primary.

Each is decided by the first login against main's machine, interleaved, 20 a side, with the restored login no worse; the two together are a floor. Whether the second leaves 0033 anything to do is the same QEMU on the release's kernel, which has no 0033. Prior art: Eric Auger's 2022 series made the buffer a ram_device so that VFIO would not try to DMA-map an unaligned region. Peter Maydell held that an emulated device's buffer is RAM (2022-02), David Gilbert asked "Why don't you just align this up to a convenient boundary?" (2022-02), and QEMU let VFIO skip tpm-crb's region instead (851d6d1a0ff2). UTM's 2023 series, for Windows on arm64, mapped the whole CRB as a ROM device, reads as memory and writes trapped, because Apple's HVF cannot decode some loads from MMIO. Its first version dropped the "tpm-crb-cmd" block, and Stefan Berger showed the migration that broke ("Unknown ramblock", 2023-07); it was not merged. QEMU's backend has run commands off the vCPU since 2011, when Anthony Liguori asked that the code not be "structured expecting synchronous command execution" (2011-12), and on QEMU's thread pool since c4fb8561bcec (2018). None measured a guest. I found no measurement of either path in qemu-devel, QEMU's GitLab, swtpm's issues or cloud-hypervisor/cloud-hypervisor#4642.

Measured (bench, spin's shape at 512 MiB, v20261127.03's image, main's kernel with 0033 of parts run 46270466817, main's QEMU of parts run 46268882286 against the same with each patch, parts runs 46273644466, 46273647612 and 46273650836 for both, 975afe0's shirudo, 2026-11-29):

main buffer page start write both
first login p50/p95, ssh-first, 20 a side (lab 46274812245) 1730/1833 1379/1429 1622/1717 1338/1476
Δ p50 [95%] −350.8 [−377.0, −314.7] −107.6 [−155.0, −48.5] −391.5 [−420.9, −346.2]
restored login, evicted / cached, Δ (lab 46274837838, 20 a side) −8.7 / −8.2, within noise −1.8 / +9.7, within noise −9.2 / +6.4, within noise
ms in tpm_transmit a boot, 306 commands (ledger, lab 46274837561, 5 a side) 537 239 447 189
fitted, a command under 20 ms 0.68 ms + 3.8 µs a byte 0.51 ms + none 0.49 ms + 4.1 µs a byte 0.26 ms + none
sleeps in tpm_transmit a boot 708 641 0 0
ContextLoad (414 B) / ContextSave, median ms 2.18 / 0.59 0.42 / 0.36 2.08 / 0.41 0.18 / 0.17
EPT_MISCONFIG exits a boot, memcpy_toio's (exits, lab 46274837821, 3 a side) 22,481, 14,002 7,124, 0 20,927, 14,002 5,836, 0
guest HLT exits; ms the L1 handled exits 1,243; 325 1,101; 153 516; 418 489; 206

The buffer in a page of its own is carried (qemu/patches/0012, "What the machine carries"). The bytes stopped costing anything: the fit's per-byte term is gone, a ContextLoad costs a fifth of what it did, and memcpy_toio and memcpy_fromio made 0 and 1 exits a boot. It gained more than its ceiling of ~230 ms because the fixed term fell too, 0.68 to 0.51 ms, by the answer's reads, whose 884 exits and the user-space round trips behind them went with the bytes: 298 ms of tpm_transmit a boot. The login's own steps came sooner too in that run, accept to login −34.8 [−40.6, −1.4] and the second login −17.3 [−33.9, −7.9], not traced. On today's main, shirudo 88f9888, whose root init runs after the login, the first login −193.9 [−207.9, −181.9], p50/p95 1407/1446 to 1213/1249, the start write alone −37.6 [−55.1, −30.3] and both −221.6 [−239.2, −214.1] in the same run (lab 46276747177, 20 a side); the restored login −0.2 [−6.2, +2.1] evicted and −0.8 [−2.5, +2.4] cached (lab 46276747157, 20 a side). The record of a machine with a TPM moved: its RAM block is tpm-crb-buffer, so a checkpoint of a machine with a TPM from before is refused and boots cold, and QEMU refuses the stream in both directions ("Unknown ramblock", a held TCG machine saved and loaded across the two, 2026-11-29). A machine without a TPM keeps its record: boot:compat resumed every release back to v20261126.01 as on main, and boot:record and boot:tpm pass (compat run 46274051497, lab 46274837950).

The command inside the start write is measured and rejected ("Measured and rejected"). It does what it says: no command sleeps in tpm_transmit, the guest's HLT exits fall by 727 a boot, and the fixed term falls 0.19 ms. Where it shows is the exits' handling, +92 ms, since the start write's exit now lasts swtpm's time. With it 0033 has nothing left to do: the same QEMU on the release's kernel, which has no 0033, read +8.4 [−44.1, +51.8] against it in the same run (lab.DeltaP50 on that run's samples). On top of the buffer's page, on today's main, it gains −30.4 [−37.3, −22.6], p50/p95 1236/1263 to 1206/1241 (lab 46275881507, 60 a side). It is not carried for what it costs: the BQL is held for swtpm's time, so a slow command, an RSA key generated in a workspace or a state write to a busy host disk, stops QEMU's main loop, its monitors and every other vCPU's exits with it, and a swtpm that never answers hangs the machine where the guest's driver used to time out. A bounded wait, the command completed in the write when swtpm answers within a millisecond and on the thread pool otherwise, would keep the gain without the hold (#860).

A bounded wait in the start write (#860). The budget entry, written before the run. The phase is the same: what a command costs the guest inside tpm_transmit beyond swtpm's work. On main (0012, 0033), the unbounded start write took −30.4 [−37.3, −22.6] off the first login (lab 46275881507, 60 a side), so that is the ceiling. The START write hands the command to the thread pool as today and then waits, BQL held, up to 1 ms for the worker to finish handle_request. If it finished, the write completes the command; if not, the write returns and the thread pool's completion runs on the main loop as before. The BQL is held at most 1 ms a command. A worker the pool has to create is made by a bottom half on the main loop, which cannot run while the vCPU holds the BQL, so the first command after 10 s idle waits out the bound and completes as before. It is decided by the first login against main's QEMU, interleaved, 60 a side (the effect is ~30 ms, under the ±7-9 ms of 20 a side), with the restored login no worse, and the ledger with the TPM kprobes shows the short commands do not sleep and the RSA primaries still do. Prior art: Cloud Hypervisor's CRB runs the command in the write with a 100 ms receive timeout, and a slower answer fails the guest's TPM for good (cloud-hypervisor/cloud-hypervisor#9053, 2026-10-11, open; its fix #9054, a worker as QEMU has, closed unmerged). QEMU's backend has used its thread pool since c4fb8561bcec (2018), whose completion bottom half tpm_backend_finish_sync waits on. I found no bounded or polled completion of a TPM command in qemu-devel, QEMU's GitLab or swtpm's issues (searched 2026-12-03), and no measurement of either path in a guest besides lever 3's.

Measured (bench, spin's shape, the release's image, main's kernel and QEMU of parts run 47231873254 against the same with 0013, parts run 47231867269, shirudo 412dc8f3, 2026-12-03). The first login −13.3 [−19.9, −6.7], p50/p95 915/952 to 901/928 (lab 47234042415, 60 a side); restored +1.4 [−0.1, +4.3] evicted and −0.1 [−1.4, +2.8] cached, within noise (lab 47234045520, 20 a side). The ledger with the TPM kprobes (lab 47234050891, 5 a side): a boot's 326 commands slept in tpm_transmit 23 times instead of 326, and spent 87.5 ms there instead of 133.8, a command 0.20 ms instead of 0.30 at the median. The ones that still slept were the boot's first, before the thread pool had a worker, and those swtpm took longer than the bound to answer, 0.6-0.9 ms at the median and up to 2.2. No command on this login's path took over 20 ms, so the BQL held a millisecond at most where an RSA primary would have held it for its whole time. The gain is under the −30.4 the unbounded write measured, which was with shirudo 88f9888 on a first login of 1236 ms at the median; with 412dc8f3 it is 915, and the bounded write leaves 23 commands a boot sleeping that the unbounded one did not (inferred: the two were not run side by side). Carried (qemu/patches/0013, "What the machine carries").

What the machine carries

This table lists every change the tree makes for boot time, with what it earns in spin's shape. It is the current state. The log tells how each change came in. A row's evidence is one of these:

  • measured: its own arm, in spin's shape;
  • group: an arm that took back its group (below);
  • ladder, lane, runner or laptop: measured in another shape, on another login, on the lab runner of 2026-09 (Ryzen 9 5900X), or as a lead;
  • mechanism: what it removes is visible, but no goal number has timed it;
  • unmeasured.

A row that is not measured or group is a candidate for deletion, which rule 5 of docs/measuring.md decides. Functional rows (security, correctness, a consumer's contract) are listed so that nobody takes them for boot time.

The rows are the records in docs/experiments with "decision": "carried", rendered by spin-machine-dev docs tables and on the site.

What holds each patch. Every patch the table names, and QEMU's 0003 and 0004, which are not for boot time, has a test that fails when the patch is lost or rebased into doing nothing, since either still builds and boots. QEMU's are in qemu/README.md ("The patches"), qboot's in qemu/qboot/README.md, swtpm's in qemu/swtpm/README.md, the kernel's in kernel/README.md. OpenSSH's is held by its build, which looks for the patched condition in the auth2.c it compiles, and by boot:sshd-delay. The qemu, qboot, kernel and openssh-source entries of versions.yaml name the checks a bump runs.

What only the lane uses. spin's path earns nothing from sshd-vsock.socket.d/10-lane.conf, sshd@.service.d/10-lane.conf, sshd@.service.d/keygen.conf or the masked systemd-nologin.conf. The probes still offer login=lane, and the no-systemd floor uses it. Whether the image keeps a vsock login of its own is the maintainer's decision ("Open questions").

What spin does, not the image. spin no longer lingers its user (cold −36.1 [−45.8, −23.6], labs 44785179901, 44785565313). Its supervisor's forwarder order is the proposal in "Open experiments".

How the groups were decided

The groups were decided by one prestart run in spin's shape, 20 boots each, against v20261120.04 as published (lab 44818953987). The base read 453/464 cold, 124/144 restored and 93.0/120 restored into a QEMU started ahead. Each cell is the Δp50 of taking the group back.

Arm Takes back Tree Cold Restored Into prestarted
A every kernel patch --kernel run:44812049304 +67.5 [+62.5, +72.4] +8.1 [−8.4, +20.1] +12.1 [−6.5, +21.2]
A1 0006, 0009, 0011 --kernel run:44812044088 +1.2 [−4.5, +8.3]; at 40 boots −2.5 [−8.4, +1.8] −5.2 +1.3
A2 DEFERRED_STRUCT_PAGE_INIT --kernel run:44837940315 (lab 44839538785, 40 boots) −2.5 [−9.3, +3.8] +1.1 −4.0
A3 the loop and 8250 counts --kernel run:44837906170 (lab 44839538785, 40 boots) +5.3 [−3.2, +15.0] +1.7 −4.6
B QEMU 0001, qboot's pam.patch --qemu run:44812062232 +11.5 [+6.7, +20.2] +4.4 +0.9
C-masks 16 unit masks --edit carry-masks +57.5 [+49.0, +63.0] −0.7 +0.1
C-generators 8 generators, 3 tmpfiles rules --edit carry-generators +16.7 [+11.6, +23.3] −5.3 −1.3
C-logging PID 1's quiet logging, the printk sysctl --edit carry-logging +2.4 [−2.3, +7.8]; at 40 boots −1.8 [−7.7, +3.2] −4.0 +0.6
C-coldplug the coldplug filter --edit carry-coldplug +14.9 [+8.2, +19.8] +463.7 +358.0
E rcu_expedited, driver_async_probe --append 'driver_async_probe= rcupdate.rcu_expedited=0' −1.4 [−4.9, +3.1] +1.4 +1.7
F qboot, for SeaBIOS --boot --bios=bios-256k.bin +68.5 [+62.7, +71.7] −1.9 +7.4

A1, A2, C-logging and E were deleted (#345, #356, #354, #352); --edit carry-logging went with fast-boot.conf, the last file it edited (2026-11-22). The rest earn what the cold column says. On one vCPU, every unit, generator and exit before the login is on the login's path. The carry-* edits stay in internal/lab, so the ablation can run again when the shape, the kernel or systemd moves. An edit checks what it undoes, so an edit whose item was deleted fails on later releases.

Measured and rejected

An idea already here needs a new reason, not a new run. The tables group ideas by the part they touch, oldest first within a group. Each is the records with "decision": "rejected" and the section named under its heading. The "Shape" column says which shape a row was measured in, and a row measured in another shape than spin's has such a reason.

Kernel and its command line

Records with "section": "kernel" (rendered).

Firmware, QEMU and the machine

Records with "section": "firmware" (rendered).

systemd and the image

Records with "section": "image" (rendered).

The login

Records with "section": "login" (rendered).

The restore and checkpoints

Records with "section": "restore" (rendered).

QMP and vsock

Both transports were measured in spin's shape on the bench, 20 boots, with the transport probe (lab 44912471522, v20261121.01, 2026-11-21). Each ceiling is what the goal number would gain if the part cost nothing. None is above the noise (±7-9 ms cold, ±13 restored at 20 boots), so none was built.

Records with "section": "qmp" (rendered).

Memory and the host

Records with "section": "memory" (rendered).

Open experiments

The rows are ranked by ceiling. A row stays here until it is decided, and then moves.

The rows are the records in docs/experiments with "decision": "open", rendered by spin-machine-dev docs tables and on the site.

The floor is a bound and never a candidate: systemd stays (AGENTS.md, "What must not break").

Open questions

No lab run answers these questions.

  • Does the image keep a vsock login of its own? spin does not use the lane (see "What the machine carries"). This is the maintainer's decision.
  • Is 10-seats.conf still needed? The control that should fail passes on systemd 259 (#240).
  • What seeds the guest's RNG without virtio-rng? It has to be answered before the removal is measured.
  • musl under long-running load. No run has measured it (31a57e7).
  • page_reporting_order. Revisit only if memory per host becomes the limit (docs/memory-and-disk.md).
  • The kernel CVE judge. 9 CVEs apply with a fix later in 7.3, and 1 has no fix (0ce27ad, against 7.3.1; the kernel is 7.3.5 on 2026-11-20).
  • The min_ttl_ms evidence disagrees. 47aa681 and the LRU_GEN comment in kernel/Dockerfile say different things (docs/log/2026-09-28-f7cd1ab-47aa681-337c08d.md).
  • The guest clock on 09-30. 1d5e7f5 blames chrony, which had left the image on 09-10 (c7af4d3). The fix (time by /proc/uptime) stands either way.