Measure kernel write-watch requests in diagnostics #958

Open
github-bot wants to merge 1 commit from github-bot/gh-958 into main AGit
Owner

@⁠gmankab on GitHub · 2026-11-25 13:44 UTC · original
gmankab:diagnostics/write-watch-kernel-requests → main · +41 −28 · 2 files · 1 commits · open

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

**@⁠gmankab** on GitHub · 2026-11-25 13:44 UTC · [original](https://github.com/fxceless/victory-fork/pull/958) `gmankab:diagnostics/write-watch-kernel-requests` → `main` · +41 −28 · 2 files · 1 commits · open 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
The refresh counters report the ranges requested by shadow copies. They
cannot show how many bytes were passed to GetWriteWatch after batching
and retries. The watch timer also covers some guard work, which makes it
hard to tell whether a stall spent its time in the API.

Use one kernel-call boundary for ahead queries and individual requests.
Report the call count, requested bytes and time inside the API. Include
refused calls and retries. Journal hits and guarded-view fallbacks do not
go through the wrapper.

Tested-on: RX 6800, Fedora Linux 45, Wine 11.0 and RADV (startup counters, 12 focused watch tests and Toolbox MSVC diagnostic and default build checks)
Assisted-by: gpt-6.2 sol xhigh
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:54:37 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/copystat.rs
  • crates/victory-gpu/src/watch.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/958/head:github-bot/gh-958'
git switch 'github-bot/gh-958'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-958'
git switch 'github-bot/gh-958'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-958'
git switch 'github-bot/gh-958'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-958'
git switch 'main'
git merge --squash 'github-bot/gh-958'
git switch 'main'
git merge --ff-only 'github-bot/gh-958'
git switch 'main'
git merge 'github-bot/gh-958'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.