Files
reims-vgpu/docs
Anees Iqbal e4baca4322 📝 Add the queue priority oracle and its answer [ci skip]
On the Iris Xe, a guest's late frames come from the window server's writers
waiting on the GPU behind long buffers of the guest's background media-analysis
service. The guest marks that service's heavy queues setBackgroundGPUPriority: 2
and then setGPUPriority: 2, and WindowServer's setGPUPriority: 0. Our bundle
keeps the marks and answers them back, and nothing reaches the host. Before any
priority work is sized, the question was what an Intel Mac does with the marks.

oracle_prio answers first which of the four setters a queue answers and what its
getters read back. Then a second process commits a short compute buffer while
the first process's queue of 60 ms compute buffers runs, with that queue
unmarked, marked as the service marks its queues, both queues marked, and the
short buffer's queue alone marked as WindowServer marks its own.

Jobs m3-max-68129 and m3-max-68139 ran it on the MacBookPro16,1 oracle's Intel
UHD Graphics 630, and m3-max-68137 on its AMD Radeon Pro 5300M, under macOS
26.7.1. dgpu-oracle.md's Q50 records the answers:
- A new queue reads GPU priority 1 and background priority 2 on both GPUs, so
  the service's marks change only its GPU priority, to 2.
- The 630 runs queues of one GPU priority first in, first out. When the short
  buffer's queue has the lower value, it preempts the running long buffer and
  starts the short one within 0.44 ms.
- The 5300M runs the short buffer beside the long one within 0.44 ms, marked
  or not.
Our one VkQueue runs it after them all, in every case.

design.md's queue rings paragraph now says so, citing Q50. The oracle README
lists the probe, and build.sh builds it with the others.

Docs and the source of a probe built only for the oracle Mac: no check reaches
it ("docs and comments" in AGENTS.md). The probe was built with build.sh's flags
in jobs m3-max-68121 and m3-max-68136, with 0 warnings.
2026-11-22 09:40:21 -08:00
..