Ranges and unmaps RDNA 3 #36

Closed
opened 2026-12-01 07:41:51 +00:00 by github-bot · 2 comments
Owner

@⁠Ritualcolt on GitHub · 2026-11-30 17:23 UTC · original

Title: RDNA 3 (RX 7900 XTX) report on baf0468: 20s hang watch stall is fixed, but radv/amdgpu still climbs to ~229k uncoalesced ranges / ~116k retained unmaps
Environment:
• Commit: baf0468 (with rebuilt mesa 26.3.1 + vkd3d-proton patches)
• GPU: AMD Radeon RX 7900 XTX (24 GB, RDNA 3)
• CPU: AMD Ryzen 9 9950X3D (pinned to single CCD via taskset -c 0-7,16-23)
• RAM: 32 GB (KEEP_FREE=4096)
• OS / Kernel: openSUSE Tumbleweed, Linux 7.3.5-1-default
• Flags: VICTORY_OUTPUT=2560x1440, VICTORY_RENDER_SCALE=0.75, VICTORY_BVH_BUILDER=0, GE-Proton11-14-vt + viewtree wineserver
What Improved in baf0468 (um/residency.rs + mesa.patch):
• 20s hang watch stall & crash are gone: Previously on 109cdb5, RDNA 3 hit a 20-second hang watch stall and crashed around ~147,876 written ranges. On baf0468, it runs cleanly past 228,958 written ranges with zero stalls or exceptions, and initial FPS feels noticeably smoother.
Remaining RDNA 3 Bottleneck (Uncoalesced VA Range Growth):
Even though um/residency.rs prevents the deadlock, ranges written and unmaps left as they were still grow monotonically from 35,000 -> 228,958 (with 116,461 retained unmaps):
text
radv/amdgpu: unified memory on the card: 35000 ranges written, 154 already there, 30554 unmaps left as they were, 119807 maps not shown, 17028 of them shown when read
radv/amdgpu: unified memory on the card: 103004 ranges written, 177 already there, 65541 unmaps left as they were, 190884 maps not shown, 17030 of them shown when read
radv/amdgpu: unified memory on the card: 155251 ranges written, 177 already there, 93051 unmaps left as they were, 221449 maps not shown, 17030 of them shown when read
radv/amdgpu: unified memory on the card: 228958 ranges written, 179 already there, 116461 unmaps left as they were, 258989 maps not shown, 17030 of them shown when read
Suggestion for Next Performance Pass:
Coalescing adjacent/contiguous dirty VA ranges before GEM_VA submission (or sweeping/reclaiming retained unmaps more aggressively once ranges written passes ~50k–60k) would avoid fragmenting drm_gpuvm into 229k+ separate nodes and should give a substantial FPS boost across RDNA 2/3/4.
Minor KB/M Note:
In native KB/M mode, mouse movement inside the radial weapon/item wheel still doesn't select slices reliably (switching to an XInput controller for further testing).

**@⁠Ritualcolt** on GitHub · 2026-11-30 17:23 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/36) Title: RDNA 3 (RX 7900 XTX) report on baf0468: 20s hang watch stall is fixed, but radv/amdgpu still climbs to ~229k uncoalesced ranges / ~116k retained unmaps Environment: • Commit: baf0468 (with rebuilt mesa 26.3.1 + vkd3d-proton patches) • GPU: AMD Radeon RX 7900 XTX (24 GB, RDNA 3) • CPU: AMD Ryzen 9 9950X3D (pinned to single CCD via taskset -c 0-7,16-23) • RAM: 32 GB (KEEP_FREE=4096) • OS / Kernel: openSUSE Tumbleweed, Linux 7.3.5-1-default • Flags: VICTORY_OUTPUT=2560x1440, VICTORY_RENDER_SCALE=0.75, VICTORY_BVH_BUILDER=0, GE-Proton11-14-vt + viewtree wineserver What Improved in baf0468 (um/residency.rs + mesa.patch): • 20s hang watch stall & crash are gone: Previously on 109cdb5, RDNA 3 hit a 20-second hang watch stall and crashed around ~147,876 written ranges. On baf0468, it runs cleanly past 228,958 written ranges with zero stalls or exceptions, and initial FPS feels noticeably smoother. Remaining RDNA 3 Bottleneck (Uncoalesced VA Range Growth): Even though um/residency.rs prevents the deadlock, ranges written and unmaps left as they were still grow monotonically from 35,000 -> 228,958 (with 116,461 retained unmaps): text radv/amdgpu: unified memory on the card: 35000 ranges written, 154 already there, 30554 unmaps left as they were, 119807 maps not shown, 17028 of them shown when read radv/amdgpu: unified memory on the card: 103004 ranges written, 177 already there, 65541 unmaps left as they were, 190884 maps not shown, 17030 of them shown when read radv/amdgpu: unified memory on the card: 155251 ranges written, 177 already there, 93051 unmaps left as they were, 221449 maps not shown, 17030 of them shown when read radv/amdgpu: unified memory on the card: 228958 ranges written, 179 already there, 116461 unmaps left as they were, 258989 maps not shown, 17030 of them shown when read Suggestion for Next Performance Pass: Coalescing adjacent/contiguous dirty VA ranges before GEM_VA submission (or sweeping/reclaiming retained unmaps more aggressively once ranges written passes ~50k–60k) would avoid fragmenting drm_gpuvm into 229k+ separate nodes and should give a substantial FPS boost across RDNA 2/3/4. Minor KB/M Note: In native KB/M mode, mouse movement inside the radial weapon/item wheel still doesn't select slices reliably (switching to an XInput controller for further testing).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 07:41:52 +00:00
Author
Owner

@⁠Ritualcolt on GitHub · 2026-11-30 17:24 UTC · original

Quick follow-up note (RDNA 3 pipeline compatibility):
warm-refused.txt is empty (0 refused pipelines on RX 7900 XTX / Mesa 26.3.1), so RDNA 3 compiles/accepts all native pipelines cleanly—meaning the remaining bottleneck is strictly the ~229k uncoalesced radv/amdgpu unified-memory ranges rather than shader/pipeline fallbacks.

**@⁠Ritualcolt** on GitHub · 2026-11-30 17:24 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/36#issuecomment-7286215467) Quick follow-up note (RDNA 3 pipeline compatibility): warm-refused.txt is empty (0 refused pipelines on RX 7900 XTX / Mesa 26.3.1), so RDNA 3 compiles/accepts all native pipelines cleanly—meaning the remaining bottleneck is strictly the ~229k uncoalesced radv/amdgpu unified-memory ranges rather than shader/pipeline fallbacks.
Author
Owner

@⁠SemmerSky on GitHub · 2026-11-30 21:13 UTC · original

Second RX 7900 XTX data point (baf0468, Fedora 45, Proton Experimental): ranges written grew steadily to 924,614 after 18 min and 2,244,412 after 35 min (unmaps left 369,162 / 713,779). I can't tie it to the fps here: fps followed scene complexity (draws), and recovered when draws dropped even at the highest counts.

**@⁠SemmerSky** on GitHub · 2026-11-30 21:13 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/36#issuecomment-7292085176) Second RX 7900 XTX data point (`baf0468`, Fedora 45, Proton Experimental): `ranges written` grew steadily to 924,614 after 18 min and 2,244,412 after 35 min (`unmaps left` 369,162 / 713,779). I can't tie it to the fps here: fps followed scene complexity (draws), and recovered when draws dropped even at the highest counts.
This discussion has been locked. Commenting is limited to contributors.
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/lobomfz--VIctory-xmem#36
No description provided.