This page is the method behind the goal's two numbers (AGENTS.md, "The goal"). Where the numbers stand, where their time goes, and what was kept, rejected and is open are in boot-time.md. The lab's commands are in cli.md.
- Find the phase in
docs/boot-time.md, "Where the time goes". - Look the idea up in "Measured and rejected" and in "What the machine carries". An idea already there needs a new reason, not a new run.
- Write its record in "Open experiments" first (
docs/experiments,"decision": "open"): the phase, its p50, the ceiling, the rule that decides it. - Measure it with the rules below. The commands are in
docs/cli.md, "Measuring". - When it is decided, move the record: its
decisionbecomescarried("What the machine carries") when it is kept, orrejected("Measured and rejected") when it is not. Then write its entry, dated and with its run, as a file of its own indocs/log(internal/docsrecsays what it holds).
- Write the budget entry first. Before an experiment runs, write its record in "Open
experiments" (
docs/experiments). Name the phase it attacks indocs/boot-time.md's budget tables, the phase's p50 today, its ceiling (what the goal number gains if the phase cost nothing), and the result that would decide it. An experiment whose ceiling is under the noise needs more boots before it needs a run. - Measure spin's shape. Boot the CPUs, memory, ceilings, disks and login that spin gives a workspace (the probes' defaults), and name the shape on every table. A gain in another shape is a lead.
- Compare only inside one interleaved run. The arms of a comparison boot in turn on one host, 20 boots or more each, in one lab run. Two runs are two machines: never subtract a number in one run from a number in another. Runs may go at once, each on its own bench instance.
- One acceptance rule. Report Δp50 with its bootstrap 95% interval. A change is a gain only when that interval excludes 0. At 20 boots a side the interval is about ±7-9 ms. A smaller effect needs more boots, not a second look, and halving the interval takes about four times the boots.
- Deleting follows the same rule, read the other way. Something carried is deleted when the Δp50 of taking it back includes 0 and its upper bound is under +5 ms. Taken back means the distribution's or upstream's own value. An item for boot time is read on the cold row, because a restored guest does not boot. The restore rows only show that nothing broke, and at 20 boots they move ±13 ms on their own. An upper bound between +5 and the noise needs 40 boots.
- One change per arm. A comparison that decides a change carries that change and nothing else. A floor or a bound is different. It may combine every change its question needs, because it answers what is possible, not what one change is worth.
- An instrument must see the phase it claims. The kernel's "Freeing" clock starts after the bzImage is decompressed, so it recorded the bzImage's cost as zero while sshd accepted ~10 ms later. Before a phase's number is trusted, check that something on the other side of it moved by the same amount.
- Measure the bounds each release. A bound that is not re-measured stops being one. The
no-systemd floor bounds what systemd costs.
releases measuremeasures it beside every release, and report.yml keeps it in the release's record (docs/releases.md, "Bounds"), with the floor's Δp50 against the release and its interval, read by rule 4 as any Δ is. - A laptop finds leads. It does not decide anything. Its noise has read 61 against 105 ms
minutes apart (
de9b7db), and it is not nested.
The decision itself is AGENTS.md's. A change goes in when it moves one of the two numbers, interleaved against the release, without making the other worse. It also goes in when it is functional.
A probe that restores saves its checkpoint once the guest's boot has finished, never at the cold login. spin checkpoints an empty workspace, a project's workspace or a prebuild long after its boot, never while the boot is still running (#578). A state saved at the login carried the boot's remaining jobs, and every restore of it ran them beside the login it measured.
Finished is three answers, asked over SSH as the probe's user (bootFinished, in
internal/lab/restore.go):
systemctl is-system-running --waitsaysrunningordegraded: the system manager is out of its start.multi-user.targetis active andsystemctl list-jobslists nothing. The manager calls its start finished the first time its job queue empties. A unit that starts part of the boot once the first jobs are done (#581'sType=idleone) finds that moment, so the first answer alone can come before that part has run.systemctl --user is-system-running --waitsays the same of the user's manager. root lingers, so its manager starts in the boot.
Nothing is waited for after that. A settle of 3 s more, long enough for free page reporting's 2 s delay and for the probe's own sessions to close, moved neither the state (−0.0 MiB [−0.4, +0.3]) nor the restored login (+0.4 [−0.6, +1.3]), so it would cost only bench time (bench, spin's shape and login, v20261123.01, 40 a side, lab 45095349849, measured 2026-11-23).
restore-first records when its guest answered as finished, which includes the SSH login that
asked. The probes that save are restore-first, prestart, restore-together, run-delay and
transport. lab compat's checkpoint boots a shell as PID 1, with no systemd to finish. A
restore measured before this rule saved at the login, so its numbers do not compare with one
measured after (docs/log/2026-11-23-a-probe-saves-once-the-guests-boot-has.md).
A boot chart shows where a boot's time went: which processes ran, when, and what they waited
for. It finds where to look, and a number then decides (rule 4). Each release has one in
docs/releases (RELEASE-bootchart.svg, with its dependency view as RELEASE-chain.txt,
RELEASE-order.dot and RELEASE-order.svg, linked from docs/releases.md), and any tree gets one
from the lab:
spin-machine-dev lab dispatch bootchart --reps 3 \
--tree 'release=--from release --spin-machine release --edit bootchart' \
--tree 'pr=--from release --spin-machine release --edit lane --edit bootchart'
The run's artifact keeps TREE-REP.bootchart.svg and TREE-REP.plot.svg beside result.json,
with the dependency view of the same boot: TREE-REP.chain.txt, TREE-REP.order.dot and
TREE-REP.order.svg.
lab show RUN_ID downloads them into _output/lab/runs/RUN_ID/result/. A browser draws them.
TREE-REP.bootchart.json is the chart's samples, for a comparison a script makes.
What it shows. The bootchart edit makes systemd-bootchart PID 1. It forks a sampler and
execs systemd. On the shirudo machine it is the initrd's PID 1 and execs the initrd's systemd. The
sampler outlives the switch to the root, so that chart has the initrd's processes before the
root's: its systemd, udevd, and shirudo init, labelled shirudo-initrd.service. Every 5 ms (200 Hz) the sampler reads each process's CPU time and wait, and the
CPU's and the disk's use, until the first login's command signals it. The chart's clock is the
kernel's, from 0 at the kernel's start. pid1 is where the sampling starts, 82 ms p50 on
v20261122.03's plain machine. chart_end is where the first login's command ran, 320 ms p50 on the same release
(lab 45037354657, bench, spin's shape, 3 boots). On v20261127.03's shirudo machine they are 191
and 3510 ms p50 (lab 46216360055, bench, spin's shape, 2 boots). The chart ends there, with the command itself as
its last process. Each process is named by what it became, its comm read again whenever it
ran, and labelled with its unit, read from its cgroup v2 path. Each bar is drawn from its start to
its exit or to the chart's end. Its colour is the CPU it used (blue) and the time it waited to run
(yellow), with an orange strip where it read or wrote, as the graph's title says. "Top CPU consumers" sums each process's CPU time over the chart, and "Top CPU consumers
by unit" sums it by unit. Every process that used CPU while the chart ran is drawn, however
briefly. Only what did not run, idle kernel threads mostly, is left out. The graphs above the
bars are the whole guest's. IO read and write are the kilobytes the kernel sent to its disks
(/proc/vmstat's pgpgin and pgpgout), one bar for each 5 ms, so a burst starts where it
happened. Both graphs share one scale, the larger peak, which each title gives as MB/s at full
height, so a write's height reads against the reads. Each graph labels its own peak. Upstream
averaged 250 ms around each bar and gave each graph its own peak: a 5 ms burst drew as a plateau
that rose before it began, and 164 KB written filled the write graph (#538). A boot that writes
nothing after the chart starts draws an empty write graph. CPU pressure, under CPU utilization, is the share of each 5 ms in
which some task waited for the vCPU. There is no graph of the summed wait: it counted two waiting
tasks twice and sat at its ceiling on one vCPU (#534). systemd-analyze plot is the same boot drawn
by unit: when each unit started activating and when it was active.
Reading the plot. The plot is taken once the boot has finished, after the probe's three later
logins (the chart, its data, the plot itself), so it runs past the first login. A dashed green line
marks the first login at chart_end. Four things on it are easy to misread, all seen on
v20261122.04's plot (release run 45041820698, first login at 340 ms):
- Right of the line came after the login and did not hold it: udevd's readiness at 395 ms,
a session scope near the plot's end (
session-4.scopeat 418 ms on .04,session-5.scopeon .06), which is one of the probe's later logins and never the first, and the getty andmulti-user.target, which wait for the serial console's device. The first login's own session scope ended before the plot was taken, and the plot leaves out a unit that is gone. - A red bar is a unit's activating time on the wall clock, and on one vCPU that includes the time
its process waited to run.
systemd-logind-varlink.socket's 18 ms andtmp.mount's 16 ms both end at 175 ms, when PID 1 ran again after forking five services. The plot says when. The chart says whether the time was CPU or waiting. - A stretch where no unit changes state is PID 1's or the kernel's own work: 110 to 151 ms, after the unit files load. The chart's PID 1 row and its CPU graph say which (#521).
dev-vda.devicereads activating from 110 ms to the plot's end. No unit queues a job for it and none depends on it: PID 1 marks ittentativeat its start, because root is mounted from it, andpluggedwhen udevd announces the disk, and the plot draws tentative as activating (debug boots of v20261122.06, lab 45070718529). Nothing waits for it.
Reading the chain and the graph. Once the boot has finished, the probe asks
systemd-analyze critical-chain about the units the login waits for: on spin's path the forwarder
that stands for spin's supervisor, ssh.service and the login user's manager (user@0.service);
on the lane, sshd-vsock.socket and the user's manager. TREE-REP.chain.txt keeps that, and below
it the login user's own manager's chain (systemd-analyze --user critical-chain).
TREE-REP.order.dot is systemd-analyze dot --order restricted to edges whose two ends are both
on the system's chains, and TREE-REP.order.svg is graphviz's drawing of it. Every edge there is
green, an After=: an arrow from A to B says A is ordered after B.
- A unit's
@is when it became active, in ms from PID 1's start, not the kernel's. The plot and the chart use the kernel's clock: addsystemctl show -p UserspaceTimestampMonotonic, 87 ms on v20261122.06. Its+is how long it was activating. - Each line's child is the unit it was ordered after that became active last. systemd-analyze
infers that from
After=and the times. A unit on the chain was ordered behind its child, and the time between the child's end and the unit's start was the unit's wait for its ordering, or PID 1 starting it. Time a unit's process spent waiting for the vCPU is inside its+, and the chart says how much. - A chain ends at
-.sliceand-.mount, active at PID 1's 21 ms on v20261122.06 (108 ms of the kernel's clock): what happens before that is in the plot and the chart, not here.
On v20261122.06 (lab 45070438471, bench, spin's shape, boot 2): the forwarder became active at
161 ms, 3 ms after basic.target at 158, which came after sockets.target and docker.socket,
after sysinit.target at 149, after systemd-tmpfiles-setup.service (123, +25), after
systemd-journald.service (63, +55). ssh.service was active at 123 ms (107, +16). The graph
shows the same: the forwarder's arrows go to ssh.service and to basic.target. A chain says
what a unit was ordered behind, never that the login waited for it. With the forwarder moved off
basic.target it became active ~33 ms sooner and the first login did not move (labs 45071549627,
45071102677): the login's session waits for systemd-logind.service, which user@0.service's
chain shows active at the same time in both (#553). Only ssh-first says whether a chain holds the login.
What it costs. The sampler runs on the guest's one vCPU beside the boot it draws. With the
edit, ssh-first read the first login +10.4 ms [+4.5, +16.8], sshd accepting +8.5
[+4.6, +11.7], the console prompt +15.7 [+12.3, +19.7], and QEMU's RSS +4.0 MiB (lab 45036503632,
bench, spin's shape, 20 a side, v20261122.03). The chart names the sampler bootchart, and its header
says how much CPU the sampler used. So a bar on a chart is longer than it is without the sampler. The probe's own
first_login is the login that stops the chart, its command included: 428 ms p50 in lab
45037354657, beside ssh-first's 422 with the edit. Neither is a goal number.
How to compare two charts. Compare charts from one run, and the probe boots its trees interleaved, as every probe does. Two charts taken apart are two machines (rule 3). Read three repetitions of each tree, because one boot's bar can be another's outlier. Then look for what moved:
- a process that starts later, and the one it waited for, shown by the dashed line to its parent;
- a bar whose yellow grew, which waited for the vCPU behind something else;
- "Top CPU consumers", a process's CPU time, which is less noisy than when it ran.
A chart that shows something to cut becomes an experiment with a budget row (rule 1), measured by
ssh-first. Release to release, docs/releases.md links each release's chart beside the one
before it.
What it is not.
- It is not a goal number, nor a phase's cost. A bar is wall time with the sampler running, on a vCPU that everything shares. "Blame, the critical chain and log gaps are not savings" holds for it too.
- It does not see before PID 1. QEMU, the firmware and the kernel's own time are before
pid1.initcallsandboot:firmware-stagessee them. - It does not see every process. One that starts and exits between two samples, 5 ms apart, is never seen. The unit plot has each unit.
A ledger accounts for one boot from the moment before QEMU is exec'd to the first login, and every millisecond in it has an owner. Where a boot chart samples every 5 ms, the ledger reads the scheduler's own events from the kernel's start, so the time between two of them belongs to whichever task the vCPU ran. It finds where to look. A number then decides (rule 4).
spin-machine-dev lab dispatch ledger --reps 3 \
--tree "release=--from release:TAG --spin-machine release --kernel traceable:TAG --edit ledger \
--append '<lab.LedgerAppend>'"
It needs a kernel that can be traced. Lockdown at confidentiality takes tracefs away
(kernel/README.md), so a release's own kernel records nothing. traceable:TAG is the kernel
published beside release TAG, lab-only: the release's source and config with
CONFIG_LOCK_DOWN_KERNEL_FORCE_NONE=y in place of the forced level (confidentiality before #734,
integrity from it on) and every other option held to the release kernel's (#536). The tree's
boots leave lockdown= off the command line, which would raise it again (#734). Releases before the first one built with it have none. The shirudo machine runs at integrity, which leaves
tracefs and kprobes alone, so its ledger reads a release's own kernel or a parts run's as well
(lab 46266299371, 2026-11-29). releases measure takes one ledger of each release on it, beside its boot chart, and its record keeps it as
docs/releases/TAG-ledger.txt.
It boots the way the release boots. A release from #697 on publishes its traceable kernel as
a vmlinux that randomizes itself, verified as the release's is, and the tree boots it through
PVH as the release boots its own. Up to v20261123.07 it was a bzImage, and traceable:TAG still
fetches that for those releases. So the ledgers of v20261123.07 and of every release after it
until #697 booted through a decompressor their release no longer ran. On v20261123.07, 10 boots a
tree (lab 45260129735), the bzImage's firmware, entry and setup read 44.3 ms and the vmlinux's
19.4, −24.9 [−25.8, −23.4], while QEMU's start read 8.4 ms longer through PVH (50.3 against 41.9,
the vmlinux's load, #698): the kernel's 0 is −16.8 [−18.2, −15.1] sooner. The tree's manifest names the kernel and how the machine
enters it, and the ledger names that window by it.
--append takes lab.LedgerAppend as it stands in internal/lab/ledgerprobe.go: the scheduler's
tracepoints from the kernel's start, on CLOCK_MONOTONIC, into a 2 MiB buffer that drops what
does not fit rather than the boot.
The run's artifact keeps TREE-REP.ledger.txt, TREE-REP.ledger.json, TREE-REP.trace.txt and
TREE-REP.journal.txt beside result.json. Perfetto opens the trace as it is.
What it shows. The table cuts the kernel's clock into windows where the boot and the login
change hands. Each cut is an event in the trace: PID 1's exec of init, sshd-session's exec,
sshd-auth's exec and exit, the fork of the login's process, its exec of the shell and of
/usr/bin/true, and true's exit. Each window lists its CPU by owner, and idle. An owner is a task's
unit, read from its cgroup after the login or from systemd's ExecMainPID, else its parent's.
Kernel threads are one owner. PID 1 is the kernel's until it execs init, because the kernel's
initcalls run in it. On spin's login (login=spin) PID 1 execs the lab's stand-in for spin's
handoff first, a shell that places spin's host key and execs systemd, and the ledger gives it its
own window, spin's handoff, to PID 1's exec of systemd, with its length recorded as handoff.
Its mounts and its mkdir are unattributed. It took 6.3 to 7.9 ms in three boots, 2.3 to
3.7 of them idle on cold reads of the shell and mount (lab 45088516505, v20261123.01, 2026-11-23).
systemd mounts /proc and /run itself when no one has, so part of that window is moved from
systemd's. spin's own vminitd runs before systemd too, does more, and is not measured here. A task forked by PID 1 that nothing names is unattributed. The generators
and the executors that exited before the login are the usual ones. A task named 9 is
systemd-executor, which PID 1 starts by its file descriptor. A second table gives each owner's
time from PID 1 to the login by state: running, runnable (waiting for the vCPU), disk
(uninterruptible) and sleeping. The journal's lines for the login's phases come last, at
journald's receipt of each. They are no earlier than when they were written, so the windows are
cut from the trace, not from them.
Why it adds up. On each CPU the time from one switch to the next is the task the first one
put there, so the owners of a window add up to its length. That holds by construction, unless the
trace lost events. A switch away from a task the CPU was not running counts as a break, and
breaks is 0 in every boot so far. The parts that do not hold by construction are these:
- The kernel's 0 on the host's clock. The host asks the guest for 20 markers in the trace, 50 ms apart. Each marker was written after its request left and before its answer arrived, so each puts the kernel's 0 in a bracket. The brackets agree only if the two clocks run at one rate. Spread over a second they met within ±0.15 ms (lab 45062836688).
- The trace's clock against the kernel's. The trace and the journal are on CLOCK_MONOTONIC,
and the kernel's 0 is its sched clock's, read from kvm-clock in
kvm_sched_clock_init. CLOCK_MONOTONIC starts level with the sched clock, then runs on jiffies until the switch to kvm-clock at fs_initcall, and every tick it misses is lost for good. At late_initcall the kernel prints both clocks as one tick read them ("sched_clock: Marking stable (MONO, …)->(SCHED, …)", in ns). Their difference ismonotonic_lag, 18-25 ms nested and 11-14 on metal. The ledger moves the trace and the journal forward by it, and refuses a journal without the line.kernel_zerois the markers' 0 less the lag. A kernel that writes a port at the sched clock's 0 checked it:kernel_zerolands 0.03 to 0.14 ms before QEMU's trace stamps that write, in 10 boots on bench and 10 on metal (labs 45229897350 and 45230233764), and 11.6 to 20.9 ms after it without the lag (labs 45177818419 and 45177817516; all v20261123.04 with the marker kernel, spin's shape, #644). The first window, the kernel to PID 1's exec, is the one the lag lands in, and the ledger gives it to the kernel. dmesg is on neither clock: from that line on, printk's clock is the sched clock plus__sched_clock_offset, 10-15 ms behind it.initcallsandboot:firmware-stagesread the offset from the same line and add it back to "Freeing" (lab.PrintkLag, #666). - QEMU's exec on the host's clock. No clock in the guest sees it, and /proc stamps a process's
start in 10 ms ticks, so the host watches spin-machine's children from its own exec until one
is QEMU. The exec is between the last look that did not see it and the first that did:
qemu_exec_erroris half that bracket, 0.11 to 0.14 ms in six boots. - The guest's first instruction. QEMU zeroes kvm-clock with KVM_SET_CLOCK as the machine goes
to running, and the vCPUs start right after. No clock in the guest sees the ioctl, so the host
traces it: the probe arms a tracefs instance of its own on CLOCK_MONOTONIC, with
sys_enter_ioctlfiltered to KVM_SET_CLOCK in the kernel, andrunningis that stamp. kvm-clock's 0 is not it. That 0 iskernel_zeroless the kvm-clock the kernel read as it made it the scheduler's clock ("kvm-clock: using sched offset of N cycles", in ns), and KVM bases it on its master clock's last update,kvmclock_leadbefore the ioctl: 2.78 ms (1.98 to 3.64) on bench and 4.72 (4.44 to 4.98) on metal, 12 boots each (labs 45888511048 and 45888515410, v20261126.02). A kernel that writes a port as it reads that kvm-clock put it 2.80 and 4.72 before the ioctl (#665).boot:firmware-stagesplaces the kernel's clock on QEMU's trace at KVM_SET_CLOCK plus N, which is late by the lead. - The residue. That is
first_loginlesskernel_zeroand the command's exit on the kernel's clock: sshd's answer crossing vsock and the client reading it. It read 0.4 to 1.2 ms in six boots. A residue that is negative or large says the alignment is wrong.
So the span before the kernel's clock is three parts, which add up to kernel_zero by
construction: before_qemu, spin-machine to its exec of QEMU; qemu_start, QEMU's start and the
held start's monitor to its KVM_SET_CLOCK; and guest_to_zero, the firmware, the
kernel's entry (through PVH, or a bzImage's decompression) and the kernel's setup until its clock
runs. A KVM_SET_CLOCK outside QEMU's exec and the kernel's 0, or after kvm-clock's 0, refuses the
ledger, as a journal without the sched offset line does. kernel_zero read 46 to 66 ms in 12
boots, the first the longest (lab 45888511048, bench, spin's shape, v20261126.02 on its traceable
kernel, a vmlinux entered through PVH):
| part | p50 | range |
|---|---|---|
before_qemu, spin-machine to QEMU's exec |
2.1 | 1.9 to 2.4 |
qemu_start, QEMU's exec to its KVM_SET_CLOCK |
28.3 | 26.5 to 29.3 |
guest_to_zero, KVM_SET_CLOCK to the kernel's clock |
17.8 | 15.5 to 34.7 |
On metal the same release read 6.4, 30.8 and 8.8 (lab 45888515410). Split at kvm-clock's 0,
qemu_start read the lead short and guest_to_zero as much long. An earlier run, v20261123.04
booting a bzImage, split at kvm-clock's 0 into 2.1, 29.3 and 47.4 (lab 45110630795).
In that run the first boot's extra ~15 ms was all in guest_to_zero. Without the lag it read
kernel_zero 97 to 114 and qemu_start 49.4. QEMU's exec to the kernel's clock was 78.4 there, and
73.4 [72.2, 81.1] in 12 untraced boots of lab 45177818419 (68.7 on metal, lab 45177817516).
boot:firmware-stages read 73.7 (lab 45062836494) on a machine of its own, without the disks,
the vsock and the hotplug ports a workspace's machine carries, and with no held start. Its anchor
is ~2.8 ms late on bench (#665), so its own number is ~71.
What it costs. The trace and sshd's DEBUG1 run on the guest's vCPU beside the boot they record. In spin's shape, 20 a side, interleaved (lab 45063070048, bench, v20261122.05):
| arm, against the release | first login | sshd accepts | console prompt | second login | QEMU RSS |
|---|---|---|---|---|---|
| the traceable kernel alone | −1.0 [−9.5, +4.9] | −5.6 [−12.1, +2.8] | +0.8 [−4.1, +4.7] | +1.0 [+0.3, +1.4] | +0.0 MiB |
| the kernel, the trace and the edit | +3.0 [−2.4, +15.9] | +5.1 [−0.1, +15.6] | +12.1 [+7.1, +17.6] | +2.2 [+1.1, +2.8] | +2.0 MiB |
The first login is within noise, and its interval reaches +16, so a ledger's numbers may run up
to ~16 ms long. The boot chart's sampler cost +10.4 [+4.5, +16.8] (above). The second login's
+2.2 is sshd logging at DEBUG1. The probe's own first_login is a login with the trace
running, and it is no goal number.
What it is not. It is not a goal number, nor a saving. CPU on a window's path says what the vCPU did. It does not say what the window would have been without it: a task that waits for the login may run in the login's window whether or not the login waits for it. It does not split the time before the kernel's clock past its three parts: firmware-stages' trace does, on its own machine. It names a unit only for tasks it can still see after the login, or that systemd remembers.
Each of these made a number say something it did not measure.
- The instrument measured itself. Quiet consoles,
--profileand a check that the log is whole now prevent it. The cases:- initcall_debug with a serial console (
c03ed89); - a wide function_graph filter, 26× inflation (
a31d7b2); - the
kvm:kvm_piotracepoint, 49.3 vs 27 ms (c049a21); trace_event=initcall(64d2901);- systemd debug logging, 212 vs 26 ms (
ad05544); - a shell harness throttling the console, 1424 vs 190 ms (
80f984b); - a log_buf_len of 8M, costing 4.9 ms (
5221690); - the probes' own logins left open, which a checkpoint then carried: ~5 ms on the restored login (lab 44809015139, fixed by #341);
- a connection to port 22 that only asked whether sshd accepts, before each login. On spin's
path the forwarder opened one to sshd, and sshd started a session for it beside the login:
4.1 ms on the restored login (lab 44978246896), and 4.3 ms of
ssh-first's accept to login (lab 44987441326).ssh-firstnow logs in over the connection that timedaccepts(#450).
- initcall_debug with a serial console (
- The instrument could not see the phase.
- The kernel's "Freeing" clock misses the bzImage's decompression.
boot:firmware-stagesnow times it from kvm-clock: ~21 ms (lab 44787491631). restore-first'sreadread the whole mapped-ram file, whose length is the RAM size and which is mostly holes: 2 GiB read for 155 MiB of data.
- The kernel's "Freeing" clock misses the bzImage's decompression.
- Blame, the critical chain and log gaps are not savings. logind was 63 ms in blame and worth
24, chrony 43 and worth 10, and udev 46 and worth 0 (
6aba37b,e2f6b8f). - Misattribution. BTF's first parse looked like XFRM (
e285dec). ksm/kcompactd's 2.00 ms is HZ resolution (cda04b1). vCPU descheduling was counted inside initcalls (64d2901). - Markers that come too early. The QMP greeting comes before the board is built (
8eef89d). SeaBIOS's banner comes before hardware init (6aba37b, #45). - Variants that did nothing.
systemd.mask=with the debug-generator masked (80f984b);- an
unmask_udevthat had become a no-op (b5f361f); rm -fon an/etcpath that did not exist (bb6bb89);- a mask that matched no file (image/build.sh now refuses one);
- a lab arm whose commit staged half of what it meant to change: #345's arm built the patches' removal without the config, and the options went unmeasured until lab 44839538785.
- A guest that is not spin's.
- A 128 MiB guest never plugged runs its OOM killer through the boot. It lost boots in
initcallsand stalled ~400 ms in ~20% of restores (labs 44784196287, 44788801555). - The lane's login moved numbers that spin's login does not have.
- spin's login without spin's host key handed over paid the image's keygen, which spin's own
path skips: ~7 ms of every cold login (#515).
login=spinhands it over since #575.
- A 128 MiB guest never plugged runs its OOM killer through the boot. It lost boots in
- Host noise. Interleaved boots on the bench fleet, one lab run on each instance, now prevent it.
The cases:
- a cold page cache right after
task build: 98 ms read as a 35 ms regression (f32d527); - a host building a kernel during the run (
9b5f0dd); - three runs of one kernel reading 59.5/96.8/167.7 ms (
5221690); - 3 boots a row, which is 5-11% noise (#81).
- a cold page cache right after
- Two runs are two machines. Absolute numbers drift between runs by as much as a release moves
them:
- v20261120.01's restore read 158.9 in run 44641240861 and 167.0 in 44727451080;
- main's kernel read a cold 467 in lab 44839538785, against v20261120.04's 456 in the report.
- Different hosts compared. The v20261026.01 notes compare a Ryzen 9 5900X with a Xeon
6975P-C. Numbers from construct (
docs/memory-and-disk.md, kernel patches 0001-0004, qboot) do not compare with the bench fleet's. - Nested KVM leaks between repetitions. A cold boot after a restored guest ran on the host is
~1.8× slower (#246).
restore-firstnow runs every cold boot before every restore and checks with mincore that the state is out of the page cache. - The page cache.
POSIX_FADV_DONTNEEDdeclines recently touched pages, 4.8 vs 251 ms (ab4844c).mincorelies for files the caller does not own (21a830c). fstrim right after rm trims nothing (251638d). - Lab plumbing.
- green on a skip (
8d8e97b); - concurrency groups cancelling queued runs (
a3ba5a6); - 108-byte socket paths (
299777b,f2c47f7); modprobeon a module-less kernel (5a70721,213cd07);- BuildKit comparing a file with itself (
b9d1985); - a tree whose QEMU predates an argument main's spin-machine passes, refused at boot.
- a package put into an overlay with a newer
/usrmtime than the image's update stamps: every boot of a--systemdtree ran ldconfig, sysusers, the hwdb and the catalog before the login, ~250 ms on both arms (lab 45229454155, #637).
- green on a skip (