Measure kernel write-watch requests in diagnostics #957

Open
gmankab wants to merge 1 commit from upstream-pr/958 into main
gmankab commented 2026-11-25 13:44:54 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by gmankab on 2026-11-25T13:44:54Z.


The refresh byte counter describes shadow ranges, and the watch timer includes some guard work. Neither gives the actual request volume or API time when comparing grouped queries.

Measure GetWriteWatch calls, requested bytes, and time inside the API at the shared call boundary. This includes refused calls and recursive retries. Requests satisfied by the journal or by guards leave those counters alone.

The MSVC diagnostics build and the default configuration check passed. All 12 focused write-watch tests passed in isolated Wine. The RX 6800 startup smoke reported the new counters, including a window with 11 calls per frame for 18.6 MB and 0.06 ms inside those calls.

Tested-on: RX 6800, Fedora Linux 45, Wine 11.0 and vkd3d-proton on RADV
Assisted-by: gpt-6.2 sol xhigh

<!-- greyfinch-sync:fxceless/victory-fork:issue:6605895964 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/958). Originally posted by [gmankab](https://github.com/gmankab) on 2026-11-25T13:44:54Z. --- The refresh byte counter describes shadow ranges, and the watch timer includes some guard work. Neither gives the actual request volume or API time when comparing grouped queries. Measure GetWriteWatch calls, requested bytes, and time inside the API at the shared call boundary. This includes refused calls and recursive retries. Requests satisfied by the journal or by guards leave those counters alone. The MSVC diagnostics build and the default configuration check passed. All 12 focused write-watch tests passed in isolated Wine. The RX 6800 startup smoke reported the new counters, including a window with 11 calls per frame for 18.6 MB and 0.06 ms inside those calls. Tested-on: RX 6800, Fedora Linux 45, Wine 11.0 and vkd3d-proton on RADV Assisted-by: gpt-6.2 sol xhigh
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/958:upstream-pr/958'
git switch 'upstream-pr/958'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/958'
git switch 'upstream-pr/958'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/958'
git switch 'upstream-pr/958'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/958'
git switch 'main'
git merge --squash 'upstream-pr/958'
git switch 'main'
git merge --ff-only 'upstream-pr/958'
git switch 'main'
git merge 'upstream-pr/958'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!957
No description provided.