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.
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Someone using a guest while a boot measures moves its drag, present and
timing numbers, while its correctness items still hold. A run's
tainted/LEG file (LEG boot or bench) names why: report.py then shows that
boot's numbers as TAINTED, compares them with nothing, and leaves them out
of every baseline's median and noise band. Its items and its host's counts
still decide.
The NVIDIA driver logs its GPU errors as the kernel's NVRM Xid lines: an
Xid 109 (CTX SWITCH TIMEOUT) from a QEMU on the lane host showed only in
dmesg. msi-xid.sh reads them over a span with each one's number, pid and
process. msi-boot.sh records the boot's in xid.txt, and report.py's
host.no-xid fails a boot on one from its own QEMU and names the other
processes'. That covers gate, bench and probe boots, and each probe also
gets its own span's lines.
Probe boots log reims_graphics at trace: the display's PRESENT_SURFACE
lines, its only trace site, so a probe's host.log slice counts composites
(about 23 lines a second at 120 Hz). Gate and bench boots stay at info.
msi's exclusive queue ran 7 to 10 deep all afternoon, most of it boots that
ran a probe on a tip the gate already publishes. Agents now drop a probe in
the lane host's probe-queue (run.sh, budget, tip) and probe-batch.sh runs a
round: the published tip booted once through msi-boot.sh, exclusive, the
host's load settled under 4, then the probes back to back within the hold,
each with its stdout, stderr, exit status, wall time, QEMU log slice and GPU
clocks in probe-results/NAME. The guest kills a probe's process group at its
budget; a probe for another tip is skipped and says so; one the hold does not
reach goes back to the queue. --dry-run shows a round on the Mac with a
directory standing in for the guest.
The guest's ICB paths (ICB_SLOTS among them, bit 17) had no check in the
gate: nothing in the sweep encodes an indirect command buffer. The gate now
builds oracle_icb with its metallib into the guest's payload where the tree
has it, and the correctness boot's icb phase runs its render, compute,
ranges, reset, gpu and timing cases. Each case is an item that fails where a
result is not what Metal draws or dispatches, where the barriered dispatches
came out wrong, or where its child died or exited nonzero; the timing case's
CPU encode costs at 1024 and 16384 commands and its execute time are metrics.
A tip that adds a path the guest takes is checked by the host's records of
it: QEMU's log gives the queues made unshared, the SUBMIT_ROOM records
posted (at debug, reims_graphics::room, which --host-log turns on for the
correctness boot) and the ICB_SLOTS messages whose runs were not all carried
out. They are the boot's host metrics, and guest.features names the bits the
kext took by number.
hevc-main10-720p-closed matched 54 of 90 frames on 553660eb3 after passing
on every earlier gate, and one boot cannot tell an intermittent mismatch from
a steady one. decode-repeat.txt in the gate's home ("SET STREAM N" a line)
now goes into the guest's payload, and the decode phases check each named
stream N times more, as STREAM.r2, STREAM.r3 and so on. A later run without
the repeats misses nothing its baseline had.
The lane host's gpu-urgent file lets a named boot pass the turnstile ahead
of the exclusive waiters. A tip that other agents' boots wait on is gated
under the tag the coordinator put there: --boot-tag TAG names the
correctness boot's (default gate-RUNID-boot).
A boot that failed before its guest ran listed every item the baseline had
as "missing, where the baseline passed": a6e722f47's payload copy failure
gave 104 failed items for one cause. Its items are now NOTRUN, "step.boot
failed before it", and step.boot is the one failure.
a6e722f47's shared boot lost SSH about 80 s after its desktop came up while
the guest kept compositing, and the log said only "Connection timed out
during banner exchange". Each failed try now logs whether QEMU's main loop
answers QMP (it runs the user network) and whether a connect to the forwarded
port gets the guest's banner. A copy that fails for good also logs the serial
port's last lines and the gaps between the guest's library lookups in QEMU's
log, where its processes stopped launching.
On msi's 5080 the high mode's clock depends on the case: about 130 W holds
frag.alu at 2.0 to 2.3 GHz, at 464 to 481 fps on 2160p, and fill at 2.79 GHz.
At 2400 MHz no alu repetition of three runs qualified (0 of 183 and 0 of 325),
so alu was never judged. 2000 MHz sits above the power cap's 1.2 to 1.5 GHz
(301 to 354 fps), and readings from 1.9 to 2.3 GHz under alu gave the same
rate. The reading before a span still decides, so a repetition after a stale
idle or capped reading stays out.