Skip to content

GPU: batch memory notifications from each landing job - #1033

Open
yumaste wants to merge 1 commit into
trustno1-coder:mainfrom
yumaste:nvidia/perf-landing-notifications
Open

yumaste wants to merge 1 commit into
trustno1-coder:mainfrom
yumaste:nvidia/perf-landing-notifications

Conversation

@yumaste

@yumaste yumaste commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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
yumaste force-pushed the nvidia/perf-landing-notifications branch from db361f0 to 799bbfe Compare November 28, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant