Repository navigation
GPU diagnostics: measure pipeline worker backlog during shared shader waits - #1604
ToxicmaggotRP wants to merge 8 commits into
Conversation
BaggyALPHA
left a comment
There was a problem hiding this comment.
Independent in-game Windows measurement for #1509 on an RTX 3080 12 GiB, driver 621.24. The diagnostics build passed all four scheduler-metrics unit tests. For the title run I used a cold VIctory cache, the Series S profile, and a local stack of this PR with #211 for Series S UI presentation and #1702 for isolated scripted controller input.
The busy rendering phase began around 69 seconds, reached 4,106 draws per frame, and the run ended in device removal about 171 seconds after launch. The last scheduler snapshot showed:
- Peak queued jobs: 1,216.
- Peak active workers: 8 of 8.
- Peak shared-translation waiters: 1.
- Cumulative time with both queued jobs and a shared-translation waiter: 13.491 ms.
- Time with all eight workers waiting while jobs were queued: 0 ms.
This is one cold run, with its endpoint set by device removal. The large backlog coincided with very little measured shared-translation waiting. On this trace, timing native pipeline creation and pipeline-library lock contention separately looks more informative than changing scheduling based on queue depth alone.
AI-assisted (Codex). Aggregate results only.
[## Summary
Adds diagnostics-only measurements for pipeline worker occupancy while shader translations are shared through
OnceLock.This is a measurement step related to #1509. Existing translation-wait timings show that workers can block on another worker's shader initialization, but they do not show whether more pipeline jobs remain queued during those waits.
This patch measures that overlap before proposing any scheduling change.
Changes
diagnosticsfeature; normal builds and scheduling behaviour are unchanged.Scope and limitations
This PR does not introduce a dependency-aware scheduler or claim a frame-time improvement.
A non-empty queue does not by itself prove that every queued pipeline is independently runnable. These measurements are intended to establish whether the suspected worker starvation is occurring in real workloads.
Verification
mainatffe310e.scheduler_metrics.rs.Please treat this as a draft for review of the instrumentation and its measurement semantics.](#1604)