Runtime README: each piece is a submission, and what that costs a guest's benchmark on the Iris Xe and the RTX 3090
What: a known gap under Queues. Each piece of a cut command buffer is a submission, so the host pays a vkQueueSubmit2 call's price once per piece. The line records a guest's compute benchmark with the pieces (f21db0934c) against no pieces (f979769faf): - Iris Xe (ANV, Mesa 26.2.6), one timed pass each, jobs m3-max-68858 and m3-max-68837: - 63,704 submissions against 18,764; - 47.1 s against 15.3 s inside the calls; - 49.1 s against 15.8 s of submit-thread CPU; - equal GPU busy time, and a score 0.36% lower. - RTX 3090 (NVIDIA 620.70.06), jobs m3-max-68865 and m3-max-68789: - 14% more submissions; - 912 ms against 606 ms inside the calls; - a score 6.3% higher. Why: the planner ruled that the Iris's host cost is not a gate on the cut. It is a known gap that lands with the cut, so the trade-off is on development the moment the cut is. The existing instruction-cost line covers encoding, not submissions. Verified: a README change alone. The rows are the consumer's benchmark logs as reported, with the driver from each run's own device line. Verified for the re-land's commits before this one, which say "Verified: pending". They were checked at their tree before the rebase ontoc38852d665(64c010de39). The rebase dropped only d8703833f0, whose patch is c38852d665's, byte for byte, so the source tree is the same. The fixes: - be23534527, the cut back with 53bf3a3f3c's rule ported into its submit.rs; -c5e98be51d, a queue whose work all completed takes turn 0; -2bcac43a53, what a host wait sends waits for a sharer that Metal had submitted. The checks: - lavapipe, m3-max-68912: fmt, signatures, clippy plain / m2v_gpu / m2v_cpu_icd and workspace Rustdoc all green. The rt suite ran 674 tests, all passed, 3 skipped. That includes the pieces tests, the hold-spin forms, the room-hold forms and the ruling-6 overlap test. - lavapipe, m3-max-68913, the three wait-split tests (T1 send, T2 behind busy work plus a host wait, T3 a stale idle queue), 3 rounds of each arm: - all fixes: 3/3 each; - without 2bcac43a53's rule: T2 fails 3/3; - without c5e98be51d's: T3 fails 3/3. - lavapipe, m3-max-68901, the cut before the re-land: the tests alone fail 3/3; with the port, T1 passes and T2 and T3 fail. - lavapipe, m3-max-68891, development165ef68096with the tests, where the cut is not: T2 passes 3/3. So T2 is the cut's own.
This commit is contained in:
1 parent
2bcac43a53
commit
76f369dbbf
1 file changed
+12
@@ -2232,6 +2232,18 @@ while the driver's exit handler waited on a lock, with every runtime thread alre
|
||||
`frame_5cb_from_idle` moved 0.2% or less, `bind_2000` 2.6% and `waves` 2.9%; the runs of
|
||||
`frame_5cb`, `waves`, `constant_private` and the two `sampling_distinct` rows spread past 3%
|
||||
within one build, so those rows decide nothing.
|
||||
- Each piece is a submission of its own, and the host pays a `vkQueueSubmit2` call's price on
|
||||
the driver for every piece. A guest's compute benchmark over its 371 s timed pass on an Iris Xe
|
||||
(ANV, Mesa 26.2.6), with the pieces (f21db0934c) against the runtime with no pieces
|
||||
(f979769faf), one timed pass each (jobs m3-max-68858 and m3-max-68837): 63,704 submissions
|
||||
against 18,764 (3.4 times), 47.1 s against 15.3 s inside the calls
|
||||
(`Metrics::submit_call_nanos`; about 0.74 ms a call with the pieces), and 49.1 s against
|
||||
15.8 s of the submit thread's CPU time. The GPU's busy time was the same (235.7 s against
|
||||
234.3 s), and so was the score (8,069 against 8,098, 0.36% lower). On an RTX 3090 (NVIDIA
|
||||
620.70.06) the same guest made 14% more submissions with the pieces (23,670 against 20,750),
|
||||
spent 912 ms against 606 ms inside the calls, and scored 6.3% higher (80,706 against 75,949,
|
||||
jobs m3-max-68865 and m3-max-68789; a second run with the pieces, job m3-max-68889, scored
|
||||
80,730).
|
||||
- On the Iris Xe (Mesa's ANV), in the harness row `two_queues`, a command buffer of a second
|
||||
queue whose event wait the end of a command buffer of the first queue signals, committed right
|
||||
after it, starts on the GPU 30.4 µs after the signaller's GPU end at the median, against 9.0 µs
|
||||
|
||||
Reference in new issue
Block a user