GPU: bound split write-watch retries to their merged range #2854

Manually merged
github merged 1 commit from github-bot/gh-2854 into gh-pr/2854/base 2026-11-29 22:58:33 +00:00 AGit
Owner

@⁠ghptc on GitHub · 2026-11-29 18:11 UTC · original
ghptc:perf/split-write-watch-20261129 → main · +9 −5 · 1 files · 1 commits · merged 2026-11-29 22:54 UTC

When a coalesced write-watch probe crosses a reservation boundary, ask_rest retries the pieces inside that group. The fallback scanned every piece for every rejected group, then searched all previously accepted ranges for every retry.

Restrict the search to the sorted pieces in the current group. A previous successful probe contains the current piece exactly when its end covers the current end, since starts are sorted and merged groups are disjoint. Advance that end only on success. Probe order, the reset flag, locks and write epochs are preserved. #1676 used a maximum accepted end in a related write-watch implementation.

An isolated Win64 control under Proton exercised 128 pairs of adjacent watched and unwatched reservations with writes before each arm. The two loops produced the same 896 kernel probes, 640 refusals, accepted intervals and dirty pages. Median time over 16 alternating pairs was 364.7 to 285.7 µs, with P95 367.2 to 288.0 µs. A second control compared destructive mock probes over 400 generated layouts, including failures followed by overlapping retries. The probe traces and returned data matched. The real workload frequency of this fallback is unmeasured.

**@⁠ghptc** on GitHub · 2026-11-29 18:11 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2854) `ghptc:perf/split-write-watch-20261129` → `main` · +9 −5 · 1 files · 1 commits · merged 2026-11-29 22:54 UTC When a coalesced write-watch probe crosses a reservation boundary, `ask_rest` retries the pieces inside that group. The fallback scanned every piece for every rejected group, then searched all previously accepted ranges for every retry. Restrict the search to the sorted pieces in the current group. A previous successful probe contains the current piece exactly when its end covers the current end, since starts are sorted and merged groups are disjoint. Advance that end only on success. Probe order, the reset flag, locks and write epochs are preserved. #1676 used a maximum accepted end in a related write-watch implementation. An isolated Win64 control under Proton exercised 128 pairs of adjacent watched and unwatched reservations with writes before each arm. The two loops produced the same 896 kernel probes, 640 refusals, accepted intervals and dirty pages. Median time over 16 alternating pairs was 364.7 to 285.7 µs, with P95 367.2 to 288.0 µs. A second control compared destructive mock probes over 400 generated layouts, including failures followed by overlapping retries. The probe traces and returned data matched. The real workload frequency of this fallback is unmeasured.
(cherry picked from commit b57c6d2927a7be7680e11c3d19c4a0d690702e01)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 18:12:30 +00:00
github-bot changed target branch from main to gh-pr/2854/base 2026-11-29 22:58:31 +00:00
github manually merged commit 3a9bb049c6 into gh-pr/2854/base 2026-11-29 22:58:32 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2854
No description provided.