Commit Graph
103 Commits
Author SHA1 Message Date
Anees Iqbal 641e933b1b 🐛 Keep builds off the lane host through the gate's correctness boot
The correctness boot times drags, presents and WebGL frames, but as a shared
boot it took no host quiet, so a build could run beside it: one ran through
ring0-ctl's app load (the package at 105 C). It now holds host quiet for
QEMU's life as the bench boot does (rgk-boot2.sh's RGK_QUIET), and the report
tags its timed rows where the wait for running builds ran out.

Items of a phase --phases left out of the correctness boot are NOTRUN, not
missing: a run that names its phases is incomplete, not failed.
2026-11-05 21:59:30 -08:00
Anees Iqbal e26b0b554d 🆕 Record each lane boot's memory compaction and its end's free memory
The runtime pins all of the guest's RAM at the start, and a host short of
free pages compacts, which moves a boot's times; car 10's cold-boot check reads
both. host.txt now has /proc/vmstat's compact_stall, compact_fail and
compact_success at QEMU's start and the boot's end and their growth, and the
free memory and the CPU's heat at the end, read before QEMU stops.
2026-11-05 21:59:30 -08:00
Anees Iqbal 1ac1967976 🆕 Record the host CPU's heat in each lane boot and mark throttled rows
msi's CPU package throttles for seconds at a time under builds (2.7 h in 2 days,
103 C), which moves CPU-bound numbers. Each boot now samples the package's
temperature and the throttle counters once a second (thermal.txt), records
them with uptime beside the free memory at QEMU's start and what they grew by
at the end (host.txt), and the report marks a timing row whose phase, drag or
bench case saw the package throttle as throttled, not compared, and leaves it
out of a baseline's median.
2026-11-05 21:59:30 -08:00
Anees Iqbal c7f6e0b451 🆕 Show each GPU-bound bench row's power state beside the baseline's
The driver drops a lightly loaded GPU to P8 (405 MHz) within seconds, where
GPU-bound numbers read up to 8x slower. The report already leaves out reps
under 2000 MHz (KNOWN-clock); each GPU-bound row now also shows its power
state and core clock beside the baseline's, so a row that moved with its
clocks reads apart from one that moved with the code.
2026-11-05 21:59:30 -08:00
Anees Iqbal 31e83c11a3 🆕 Set a probe round's host log filter
s1-hang times its rounds against the bench boots, which log at info; the
round's default filter adds the presents' trace lines, which cost each op.
--host-log FILTER replaces the round's filter.
2026-11-05 21:59:30 -08:00
Anees Iqbal 2ef20e6c4c 🐛 Bench at host log info, with the work counts on request
The bench boot logged the runtime's work counts each second since 85fac10ad,
and their logger costs what it rates: car 9's draws.10k ran at 0.80M draws a
second with it and 2.54M without it, on the same build. The bench's host log
is info again; --bench-host-log info,reims_vgpu::work=debug asks for the
counts, as a control.
2026-11-05 21:59:30 -08:00
Anees Iqbal 70858f0131 🆕 Add host log directives to a probe round
scout-apps-2's car 9 table rounds run with reims_vgpu_vulkan::icb_writes at
debug, a target off by default, to say which pipelines write ICBs on the
renderBundles page with no boot of their own: --log-add FILTER appends its
directives to the round's host log filter.
2026-11-05 21:59:30 -08:00
Anees Iqbal b393bb4967 🆕 Set the gate's bench boot's host log filter
The bench's host log carries the runtime's work counts, whose logger thread
reads them each second; car 8's library had no such thread, so a car 8
control cannot tell whether it costs car 9's draws.10k. --bench-host-log info
benches a tip without it. A run with another filter is a control and is never
recorded.
2026-11-05 21:59:30 -08:00
Anees Iqbal 0c9cc5cc05 🆕 Run a command at the gate's bench boot's QEMU start
draws-regress samples QEMU's graphics threads during the bench's draws.10k:
--qemu-hook passes probe-batch.sh's hook ({PID}, {DIR}) to the bench boot,
whose guest.log has the bench's '# start CASE' lines as they come. A run
with a hook is a control and is never recorded.
2026-11-05 21:59:30 -08:00
Anees Iqbal f40e026efc 🐛 Judge each landed car's bench against the car before it
A car's landing gate runs without the Mac's checks, so it is incomplete, and
--record moved baselines/LAST only for a run that passed: LAST stayed at
15c73f2b5b48 through cars 7 to 9, and car 9's bench was judged against a
baseline from before car 7, which hid its draws.10k fall against car 8.
--landed records the run and, once its bench leg has run, makes it LAST
whatever the verdict; its own baseline is the car that landed before it.
2026-11-05 21:59:30 -08:00
Anees Iqbal 284e0dfd51 🐛 Gate the bench's numbers on bench.m's hash alone
The bench's metrics were tied to one hash of the sweep's sources and bench.m
together, though bench.m builds alone. Car 9 changed only sweep_ca.m, so its
draws.10k fall of 61.7% against car 8 went ungated as 'its tool changed since
the baseline'. tools.txt now records bench.m's own hash, and a run recorded
before it falls back to the combined one.
2026-11-05 21:59:29 -08:00
Anees Iqbal b122cae519 🆕 Run a command under a probe round's GPU lock before QEMU
s1-hang's runtime-import pair needs the host's memory brought to a desktop's
state just before QEMU starts, with nothing else on the GPU meanwhile. A
round's --pre-qemu CMD runs CMD in the QEMU wrapper under the lock, just
before the exec, its output in the round's pre-qemu.txt; the hook starts after
it.
2026-11-05 21:59:29 -08:00
Anees Iqbal 6e892c34f8 🆕 Record the host's free memory as each lane boot's QEMU starts
The runtime now imports all of the guest's RAM as QEMU starts, and with the
host's free memory below that, a boot's first present moved by 27 s between
two otherwise like cold boots. host.txt now carries MemFree, MemAvailable and
Cached at the GPU lock's hold (memfree_start_mib and the like).
2026-11-05 21:59:29 -08:00
Anees Iqbal aa4540bdb5 🐛 Exec QEMU from the cold-cache wrapper, keeping run.sh's pid
rgk-boot2.sh counts the guest's SSH only from run.sh's pid, which it takes for
QEMU's, so a wrapper that ran QEMU as its child never got SSH_OK: the warm
car 9 boot ended BOOT_FAIL after 5 minutes. The wrapper now execs QEMU, and a
process it leaves holding the GPU lock puts the cache entry back once QEMU
has stopped.
2026-11-05 21:59:29 -08:00
Anees Iqbal 70fa734575 🐛 Run a probe round that takes no probe under bash 3.2
A round with no probe (--catch-from-boot --only none) stopped at once: bash 3.2
calls an empty array unbound under set -u. The take list's uses now allow it
empty.
2026-11-05 21:59:29 -08:00
Anees Iqbal 47aab3cce9 🆕 Boot a probe round on a cold pipeline cache, with a host hook
Car 9's slow first present came from the host's first run of a new runtime,
which warmed its pipeline cache cold. A round's --cold-cache KEY boots with
the host's cache entry KEY set aside and puts it back once QEMU has stopped,
both under the boot's GPU lock (a wrapper run.sh execs in QEMU's place); its
--qemu-hook CMD starts CMD with QEMU ({PID}, {DIR}), and the from-boot catcher
keeps QEMU's screen every 5 s until the first present.
2026-11-05 21:59:29 -08:00
Anees Iqbal 820aad948c 🆕 Let a gate run end its guest run with a command of its own
boot-flicker's proof needs the guest's log of the textures the fixed bundle
refuses, read at the end of the boot. --final-cmd CMD runs CMD in the guest at
the end of the correctness boot's final phase, its output kept in guest.log's
"GATE final-cmd:" lines.
2026-11-05 21:59:29 -08:00
Anees Iqbal 47f8fcdfa7 🆕 Let a probe round boot another tip's host build or image
A restart that car 9's image shows on its first boot needs its one-variable
controls: car 9's image on car 8's host, and car 8's image on car 9's. A round's
--host-tip and --image-tip boot another published tip's host build or image
in place of the round's own.
2026-11-05 21:59:29 -08:00
Anees Iqbal c47ab0d50a 🆕 Watch a probe boot for a restart or silence from QEMU's start
Car 9's image restarted the guest once before its desktop, and the hang
catcher, started with the probes after the desktop, saw none of it. A round
with --catch-from-boot starts the catcher with QEMU (msi-boot.sh's
CATCH_FROM_BOOT, msi-hang-catch.py --from-boot): a second hand-off to the
kernel on the serial console is a restart, and the host log silent 10 s after
the kext started and before the first present is a hang, caught as one. The
probes use that catcher, and such a round runs with no probe too.
2026-11-05 21:59:29 -08:00
Anees Iqbal a7969e15af 🐛 Let a probe's budget run to 300 s
The S1 fix's proof probe asked for 200 s, which a round took and its guest
side then skipped, its limit being 180 s: the proof round ran nothing of it.
A round's hold is set per round now (--hold), so a budget may run to 300 s.
2026-11-05 21:59:29 -08:00
Anees Iqbal 679553df15 🆕 Tell a guest's restart from a hang in probe rounds
A probe round's hang catcher was a copy kept outside the tree, and it read the
S1 panic's restart as a stall: a catch of the new boot idling, and no panic
report. The catcher now ships with the round (msi-hang-catch.py). Once SSH has
answered, a device reset in the host log or a boot banner on the serial
console marks a restart, SSH failing then takes no catch, and once SSH answers
again it fetches the guest's info and the panic reports written since.
2026-11-05 21:59:29 -08:00
Anees Iqbal cf3e32dc28 🐛 End a probe's SSH session to a guest that went silent
In the S1 round the guest's SSH stalled for about a minute, and the shots poll's
session, open across the stall, waited for 15 minutes, until the round's hold
ran out and the probes after it were not reached. Probe sessions now send
ServerAlive messages and end after 60 s of silence.
2026-11-05 21:59:29 -08:00
Anees Iqbal 18c8d9941d 🆕 Go on with a round's probes in a guest that restarted
A probe that panics the guest restarts it, and the probe after it reads the
panic's report in the restarted guest. Where a failed probe's guest stops
answering, the round now waits up to 3 minutes for it to answer again before it
counts the guest hung.
2026-11-05 21:59:29 -08:00
Anees Iqbal 15a92542d4 🆕 Let a probe round leave named probes queued
A probe that freezes the guest has to come last in a round of its own, so an
ordinary round must not take it first. --exclude NAME,... leaves those probes
in the queue.
2026-11-05 21:59:29 -08:00
Anees Iqbal 5fb551506c 🆕 Snapshot a guest that stops answering in a probe round
A car 8 round's guest locked up with every vCPU spinning in guest mode, and the
round stopped QEMU with nothing of the guest's state kept. A probe round now
runs the hang catcher (HANG_CATCH, s1-hang's, where it is on the lane host)
beside its probes and waits for a catch it started before QEMU stops. Where a
probe fails and the guest's SSH no longer answers, msi-hang.py keeps the
scanout (and, with no catcher, QEMU's threads and every vCPU's registers and
stack), and the probes after it go back to the queue. Every boot records the
kext's load address, and --only NAME,... takes the named probes alone.
2026-11-05 21:59:29 -08:00
Anees Iqbal 53516fa78b 🐛 Run a round's probes in the order the round took them
The guest side ran a round's probes in name order, so --first put a probe at
the head of the queue but not first in the boot, and spg-repro, which takes
every free 2 MiB of guest RAM, ran before spg-slabs. The round now writes its
take order into the probes' directory, and the guest side follows it.
2026-11-05 21:59:29 -08:00
Anees Iqbal 10d958d283 🆕 Let a probe round take named probes first and set its hold
A plain round takes probes oldest first, so a probe a fix's round is for can
wait behind older ones, and three probes of 500 s of budget need 545 s of the
540 s the default hold leaves them. --first NAME,... puts the named probes at
the head of the queue, in that order, and --hold S sets one round's hold.
2026-11-05 21:59:28 -08:00
Anees Iqbal b71d521f9c 🆕 Read an older run's idle from 2 s in its report
A run whose payload predates the guest's idle settle (car 8's bench) counts
the phase before's teardown in its idle window: 31.9% where 2 s on reads
12.2. report.py RUN --idle-skip 2 reads it as --reidle recorded it, so its
report compares with the re-recorded baselines.
2026-11-05 21:59:28 -08:00
Anees Iqbal 4a734e2f3f 🆕 Rate the host's work counts over the bench's drags and WebGL
The runtime's shadow path (shadowed textures, copies and texels each way,
merges planned, fetched and kept, keeps) is to be measured per WindowServer
command buffer and per display update. The bench's host log now enables
reims_vgpu::work at debug, whose lines (one a second: the runtime's counts
as deltas, and each guest context's command buffers and render encoders)
host-events.log keeps; each drag line carries its window's ends; and
report.py sums the lines whose second lies in the plain drag, the glass drag
and the WebGL phase, WindowServer being context 1.
2026-11-05 21:59:28 -08:00
Anees Iqbal 9e90c852e6 🆕 Publish a fix's tip for probes without making it the lane's
A fix's proof boots an image built from its sha (RgfxGate trusts only its
embedded bundle), but publishing it as the lane's tip would move every probe
round onto it. --probe-tip publishes its image and host build as --publish
does, always, and leaves published-last as it was; probe-batch.sh --tip runs
its round.
2026-11-05 21:59:28 -08:00
Anees Iqbal 38b7d0716b 🐛 Settle the guest before its idle phase opens
The bench's idle phase opened right after present_probe ended, whose teardown
takes 77-145% of a CPU for about a second, so where the first CPU sample fell
set qemu_cpu.idle: 14.6, 19.9 and 24.6% for cars 5-7, all 11-14% from 2 s on
(aud-waits). The guest now waits 2 s before the phase opens, and
report.py --reidle reads an older run's recorded idle from 2 s into the
phase, so its baselines compare: car 5 14.1, car 6 11.7, car 7 11.1.
2026-11-05 21:59:28 -08:00
Anees Iqbal 8367b3a346 🐛 Fail the cargo step when nextest wrote no results
Car 8's gate stopped its cargo run while it waited for the Mac's GPU, and the
report still showed step.cargo and cargo.tests as PASS, cargo.tests with an
empty line, because errexit does not reach inside a step's function. The step
now fails when nextest wrote no junit.xml, and the item fails when the run
left no summary.
2026-11-05 21:59:28 -08:00
Anees Iqbal eb1ac6d2f3 🆕 Gate QEMU's CPU in the bench's WebGL phase
Car 7's bench took 353% of a CPU in it against car 6's 247%, which no item
flagged. It is now gated as the idle and full-screen phases are, lower being
better, within 25% or twice what repeated runs showed.
2026-11-05 21:59:28 -08:00
Anees Iqbal f24e82101a 🐛 Give a probe round the newest published tip where probes wait for it
A round took the oldest probe's tip, so one probe left for car 7 held car 8's
eleven behind it. The round's tip is now the newest publish whenever a probe
waits for it, and only else the oldest probe's tip that is still published.
2026-11-05 21:59:28 -08:00
Anees Iqbal eccc34bf2c 🐛 Measure the live resize's sizes during the drag only
The samples patch 3's boot kept show where car 7's 1707 x 1023 came from. The
window was back at 603 x 505 when the drag ended, and at the button's release
it grew on its own to the screen's visible right and bottom edges in 250 ms.
The ranges now leave out what follows the drag (453-753 x 505-685 there, the
pointer's path), and w_after records the width after the release.
2026-11-05 21:59:28 -08:00
Anees Iqbal 79bb65af35 🆕 Keep the live resize's size samples
Car 7's resize reached 1707 x 1023 points, the window grown to the screen's
right and bottom edges, which the pointer's path never reaches. The guest's
samples now go to drag-resize-track.txt, which the gate fetches, so the next
such run can say when the size jumped.
2026-11-05 21:59:28 -08:00
Anees Iqbal 58d4bbce2a 🐛 Count block-cache stalls only from kext lines that were read
A boot whose kernel-ring reader read none of the kext's lines (car 7's gate
boot, which still read the empty log store) counted 0 stalls and passed. The
item is now NOTRUN when no kext line was read. A capture probe round counts
the stalls over its whole boot as well, and prints them with its capture.
2026-11-05 21:59:28 -08:00
Anees Iqbal f25e0f818e 🐛 End the scanout capture at the first present, and ship its reader
The scanout in guest memory is the screen only until WindowServer presents
its first IOSurface; from there the display shows IOSurfaces held in the
host's device caches and the scanout is not drawn again. The reader now
stops at launch.log's first present line and says when, and capture.txt
says the frames end there. A probe round now ships msi-capture.py (round 3
captured nothing without it), and the probe shot poller lists without a
glob, which the guest's zsh fails when nothing matches.
2026-11-05 21:59:28 -08:00
Anees Iqbal 1eb1dd450a 🐛 Read the kext's lines from the kernel's ring, not the log store
Car 7's capture kept an empty kext log, and the texture-create stall check
counted from the same place. The kext writes with IOLog, which reaches only
the kernel's 128 KiB ring and no log stream, and a busy desktop rolls that
ring over in a minute or two. From the desktop on, the correctness boot and
a captured boot now take the ring's Rgfx, RGFX and ReimsGraphics lines
every 5 s (kring.raw, then once each in kernel-rgfx.log). A bench boot
takes them only at the desktop and at its end. The guest's boot time and
clock against the host's put each line's uptime on the host's clock. The
stall check and the capture's scanout-mode check read those lines, and the
stall item says from which uptime they reach. Tested on car 7's running
guest: 26 lines from 272 s of uptime, its earlier ones gone.
2026-11-05 21:59:28 -08:00
Anees Iqbal e8a08bd76b 🆕 Let a probe round pick its tip and capture its boot
Car 7's gate boot lost its scanout capture (fixed in a290031f8), and a new
capture costs a boot. A probe round boots the published tip anyway, so it
can carry the capture: --capture captures the round's boot as the gate's
--capture-boot does, logs the host's presents and its graphics debug
lines, and runs with no probe too. Its wait for the Dock to settle comes
off the probes' budget. --tip SHA picks the round's tip among the
published ones.
2026-11-05 21:59:28 -08:00
Anees Iqbal dfe3fc2445 🐛 Wait for the allocations region before reading the scanout
Car 7's gate boot got no scanout frames: the reader asked "info mtree" at
QEMU's start, before the guest's firmware had mapped the device's BAR, so
the allocations region was not in it yet. The reader now asks again every
0.1 s until the region shows, and logs how long after QEMU's start it
did. On car 7's running boot it found the region at once and read 30
frames in 3 s.
2026-11-05 21:59:28 -08:00
Anees Iqbal 94a112d355 🆕 Run a probe round on any tip still published, not only the newest
aud-waits dropped an A/B pair of probes, one for 553660eb3 and one for
dbbe5d171. The newest-tip rule would have skipped the first, and once
car 7 published it would have skipped the second too, while both tips'
images and hosts stay on the lane host. A round now boots the tip of the
oldest probe whose tip has a published build (tip-host/SHORT and
loader-fix/oc-sipon-SHORT.qcow2). It takes that tip's probes, and the
probes for other published tips wait for their own round. A probe whose
tip has no published build is still skipped, its results saying so.
2026-11-05 21:59:28 -08:00
Anees Iqbal 1b360de0d9 🆕 Note the kwin reaper beside each boot's display state
kwin held closed windows' buffers on msi until its scale effect was
reloaded, which a user service (kwin-reaper) now does every 5 s while no
output is on. Read without it, a boot's VRAM numbers mislead. host.display
now says whether the reaper is active at the boot's start and end, and
kwin-reaper.txt keeps its log lines from the boot's span. The item gives
their count and the GPU memory after the last reload.
2026-11-05 21:59:27 -08:00
Anees Iqbal bea066a79e 🐛 Measure Mission Control over its animations, not 0.8 s windows
Car 6's bench gave Mission Control 16 display updates a second and a
512 ms gap p99. Each 0.8 s window after a Control-Up held the animation
and then its idle tail, so the tail made the gap and pulled the rate down.
Each animation is now measured from its first display update after the
key to its last in the window: the rate and gaps inside the animations,
their median length (anim_ms), the wait for the first update (start_ms),
and how many keys gave an animation. The live resize also states the
range its window's width and height took.
2026-11-05 21:59:27 -08:00
Anees Iqbal 4e4d8cc39d 🆕 Let a probe take the guest's own screenshots
screencapture in a probe fails over SSH ("could not create image from
display"): sshd's session has no Screen Recording grant. A probe whose
directory holds a file named shots now runs `bash ~/probes/.shot.sh
LABEL`. The host polls the probe's out/ for the request once a second,
sends Command-Shift-3 over QMP, and moves the guest's new Desktop
screenshot to out/shot-LABEL.png, as msi-boot.sh takes the desktop's
shot. shots.txt says when each came. Probes without the file are not
polled. The dry run's first probe takes one.
2026-11-05 21:59:27 -08:00
Anees Iqbal ecb1729889 🆕 Run rgk-ctx-slots' app load in the gate's correctness boot
The context-cap lift and the work after it are meant to hold a desktop of
about 75 processes, which only a busy desktop shows. After its
measurements, the correctness boot now runs rgk-ctx-slots' app load
(HOG=0) on its own guest: every app in the guest, then 7 WebGL and WebGPU
pages in Safari from the guest's localhost, with the guest's default
route deleted first. msi-appload.sh follows appload.sh's steps on a copy
of its tools taken at each ship, and writes analyze-load.py's summary
beside appload.txt. The report's bar: no region or context refusal from
the kext, no crash report in the apps phase, no fatal line. It also
records WindowServer's blocks and MiB against its 160 MiB reserve. The
load runs where the hold has about 6 minutes left. --no-appload leaves it
out, and --appload-info WHY reports a miss of the bar as INFO, for a
baseline taken before the bar holds.
2026-11-05 21:59:27 -08:00
Anees Iqbal b51db36f66 🆕 Count the guest's texture-create stalls and note the host's display
A stall where a texture's previous block is still cached and its release
unanswered ("its previous block is cached still, its release unanswered:
it is not cached") costs about 2 s, and is a likely cause of the boot's
flicker. Each gate and bench boot reads the guest's log of them
(senderImagePath CONTAINS "ReimsGraphics"), times each hit against the
desktop's coming up on the host's clock (kext-stalls.txt, also in the
boot capture), and guest.block-cache-stalls fails on a hit in the 60 s
after the desktop came up. The capture's kext log takes the same
predicate.

The host's display state may move the drags' numbers, so each boot also
records the lid and kwin's outputs (kscreen-doctor) at its start and end,
in host.display.
2026-11-05 21:59:27 -08:00
Anees Iqbal ebea399171 🐛 Find the allocations RAM block by its size, and let the user stop it
On a live boot, info ramblock names no reims-graphics-pci allocations
block: the device makes its allocations with memory_region_init_ram_ptr,
whose RAM block has no name. The reader now takes the region's size from
info mtree ("reims-graphics-pci.allocations") and the one nameless block of
that size. A first read on the probe boot found it (0x3fc00000 bytes) and
read 50 frames in 5 s at 3840x2400, stride 15360. The capture directory is
the user's, so msi-boot.sh can write the stop file.
2026-11-05 21:59:27 -08:00
Anees Iqbal 4aaf9faf40 🆕 Capture what a gate boot's display showed as it booted
A boot's progress bar flickered between older and newer frames past the
kext's handoff, and a Dock icon showed another app's icon until the boot
settled. QEMU's screendump of reims-graphics-pci is empty, so with
--capture-boot the correctness boot keeps, on the lane host:
- the guest's scanout before WindowServer's IOSurfaces take the display,
  its middle third of rows read from QEMU's memory every 100 ms (the
  allocations RAM block's host address from HMP's info ramblock, then
  /proc/PID/mem as root), each frame that differs zstd-compressed, with
  host times;
- the guest's own screenshots (Command-Shift-3 over QMP) once a second
  from the host's first present until 60 s after the desktop is up, with
  the guest's file times and its clock's offset;
- the kext's log lines of the boot, whose scanout line checks the mode the
  reader assumed.
The boot also fetches xid.txt, which report.py's host.no-xid reads.
2026-11-05 21:59:27 -08:00
Anees Iqbal 51155622e4 🆕 Measure a live resize and Mission Control beside the drags
Probes have no input, so the gate's boots are where a desktop that moves is
measured. msi-drag.py gains two cases after the drags: resize resizes a
TextEdit window live by its bottom right corner along the drags' path, and
mission opens and closes Mission Control with Control-Up once a second.
Each counts only where the desktop did what was asked: the window's size
followed the pointer (winmon track ... size), or the display updated after
a first Control-Up. Mission Control's numbers are over the 0.8 s after
each key, with the first update's wait beside them. winmon also lists
every layer's windows (winmon all), which the log shows for Mission
Control. The drags' own measurement is unchanged.
2026-11-05 21:59:27 -08:00