Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/log.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 6 additions & 3 deletions docs/measuring.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down