RX 6750 XT: 12 GB VRAM/RAM stability and texture reserve #267
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!267
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-267"
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?
@ultimatebash on GitHub · 2026-12-02 22:58 UTC · original
ultimatebash:rx6750xt-memory→main· +1088 −81 · 16 files · 4 commits · openRX 6750 XT: 12 GB VRAM/RAM stability, texture reserve, and automated benchmarks
Base:
lobomfz/VIctory-xmemmain@d3dbb1aHead:
pr/rx6750xt-memory@6462338(merged latest main, conflicts resolved)Summary
This branch targets a 12 GB RX 6750 XT and fixes the two failure modes seen on
it: the title was RAM-capped far below its working set (4.1 GiB, 3.5 GB swap)
and VRAM reached about 11.6 GB of 12.9 GB, so the kernel could no longer pin a
display framebuffer (
amdgpu ... pin failed,-ENOMEM). The picture stoppedwhile the radio kept playing.
The branch keeps the title's paged room around 3 GiB, stops host textures
before the card is full, and never lets a play session's RAM cap fall below its
12 GiB working set while that much is available. It also makes the benchmark
path repeatable and integrates two small upstream performance PRs.
Main changes
run.sh: play sessions get at leastmin(WANT_RAM, available - 2 GiB)instead of the old
KEEP_FREE-only value. The 12 GiB host default and GTTwarning from upstream #226 are kept.
the card for the title, whichever leaves more (3.7 GiB on 12 GB, 4.8 GiB
on 16 GB, 12 GiB on 24 GB). Explicit
VICTORY_CARD_KEPT_MB/VICTORY_UM_CARD_MBstill win.12 GB card. The working configuration uses
VICTORY_CARD_KEPT_MB=9216and
VICTORY_TEXTURE_ROOM_CAP_PERCENT=86/..._PERCENT=82; the latter isa local
run.confvalue, not a changed code default.texture upload (no discarded reads, hashes or detiling).
same winsys (
patches/mesa.patch; the pipeline cache key changes once).VICTORY_LIST_RESETS_MOST(PR #3) bounds command-allocator growth.VICTORY_KEYSparser extracted and tested, including thefrom-to/step:Keyrepeat form.VICTORY_TITLE_ARGSpasses title arguments (-skipToIIS) throughrun.sh.tools/bench-keys.sh: unattended diagnostic benchmark runner.run.conf.default.Measurements
Old configuration (44-minute session, 4.1 GiB RAM cap, 92/86 texture room):
pin failed, 3.745 s worst frameStable configuration (release and diagnostic runs, same safehouse):
*The short release run is dominated by the one-time world-load frame; the
4-minute steady windows are in the next column.
Six 4-minute automated runs (base twice, pool move, page tuning, late fence,
all three) showed run-to-run drift larger than every variant. The repeated
baseline moved by −8 % (1 %), −32 % (0.1 %), +9 % (p99) and +27 % (worst), so
no speculative switch was adopted. Moving benchmarks kept 86/82 over 82/78
(fewer neutral-texture frames: 0.78 vs 1.26) and 3.0 GiB title room over
3.5 GiB.
Known remaining artifact: a character face can be black for a few seconds.
Logs show 731–932 texture uploads whose source read all zeros, plus 0.78–1.26
neutral frames per slot; there is no pin failure. This is a first-upload /
zero-memory streaming issue, not VRAM exhaustion. More title room did not fix
it; a careful all-zero-upload deferral is the next code step.
Tests
PROFILE=diag) builds pass.the_title_room_follows_the_card_and_the_switchespasses.key_script_parses_presses_and_repeatspasses.victory-hleunder Wine: 153 passed, 1 ignored; the 5 failures are hosteffects (native Wine pointer path, missing
WSAConnectByList, non-NTFS tempfolder), not the changed Bink/key paths.
./run.sh shaders: 25.694 shaders cached, 195 known non-translatable GFX10containers, exit 0.
VICTORY_SKIP_INTRO=1,VICTORY_KEYS=20:Enterand-skipToIISworks; the safehouse TV plays instead of showing a greenrectangle after
VICTORY_SKIP_BINKis left unset.4e15ef9) into pr/rx6750xt-memory 14ad0cee3fd3dbb1a) into pr/rx6750xt-memory 6462338ba5@El-Biiscuit on GitHub · 2026-12-03 15:48 UTC · original
A/B data from another 12 GB gfx1031 card, in case it helps the review.
Setup: RX 6700 XT 12 GB (gfx1031, resizable BAR 16 GiB), Ryzen 7 5800X, 62 GiB RAM, Fedora 45, kernel 7.3.6, GE-Proton11-16. Built-in benchmark mode (
VICTORY_BENCH=nort: Series X, FSR 4 Quality 1440p → 3840x2160), 4 min per run with the last 3 min measured (MangoHud frame times). The same save was restored before every run, nobody touched the PC, and no remote desktop session was open.842767a(main).842767awith this PR merged locally (onlyREADME.mdconflicted; Mesa rebuilt with the PR'smesa.patch), default settings, noVICTORY_CARD_KEPT_MB.card_mb_for_titlepin failed8/8 runs completed. B was faster in every pair, but by little: median −1.3 %, and the four B medians are all below the four A medians. p99 is −4.9 %, with the ranges slightly overlapping. B's first run logged 465 ×
texture already on the card is brought up to date although the card has no room, so the extra title room does put some pressure on textures.Moving scene. Same harness and order, but with a city save on foot and the camera turning continuously for the whole measured window. Both arms used the diagnostics build (
PROFILE=diag), so these numbers are not comparable with the table above.VICTORY_KEYS=40-600:Lwas used with a copy of the default native-keys table in whichLis bound to theNumpad6actions (INPUT_LOOK_RIGHT_ONLY, …). This was needed because, with a real pad connected, the scriptedLreached the game as its native key and opened the phone.card has no roomlines per runpin failedThree of the four B runs are clearly better than every A run (median 84.6–86.0 ms against 87.9–89.8 ms; p99 215–227 ms against 259–293 ms). The fourth (run 6) matched A, with the same
card_mb_for_title=3681and a similarno roomcount, and I don't know why. So the trend favours the PR, mostly in the tail (p99 −14 %), but the ranges overlap.The character stands on foot and jumps only at the start, because of the benchmark's Enter / pad
Apresses (5–65 s). That overlaps at most the first ~5 s of the measured window, in both arms.Limits: 3 min measured per run, camera rotation only (no walking or driving). I did not test a long session (the 44-minute freeze you describe) or
VICTORY_CARD_KEPT_MB=9216. I can run any of those with the same harness if that would help.@Luxuride on GitHub · 2026-12-04 12:02 UTC · original
There is real field data in here — the allocator "Kernel memory failure" story and a reset-count cap is worth having in the tree — but as sent this is your fork state, not a change: version bump (
Cargo.toml:80.1.0 → 0.2.0), a new 230-lineCHANGELOG.md, a 62-line README rewrite, ten switches, a RAM-policy reversal and a paging heuristic in one 1,088-line diff, 200 commits stale, conflicting in four files.Three findings worth acting on:
run.sh:124-130silently raisesKEEP_FREEtoWANT_RAMminus 2 GiB for play, whilerun.conf.default:95-101still documentsKEEP_FREEas "MiB of RAM left to the rest of the system" andrun.sh:179only warns when the cap is belowWANT_RAM. A policy reversal on a documented knob, hidden in a VRAM PR, and on a 16 GiB machine it can push you into the swap-death the comment is trying to avoid on the other side.run.conf.default(none indocs/SETTINGS.md), which is the table the project treats as the contract.crates/victory-gpu/src/um/residency.rs:570-576asks "are we pressed?" twice per tick with different inputs (:735again, withfreedand warm moves accounted); the two can disagree within one tick and nothing says which wins.Send
HostList::worn()/VICTORY_LIST_RESETS_MOSTalone first — small, mechanism, lands. Then one PR per remaining idea, and the RAM cap needs the maintainer's decision before it needs review.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.