Repository navigation
svg: draw every process that ran while the chart did - #3
Merged
Merged
Conversation
This was referenced Nov 22, 2026
The filter dropped a process seen in one sample and one that used less than 1 ms of CPU. In a boot of a few hundred milliseconds that is most of systemd's work: generators, executors, (sd-close) and the like. On spin-stack/machine's boot it dropped 62 processes. A process is now dropped only when it used no CPU time while the chart ran: for one already running at the first sample that saw processes, none past that sample. A process seen in a single sample is drawn over the interval before it, in which it started, with the CPU time it used there; before, its bar had no width. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aledbf
force-pushed
the
keep-short-lived
branch
from
November 22, 2026 16:10
c9eb2b2 to
4986207
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
spin-stack/machine draws its boot with this fork to see how systemd starts inside a ~300-400 ms VM boot on one vCPU, and to catch regressions release to release. The chart of that boot said "62 filtered": generators, executors,
(sd-close)and the like were dropped, and they are a large part of what systemd does before the first login.What
A process that starts and exits between two samples is still not seen. Sampling cannot see it. At 200 Hz that is a process shorter than 5 ms that no sample caught.
Checked
tests/short-livedruns the sampler at 50 Hz over a fixture/procwhere a generator appears for ~30 ms with 0.3 ms of CPU, and where a kernel thread is idle for the whole chart. The test asserts the generator's bar is drawn and the idle thread's is not. With the old 1 ms rule the test fails ("the chart dropped a process that ran for 0.3 ms").make checkpasses under ASan/UBSan with gcc in an Ubuntu 24.04 container. CI covers clang.Stacked on #2.
🤖 Generated with Claude Code