The shots sent Command-Shift-3 once a second from the host's first present,
through the login. macOS skips its automatic login where Shift is held as
the login window comes up, and a capture round on 9aaa024db stayed at the
login window: only four contexts opened and Dock and Finder never ran. The
boot now marks the desktop (WindowServer, Dock and Finder up) and the shots
wait for that mark.
hook-c12.sh is the host side of three car 12 probes, each started by a MARK
line: the guest's log stream over SSH for the S1 repro, spscan.py on QEMU's
RAM for the shmem probe, and a scanout capture from an in-guest restart.
msi-capture.py gains CAPTURE_FROM_NOW for that last one: its limit and its
first present count from its own start.
After a restart the catch now takes `log show` of the kernel's and our kext's
lines over the 120 s before the newest panic report's timestamp, and the .ips
reports written around it, so a panic's lead-up is kept even when the
stream over SSH missed it.
A round can now stage a probe from this machine (--stage-local), carried in
the round's commit, so a probe with a binary built from the car's own source
travels without a deploy. --appload runs the gate's app load on the desktop
before the probes, for checks that need its busy WindowServer. The round
copies every host script of the gate, so a hook can live beside them.
appload.windowserver passed whatever WindowServer held: car 11's gate passed it at 169.7 MiB
of its 160 MiB reserve. It now fails (INFO under appload-info) where ws_max_kib is over
ws_reserve_mib, and says by how much.
measured() summed each thread's ticks between the window's two looks at /proc/PID/task,
so a thread born in the window counted 0 and one that exited before its end was missed. Lane
threads leave after 1 s without a job and budget threads come and go, so gfx_cpu and qemu_cpu
undercounted whatever ran on them. QEMU's CPU now comes from the process's own utime+stime,
which keeps what exited threads used. The graphics threads' come from their last readings,
taken every 20 ms through the window, with a scan of names every 100 ms for new ones; a thread
born in the window counts from 0. On msi, against a test process's own thread clocks, the
four short-lived graphics threads read 0.17/0.12/0.12/0.15 s against 0.17/0.12/0.13/0.15 s,
where the old rule counted none of them. CPU rows from before this are not comparable.
guest.crash-reports compares against a baseline taken once the desktop is up, so a crash
during boot or login never showed. run_info now lists the reports whose mtime is at or after
kern.boottime, and the report shows them as guest.boot-crash-reports, an INFO item that
does not gate.
A round whose host tip no gate built (a lane's probe-only host) now takes the bench
of the guest it boots, the image tip's run, before falling back to the newest run's.
probe-batch runs under set -e and pipefail, so the ls of the tip's runs failing (no
run for a lane's probe-only host, such as 41ca29975) ended the round silently with
exit 1 before its fallback to the newest run's bench.
fix-bundle-res's runs-route A/B boots through its own run-ab.sh, which takes a
VM launch with rgk-boot2.sh's interface. pl-job.sh dispatches such a command
from a throwaway commit carrying the gate's host scripts, so it can launch with
lg/bin/msi-launch.sh, and copies the workspace's results/ back.
scout's car 10 app table needs a control on the stock graphics devices: the
owner VM's OpenCore image, the dist's ReimsVgpu.rom, apple-gfx-pci with its
iosurface, VideoToolbox and scaler devices as reims-ctl gives an x86-64 VM, and
a trace file. probe-batch.sh's --image, --rom, --gfx-b64 (QEMU's graphics
arguments in place of reims-graphics-pci), --qemu-env and --no-metal-check carry
those into the round's boot.env, and msi-boot.sh exports them for QEMU and
leaves out its check that the guest's Metal device is ours.
potluck reserves an exclusive job's start at the latest limit among the jobs
running on its machine, and lets jobs that end by their own limit start ahead
of it: a 2 h build limit held msi's reservation hours out. The host build gets
30 minutes (it took 533 s cold), the correctness boot 40, the bench 30, and a
round its hold and 12 minutes (40 more with --after).
ring0-audit reads its MEAS lines in QEMU's host log, which stayed on the lane
host: the boot job now copies launch.log.gz back with the boot's other files. A
round with --after gets 40 minutes more of job time for its command.
ring0-audit's clean pair needs both tips built before either boots, then the two
boots back to back with nothing between them. --keep-workspace keeps a run's
potluck workspace, worktree and branch when it ends (a run built with --skip
boot), --boot-only runs a resumed run's correctness boot alone in it, taking no
lock as a bench leg does, so two runs' boots can be queued seconds apart, and
--priority sets the jobs' priority.
A round's changes on the lane host (moving its probes out of the queue, the
boot, the statuses, putting unreached probes back) now run in one potluck job
holding the 5080 and the whole host (msi-round.sh), dispatched from a throwaway
commit of the round's own (ship-commit.sh) that carries the gate's host scripts,
the tip's bench and the round's boot.env. probe-batch.sh only reads the host's
queue and published tips. --stage NAME=DIR[@TIP] copies a probe from a directory
on the host into the round inside the job, which replaces staging over ssh;
--ram sets the job's memory and --after runs a command after the boot in the
job (a hook's post-processing). --dry-run does not run as a job yet.
The owner retired direct ssh tests and deployment and the lane host's legacy
locks (turnstile, gpu-urgent, build-quiet, host-quiet, the GPU flocks): potluck's
lease is the lock now. The gate makes a throwaway commit per run, whose parent is
the candidate and whose lg/ holds its host scripts and what the Mac built (the
guest payload, the loader's kexts, RgfxGate, the bundle, a git bundle of the
vendor/qemu commits the host lacks). From it the host build, the image and
publishing are one job on msi with no GPU (msi-job.sh build), and each boot a
job in that workspace holding the 5080 and the whole host (--exclusive).
msi-launch.sh replaces rgk-boot2.sh's locks with potluck's: before QEMU starts
it waits for running builds (HOST_QUIET or HOST_NOT_QUIET, as before) and for
the CPU package to cool below 80 C, so the measured boots keep their quiet host
and cool-down. The loader builds on the Mac alone (mac-loader.sh). The Mac's
checks, which took the Mac's GPU lock, do not run as jobs yet: the gate needs
--skip mac.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.