Skip to content

svg: the IO graphs draw each interval on its own, both on one scale - #11

Merged
aledbf merged 1 commit into
mainfrom
io-graphs-538
Nov 23, 2026
Merged

aledbf merged 1 commit into
mainfrom
io-graphs-538

Conversation

@aledbf

@aledbf aledbf commented Nov 23, 2026

Copy link
Copy Markdown
Member

Why

The machine's goal is a cold boot to the first SSH login in under 100 ms. The boot chart shows where that boot's time goes, and its IO graphs could not answer when a burst started or how large it was (spin-stack/machine#538).

What

  • Each IO bar is one sampling interval: what the kernel sent to its disks between two samples, per second, drawn over that interval. Upstream averaged 250 ms around each bar, so at 200 Hz a 5 ms burst came out as a plateau 250 ms wide that rose before the burst began. pgpgin and pgpgout are counted as each bio is submitted, so no smoothing is needed.
  • The read and write graphs share one scale, the larger of the two peaks. Each graph's title gives that full-height rate, and each graph labels its own peak above its bar. Before, each graph was scaled to its own peak, so 164 KB written filled the write box the way 8 MB read filled the read box.
  • tests/io-graphs, through --proc, writes 10 MB read and 100 KB written between two samples. It checks that each graph has exactly one bar and that the write bar is a hundredth of the read bar. Against main it fails: 25 bars each, and the write graph drawn as tall as the read one.

Evidence

Three boots of lab 45110751133 (bench, spin's shape, v20261123.04) were replayed through a fake /proc, and each was drawn by main and by this branch. On main, the read graph is a plateau over the whole chart and the write graph is full for 150 ms. On this branch, the 8 MB burst at ~20 ms, the read bursts near 80 and 180 ms, and the one 164 KB write at ~25 ms each appear where they happened, at their true sizes against one another. make check passes 9 of 9 on ubuntu-24.04.

🤖 Generated with Claude Code

Upstream averaged 250 ms around each bar and scaled each graph to its own
peak. A 5 ms burst drew as a plateau 250 ms wide that rose before the burst
began, and 4 KB written filled the write graph as 20 MB read filled the read
one. pgpgin and pgpgout are counted as each bio is submitted, so they are
current at every sample (spin-stack/machine#538).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf merged commit 5c358a2 into main Nov 23, 2026
2 checks passed
@aledbf
aledbf deleted the io-graphs-538 branch November 23, 2026 04:42
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.

1 participant