Skip to content

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

Done

Description

@aledbf

Batch 2 measured five kernel patches that each remove VM exits handed to the host while the guest sets its devices up (#590, #591, #592). Each removed exactly what its source said, and none moved the cold first login alone. Together, as a bound, they did.

Exits (bench, nested, spin's shape and login, v20261123.04, 3 a side, lab 45113437048): 0014 (IOAPIC table read once) −384 IOAPIC accesses; 0015 (pci_save_state at add only where an error handler restores it) −128 MMIO; 0016 (virtio's vendor capabilities walked once) −114; 0017 (queue_select only on a change) −68; 0018 (msi_set_affinity skips an unchanged message) −56. Together −838 exits, −366 MMIO, the host's handling −5.2 [−11.2, +1.2] ms (lab 45114428660).

First login, ssh-first against the release:

Arm 60 a side (lab 45114405201) 120 a side (lab 45115330128)
0014 −4.5 [−7.8, +0.4] −2.0 [−4.3, +0.6]
0015 −4.3 [−6.8, +0.5] −1.3 [−3.5, +1.3]
0016 −5.8 [−8.2, −0.6] +0.9 [−1.8, +2.7]
0017 −2.8 [−6.6, +3.4] +0.6 [−1.8, +2.3]
0018 −0.1 [−3.1, +4.5] -
all five (a bound) −7.4 [−12.1, −2.8], sshd accepting −10.5 [−14.9, −4.1] -

Each arm was rejected by the acceptance rule. The bound is not a candidate (AGENTS.md). Branches are archived as archive/exp-590-ioapic-once, archive/exp-591a-no-save-state, archive/exp-591b-virtio-caps-once, archive/exp-592-l1-queue-select, archive/exp-592-l2-msix-once and archive/exp-batch2-bound (0017 there is refreshed to apply after 0016).

What would settle it: decide whether "the boot's MMIO exits in device setup" is one change, and if so measure it as one arm at 120 a side against the release, the set chosen before the run (the bound's five, or 0014 and 0015, the two largest, ~512 exits). 0015 carries a general risk that the others do not: upstream a2f1e22390ac took pci_restore_state()'s refusal of an unsaved state out, so its gate (AER, EEH, s390, Xen pcifront, reset_root_port) has to grow by hand. Prefer a set without it unless it is needed for the effect.

Activity

  1. aledbf commented on Nov 23, 2026

    @aledbf
    MemberAuthor

    Decided as one change against v20261123.07 (bench, nested, spin's shape and login), kernel = .07's plus 0021-0025 (parts run 45256426877): first login −9.4 [−14.2, −5.7], sshd accepting −9.5 [−14.4, −5.5], 120 a side (lab 45260781177); restored login −0.4 [−2.0, +1.7] evicted, +0.2 [−6.6, +7.3] cached, state +0.0 MiB, 60 a side (lab 45261629539). Kept: #699.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions