GPU: batch memory notifications from each landing job #1033

Manually merged
github merged 1 commit from github-bot/gh-1033 into main 2026-11-29 08:22:10 +00:00 AGit
Owner

@⁠yumaste on GitHub · 2026-11-28 11:46 UTC · original
yumaste:nvidia/perf-landing-notifications → main · +70 −37 · 3 files · 1 commits · merged 2026-11-29 08:16 UTC

GPU landing reports written spans to two shared tables: the physical-view map, to find alias addresses, and the placed-texture invalidation queue. Both were locked once per span. A landing job already collects these spans before notifying the journal, so use the same batch when querying aliases and queuing texture invalidations. Preserve range ordering within each job, alias notifications, boundary filtering and the existing queue cap.

The RTX 5080 profile in docs/findings.md identifies landing on the CPU side as a cost. To isolate the invalidation queue, I used 1,536 disjoint 4 KiB notices inside the placed-texture bounds, four spans per job, and four landing workers. Each run alternated 256 frames per variant after warm-up and verified the entire queued address list. Across three runs on Windows (Core Ultra 9 275HX, optimized tests), the median of the run medians went from 294 to 126 microseconds. The median of the p95 results went from 345 to 150 microseconds. This measures the notification queue; the repository's full landing benchmark showed no consistent gain, and game FPS was not measured.

Validation: 453 GPU tests passed (36 ignored), including the placed-texture remap test. All-target, all-feature GPU Clippy passed with the baseline manual_is_multiple_of lint allowed.

Related to #843. It changes how heaps consume remap history. This change batches producers and would need to be reconciled with that queue rewrite if it lands first.

**@⁠yumaste** on GitHub · 2026-11-28 11:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1033) `yumaste:nvidia/perf-landing-notifications` → `main` · +70 −37 · 3 files · 1 commits · merged 2026-11-29 08:16 UTC GPU landing reports written spans to two shared tables: the physical-view map, to find alias addresses, and the placed-texture invalidation queue. Both were locked once per span. A landing job already collects these spans before notifying the journal, so use the same batch when querying aliases and queuing texture invalidations. Preserve range ordering within each job, alias notifications, boundary filtering and the existing queue cap. The RTX 5080 profile in docs/findings.md identifies landing on the CPU side as a cost. To isolate the invalidation queue, I used 1,536 disjoint 4 KiB notices inside the placed-texture bounds, four spans per job, and four landing workers. Each run alternated 256 frames per variant after warm-up and verified the entire queued address list. Across three runs on Windows (Core Ultra 9 275HX, optimized tests), the median of the run medians went from 294 to 126 microseconds. The median of the p95 results went from 345 to 150 microseconds. This measures the notification queue; the repository's full landing benchmark showed no consistent gain, and game FPS was not measured. Validation: 453 GPU tests passed (36 ignored), including the placed-texture remap test. All-target, all-feature GPU Clippy passed with the baseline `manual_is_multiple_of` lint allowed. Related to #843. It changes how heaps consume remap history. This change batches producers and would need to be reconciled with that queue rewrite if it lands first.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 14:31:58 +00:00
github-bot force-pushed github-bot/gh-1033 from db361f0150 to 799bbfea95 2026-11-28 20:28:55 +00:00 Compare
github manually merged commit bb45e56cd0 into main 2026-11-29 08:22:10 +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!1033
No description provided.