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.
Under load msi's 5080 runs its core at 2392 to 2805 MHz in its high mode, 1.2
to 1.5 GHz under the power cap and 1.75 to 2.38 GHz in P4 from idle: 2400 MHz
separates them, where 2500 threw away high-mode repetitions. nvidia-smi's
clocks change only about every half second, so a span is judged on the
reading before it, those inside it and those up to half a second after it.
The report shows each GPU-bound number with the median core clock it ran
at (around what qualified), so a band's spread reads against the clock.
bench -v is to print repetition lines for compute.fma, blit.256m, sample.tex
and mps.sgemm too ("# rep NAME R at S s: MS ms, key=value ..."): reps.py
reads them as it reads the frame cases', report.py takes each of the case's
numbers as the median of its repetitions at the high clock, and benchretry
runs any such case with none again. A bench build without those lines keeps
the whole-window judgment. benchretry now stops starting cases when the hold
has less than 300 s past it, for the phases after it and the drags.
frag.fill's two modes were the core clock under the power cap, so its
KNOWN-bimodal rule now holds only for samples without clock data; a sample
with clock data compares and bands its qualifying number like any other.
msi's 5080 holds its core at 1.2 to 1.5 GHz under its power cap, 2 s into
some starts and about 10 s into sustained load, for up to 12 s, and the frame
cases follow the core clock rather than the P-state: the 12 s warm-up put the
frame cases inside that window. The bench phase now runs without it, prints
each frame case's repetitions (-v), and the host samples the clocks every
100 ms. reps.py keeps a GPU-bound number only from time the core ran at
2500 MHz or more throughout: a frame case's from its qualifying repetitions,
counted in the report, any other case's where its whole run did. Where a frame
case got none, msi-boot.sh runs it again for 20 s (benchretry, at most two
rounds within the hold). A case with none is KNOWN-clock, and bands and
baseline medians come only from qualifying numbers.
A bench boot beside a build (HOST_NOT_QUIET) now keeps its GPU-bound numbers;
its CPU-bound ones (draws, upload, readback, present timing, drags, decode,
WebGL) are tagged, compared with nothing and left out of bands and medians.
The boot's waits now split the GPU lock's wait from the quiet wait, which
run.sh takes after the lock.
The system writes a crash report a few seconds after the process died, and
the per-case lookup ran at once: 5d7e04c6c's five crashed cases came out
without their frames. The lookup now waits up to 10 s for the report.
msi's RTX 5080 holds P4 (core 1222-1447 MHz, memory 9001 MHz, against P0's
2767-2805 and 14001) for 1-8 s after a software power-cap event, even under
full load, which halves frag.fill and moves every bench number. The bench
boot now warms the GPU for 12 s of full load before its cases, its lines
reach the host as they come (grep --line-buffered), and msi-boot.sh samples
nvidia-smi's power state and clocks four times a second over the guest's
run. The report reads each bench case's state and median clocks from its
span; a number whose case ran below P0 is KNOWN-pstate and not compared, and
a bench number's baseline and noise band come only from samples at P0. The
bench leg also ships the lane host's scripts again, as it may start long
after its run shipped them.
The sweep runs every case in one process, so 40981b303's crash in
imageio.heic left the 50 cases after it unrun, each a FAIL as missing. Where
the sweep's process dies, each case it did not reach now runs in a process of
its own, in the order of the last full sweep, which the gate keeps
(sweep-cases.txt, from each full sweep's GATE sweep-order line): a case whose
process dies is FAIL as crashed, with its crash report's exception and
frames, and the cases after it run as before.
A crash report the guest wrote during the run was named and nothing more,
and it went with the boot's overlay: 40981b303's sweep crashed at
imageio.heic and nobody saw its frames. The final phase now prints each new
report's exception and the faulting thread's top frames (ips-summary.js), and
the report puts them in guest.crash-reports.
The gate copied each stream and its reference once. rgk-video replaced
hevc-main-1366x766's reference (ffmpeg's software decode) with the encoder's
reconstruction, and the gate kept the old one, so 40981b303's decode of the
stream matched 22 of 60 frames against a reference no decoder should match.
The corpus step now copies every file whose source differs.
frag.fill.2160p's GPU time doubles from one boot to the next (134 or 256
Gpix/s on msi's 5080), host quiet or not, which rgk-fill owns. A value in
its slow mode is KNOWN-bimodal and decides nothing, any other is compared with
the baseline's fast mode (its best sample), and the metric gives no noise
band: two modes are not noise.
A known-failures entry can name the commit that fixes its failure; it then
holds only for commits without that fix, so a run of an older commit, whose
report a detached bench leg writes again later, keeps its verdict while every
commit with the fix must pass the check.
The gate's decode sets held 7 H.264 and 14 HEVC streams; rgk-video lands
31, adding 5 of each codec at odd sizes and crops (1280x722, 1366x766,
1366x768, 854x480, 720p cropped at the top left). The odd streams are copied
into the corpus's odd/ directory from MSI_CORPUS_ODD and decode as the sets
h264-odd and hevc-odd, whose codec the report takes from the set's name.
msi-boot.sh counted the hold and the boot's time from run.sh's start, which
includes run.sh's waits for host quiet and the GPU lock: a boot queued 9 min
behind exclusive runs got 12 s of guest time, and 15c73f2b5's boots read as
455-647 s to SSH where QEMU took 22-24 s. A watch on QEMU's log now takes the
times of HOST_QUIET and GPU_HELD; the hold counts from GPU_HELD, the boot's
time from QEMU's first timestamped line, and the turn's, quiet's and GPU's
waits are numbers of their own. Each boot also records its timeline from
QEMU's start: the host's first present, and from the guest the kernel's boot
and WindowServer's, loginwindow's and Dock's starts.
Right after login the guest's SSH missed its banner timeout once while the
desktop's apps started (15c73f2b5's shared boot), and the boot failed with
nothing wrong in the host's log. The copy is now tried three times, 15 s
apart, and the boot records how many tries it took.
The lane host now keeps builds off its CPU and memory while a measured boot
runs (build-quiet.sh, which rgk-boot2.sh's exclusive boots hold against). The
gate's own msi builds, the host build and gpuload, go through it. Each boot
records whether its hold was quiet (HOST_QUIET or HOST_NOT_QUIET in QEMU's
log), the report shows it with the host's load average beside every bench
sample, and the noise band is measured only from samples taken in host quiet:
two exclusive samples of one commit beside builds differed by up to 2x.
Numbers from a shared boot carry the other VMs' unknown load, and a
regression that shows only under contention (a slow or missed wake) needs a
load that is the same each time. gpuload, a headless Vulkan compute loop built
on the lane host, keeps the GPU busy a fixed share of every 10 ms; the bench
boot starts it by its pid before the guest's run and stops it after the drags,
and records the duty it reached. --bench-phases picks the bench boot's
phases. Each boot also records the host's load average beside its
measurements: other work's CPU and memory use, which the GPU lock does not
cover, moves the numbers of the Vulkan platform's imported host RAM.
A control for a commit whose numbers moved: the same guest image on another
tip's host build changes one variable, the host and its runtime. The bench
boot also runs WebGL's frame rate and present_probe first, the quickest read
of a tip's frame pace.
A bench leg the gate detaches inherits LANE_GATE_LOCKED and takes no lock, but
one started with --bench-only took the gate's lock and held off every later
pass while it waited its turn on the lane host.
The bench boot waited until both of the lane host's turnstile queues were
empty. On a busy host they had not been empty for over an hour, so it never
ran. An exclusive hold has the GPU alone, which is all a clean measurement
needs: the bench boot now joins the turnstile in arrival order.
A resumed run also keeps the baseline it started with. baselines/LAST may
since have become the run's own commit, and against itself the cargo step
reached nothing past its default packages.
The cargo step ran only the packages whose crates/ files changed and their
dependents. A pin move changes only Cargo.toml and Cargo.lock, so the gate of
9d8817b24 (the metal2vulkan 0491eb2c75 pin) ran 274 tests where the pin reaches
the whole workspace. A change to the workspace's manifest, lock or toolchain
now reaches every package.
A decode the guest's VideoToolbox found no hardware decoder for was reported as
"no hardware HEVC decoder", which read as the lane host lacking one, though
msi's GPU decodes HEVC Main and Main 10. The gate now measures the three facts
that decide it and the report says which one held:
- the host's GPU: msi-boot.sh lists each GPU's Vulkan Video decode profiles
(vulkaninfo --show-video-props, a query) in host-video.tsv;
- the candidate: the guest build records the codecs its device offers
(H.264 where the bundle has the H.264 driver, HEVC where the kext states
IOGVAHEVCDecode);
- the guest: the info phase records the accelerator's IOGVA keys.
A decode stays SKIP where the host's GPU has no hardware decoder for the
codec (naming the host and GPU) or the candidate offers none ("the device
offers no HEVC decoder on this tip"), and fails where both hold and
VideoToolbox still finds none.
A run whose bench leg is still waiting listed each of the leg's 36 items as
NOTRUN, which buried the correctness verdict. A group whose items all share
one status other than PASS and one detail now takes one line.
A tree whose changes reach the Vulkan platform runs its tests on the Mac,
where MAC_KNOWN_FAILS lists 97 that fail there. Running each of those once
more under the GPU lock took minutes per test behind other agents' runs, and
could never change the verdict. Known failures (the list, and the last
baseline's) now skip the lone rerun.
For the wire-v3 tips: the info phase reports the kext's RgfxFeaturesOffered
and RgfxFeaturesTaken, and fails where the kext took a feature the host did
not offer. After the sweep the guest must hold no /tmp/rgfx-*.log. A new Mac
step runs the tree's bundle_files_check.sh on the packaged bundle, the one
RgfxGate installs.
Each publish also carries the signed reims-graphics.bundle and its package,
under tip-host/SHORT/bundle/, with the bundle's CDHash in SOURCE, so that a
fixer can build an RgfxGate that embeds exactly the tip's bundle.
The owner asked for drag frame rates, and the numbers so far mixed conditions
or counted drags that never moved the window. Each boot now drags a plain
window (TextEdit) and a glass one (a Finder window) over QMP for 10 s at 120
pointer moves a second, after the guest's run (lane-gate/msi-drag.py).
A drag counts only where the window followed the pointer. A short probe
first finds a press point in the title bar that moves the window by the
pointer's distance. Through the drag, guest/bundle/tools/winmon tracks the
window's origin every 10 ms, and the origin must span the pointer path. A
case whose window did not move is not run, not a number, and fails only where
the baseline's window moved.
Measured from the host log's display updates during the drag: updates a
second, gap p99 and max gap, beside QEMU's and its graphics thread's CPU. A
gap over a second is a stall. In the correctness boot a stall fails the gate,
and in the bench boot the rate is gated against the baseline (10% floor).