rt: the in-flight count's doc and the README's lateness gap carry the RX 550's and the count of four's numbers

The RX 550's split at three (m3-max-44437, b15b306d2f) kept burst_160 at 879.7-881.9 us against
880.9-881.9 us at two, and frame_5cb's wall at 65.9-66.0 us against 66.8-70.3 us. It saw
long_4cb's second command buffer 0.9-1.4 ms after its end at the median, against 14.9 ms.
Four in flight lost on two rows. On the UHD 630, burst_160 took 2768-2839 us against
1850-1860 us at three (m3-max-44443). On the RTX 2080, long_4cb's mean commit-to-complete was
78.1-78.2 ms against 42.8-43.2 ms (m3-max-44442). So three is where the count stops, and the
constant's doc says why. The README's known gap gives the lateness measured at three on the 2080
and the RX 550.
This commit is contained in:
Anees Iqbal committed 2026-11-17 22:50:49 -08:00
1 parent 1d8b959f1b
commit b2e62a98b5
2 files changed
+10 -6

No files matched your search

+5 -4
View File
@@ -562,10 +562,11 @@ that touch blocks first.
- Command buffers committed while an earlier one of their queue runs are reported complete
together, at the last one's end, where Metal reports each at its own. Measured with the harness
row `long_4cb` (four command buffers committed together, two runs in flight): on an RTX 2080,
at about 12 ms of GPU time each, the second and third were reported with the fourth, the second
about 25 ms after its own end; on an RX 550, at about 7 ms each, about 14 ms. The last command
buffer's own report is not late: on the 2080 it came 96.6-97.2 ms after its commit, where the
old runtime's came 95.6-95.8 ms after. The harness prints each command buffer's lateness, from
at about 12 ms of GPU time each, the third was reported with the fourth, about 12 ms after its
own end, and the second 0.8 ms after its own at the median (25 ms at the 90th percentile); on an
RX 550, at about 7 ms each, the third about 7.7 ms late and the second 0.9-1.4 ms at the median
(15 ms at the 90th). The last command buffer's own report is not late: on the 2080 it came
97.2-97.5 ms after its commit, where the old runtime's came 94.9-96.4 ms after. The harness prints each command buffer's lateness, from
its `gpu_end_time` to its completed handler (`late_us`).
- Values the runtime reads back from GPU-written memory decide nothing beyond the reading command
buffer's own results (`src/readback.rs`; a rule test holds every such read there). The sites:
+5 -2
View File
@@ -51,8 +51,11 @@ pub(crate) const GROUP: usize = 16;
/// submission's start whenever the completion that sends the held group comes late. Behind three,
/// the frame of five command buffers on the UHD 630 completed in 420-429 us against 895-1137 us,
/// and the second of four long command buffers was seen complete 74.7 ms after its commit against
/// 99.2 ms (76.5 against 96.8 on an RTX 2080), while a burst of 160 kept its time within 0.5% on
/// both (probe b15b306d2f, jobs m3-max-44423 and m3-max-44424).
/// 99.2 ms (76.5 against 96.8 on an RTX 2080, 46.8 against 57.7 on an RX 550), while a burst of
/// 160 kept its time within 0.5% on all three (probe b15b306d2f, jobs m3-max-44423, m3-max-44424
/// and m3-max-44437). Not four: behind four the UHD 630 ran that burst in 2768-2839 us against
/// 1850-1860 us, more of its command buffers going alone, and the RTX 2080's long rows came to
/// 78.1-78.2 ms against 42.8-43.2 ms (jobs m3-max-44442 and m3-max-44443).
pub(crate) const IN_FLIGHT: usize = 3;
/// The calls the pending upload records at most: a call past them waits for it to complete.