From dfce0be2a3a9e085c3eb2d9b606af01cb1a46431 Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Mon, 23 Nov 2026 01:42:44 -0300 Subject: [PATCH 1/2] versions: systemd-bootchart at the fork's IO graphs, each interval on one scale Co-Authored-By: Claude Opus 5.5 --- docs/measuring.md | 9 ++++++--- versions.yaml | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/measuring.md b/docs/measuring.md index 667e8f26..6239c3ac 100644 --- a/docs/measuring.md +++ b/docs/measuring.md @@ -118,9 +118,12 @@ its exit or to the chart's end. Its colour is the CPU it used (blue) and the tim 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`), averaged over 250 ms and each scaled to its own peak, so -a few kilobytes fill 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 +(/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. diff --git a/versions.yaml b/versions.yaml index 59c0ac97..0a7027bd 100644 --- a/versions.yaml +++ b/versions.yaml @@ -210,8 +210,8 @@ - name: systemd-bootchart kind: download source: https://github.com/spin-stack/systemd-bootchart/archive/{version}.tar.gz - version: 3125dea07c5170ee25dd81717335f247972823ab - pin: 425ddae00a9a64f4f14eeaa0644e349fe4f1a43952d19c279dcb35580e8e7475 + version: 5c358a2c9ded32ed82c98bc60598a291648d8bbd + pin: 863c5c83f3f1b7dd6595614d72cc42b1f5b748350834a96079d283d7d6dee0b6 track: commit https://github.com/spin-stack/systemd-bootchart.git main note: >- internal/lab's bootchart edit: spin-stack's fork of systemd-bootchart, compiled by From 11e942de62a912624935c04e47c6ff1e322c42d7 Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Mon, 23 Nov 2026 01:47:58 -0300 Subject: [PATCH 2/2] docs: the boot chart's IO graphs, decided on three replayed boots Co-Authored-By: Claude Opus 5.5 --- docs/log.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/log.md b/docs/log.md index 3bd8e2e7..8e6d07c7 100644 --- a/docs/log.md +++ b/docs/log.md @@ -633,6 +633,8 @@ Checked against the probe it replaced on the bench fleet, `lab dispatch ssh-firs **11-23 · lab · the ledger splits the span before the kernel's clock (lab 45110630795, #537, #611, this change).** The ledger had one span from the moment before QEMU is exec'd to the kernel's 0, ~20 ms longer than `boot:firmware-stages`' 73.7 ms, and docs/measuring.md read the 20 ms as spin-machine's start and the held start, inferred. Now the host watches spin-machine's children for QEMU's exec (a bracket of ±0.11 to 0.14 ms), and the kernel's "kvm-clock: using sched offset" line puts the guest's first instruction at the kernel's 0 less it. *Six boots of v20261123.04 on its traceable kernel* (bench, spin's shape): spin-machine to QEMU's exec 2.1 ms, QEMU's exec to the guest's first instruction 49.4, the guest's first instruction to the kernel's clock 47.4 (63.2 on the run's first boot: its ~15 ms more are all in that part). *The premise that broke:* the 20 ms are not before QEMU. They are after its exec, on a machine that firmware-stages does not boot (#611). *Status:* in place. +**11-23 · lab · the boot chart's IO graphs draw each 5 ms on one scale (spin-stack/systemd-bootchart#11, labs 45110751133, 45113479570, #538, this change).** The fork averaged 250 ms around each IO bar and scaled each graph to its own peak. A 5 ms read burst came out as a plateau over the whole chart, and the boot's one 164 KB write filled the write graph for 150 ms. The three boots of lab 45110751133 were replayed through `--proc` and drawn both ways. Unsmoothed on one scale, the ~8 MB burst at the chart's start, the later read bursts and the write each appear where they happened and at their sizes against one another. The other drawing shows none of that, so the fork now draws this one. Lab 45113479570 is the pinned fork's chart of v20261123.04, three boots. *Status:* in place. + ## 2. Rework cycles Each cycle: the sequence, what each step measured, and the lesson.