Skip to content

kernel: the boot's device-setup exits as one change, 0021-0025 (#627) - #699

Merged
aledbf merged 3 commits into
mainfrom
kernel/627-device-setup-exits-on-07
Nov 23, 2026
Merged

aledbf merged 3 commits into
mainfrom
kernel/627-device-setup-exits-on-07

Conversation

@aledbf

@aledbf aledbf commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Why

The goal is a cold boot to the first SSH login under 100 ms. Five kernel patches each remove VM exits from the boot's device setup (#590, #591, #592). Alone, none moved the first login past noise. As a bound the five read −7.4 [−12.1, −2.8] at 60 a side (lab 45114405201). #627 asked for them decided as one change at 120 a side against the release, with restore-first beside it. Measured that way against v20261123.07, they take 9.4 ms off the cold first login and leave the restore unchanged, so they are kept.

This replaces #663. It is rebased onto main (kernel 7.3.6, #645's 0014-0020) and re-measured against v20261123.07, on a new branch, because #663's branch is not force-pushed.

What

  • kernel/patches/0021-0025: the bound's five, from archive/exp-batch2-bound, numbered after budget: the decompressor's copy, LZ4 and parse_elf, 21 ms (bench) before the kernel's clock #645's 0014-0020. They apply to 7.3.6 with --fuzz=0. Each changelog says what was measured.
  • kernel/Dockerfile and kernel/README.md: one vmlinux assertion per patch.
  • docs/boot-time.md: a row in "What the machine carries". The IOAPIC row in "Measured and rejected" points to it, and the open row is gone.
  • docs/log.md: the dated entry.

Measured

Bench, nested, spin's shape and login, against v20261123.07, interleaved. The kernel is parts run 45256426877.

Δp50 [95%] boots a side lab
first login −9.4 [−14.2, −5.7] 120 45260781177
sshd accepting −9.5 [−14.4, −5.5] 120 45260781177
restored login, evicted −0.4 [−2.0, +1.7] 60 45261629539
restored login, cached +0.2 [−6.6, +7.3] 60 45261629539
state size +0.0 MiB [−0.1, +0.2] 60 45261629539

0022 keeps the risk #627 named. Upstream a2f1e22390ac took out pci_restore_state()'s refusal of a state that was never saved. So 0022's gate (AER, EEH, s390, Xen pcifront, reset_root_port) has to grow by hand with whatever calls error handlers next. It stayed in the set because the set was fixed before the run.

Checks

  • Parts run 45256426877: the patches apply to 7.3.6 with no fuzz, checkpatch --strict is clean, sparse says "the patches add no warning", and "kernel patches: each is in this vmlinux" passes.
  • The commit after that run changes only changelog text, so the vmlinux that was measured is the one this branch builds.
  • go tool task lint test passes locally.

Closes #627.

🤖 Generated with Claude Code

aledbf and others added 2 commits November 23, 2026 17:08
The five kernel patches of #590, #591 and #592 that each remove VM exits
from device setup, carried together to be measured as one arm: alone each
read within noise, as a bound the five read −7.4 [−12.1, −2.8] at 60 a side
(lab 45114405201). Rebased onto 7.3.5 as pinned (they apply unchanged),
remade with git format-patch, checkpatch --strict clean, and asserted on the
vmlinux each goes into. The budget entry names the run that decides it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…#627)

Each changelog now gives the exits measured gone and what the five
together did to the first login, measured against v20261123.06.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
As one change against v20261123.07 (bench, spin's shape and login): the
first login −9.4 [−14.2, −5.7] and sshd accepting −9.5 [−14.4, −5.5] at
120 a side (lab 45260781177); the restored login −0.4 [−2.0, +1.7]
evicted and +0.2 [−6.6, +7.3] cached, 60 a side (lab 45261629539). The
row moves to "What the machine carries", the log has its entry, and
each changelog carries the .07 numbers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf marked this pull request as ready for review November 23, 2026 20:47
@aledbf
aledbf merged commit 4f23853 into main Nov 23, 2026
12 checks passed
@aledbf
aledbf deleted the kernel/627-device-setup-exits-on-07 branch November 23, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kernel: the boot's device-setup exits as one change (0014-0018 together read −7.4 ms; none alone resolves)

1 participant