GPU: bound split write-watch retries to their merged range #2854
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2854"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ghptc on 2026-11-29T18:11:40Z.
When a coalesced write-watch probe crosses a reservation boundary,
ask_restretries 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.