RX 6900 XT (16 GB, 32 GB RAM): send-ahead loses the device at the world load ("Kernel memory failure"), relay off is stable #93
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/TaynanGT--Vice-Tay#93
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@ItsThatFox on GitHub · 2026-11-27 00:25 UTC · original
Vice-Tay build
a252348(main),diagprofile, built withcargo build --locked --profile diag -p victory --features diagnosticsHardware and graphics driver
AMD Radeon RX 6900 XT (RDNA2, 16 GB), AMD Ryzen 5 5600X (6 cores, 12 threads), 32 GB RAM, AMD driver 32.0.21045.29003, Windows 11 build 26300.
play.ps1 -Machine autopicks the7900xtxpreset, which is tuned for an i9-12900K with 64 GB. With 12 threads,wide_threads()starts 3 helper threads.How to reproduce
Series S, windowed,
scripts\play.ps1 -Console series-s -Windowedwith the default send-ahead (VICTORY_RELAY=2). I start the game, load a save from the menu, and the device is lost while the world loads, around frames 1,000–1,570. Every run with send-ahead on did this, at 1080p and at 720p (VICTORY_OUTPUT=1280x720 VICTORY_UPSCALER=6).Turning send-ahead off is stable. This is the best setup on this PC so far (about 9.5–11 fps in the world, through the prologue section):
What you observed
The crash.
0x887A0007(device reset). DRED (light) shows no page fault and empty breadcrumbs. The crash report says the submitting thread was between submissions with nothing of ours on the card. WithVICTORY_D3D12_DEBUG=1the debug layer's only message isKernel memory failure. There might be a memory leak.Same crash with each of these changed:
VICTORY_RELAY=2(default), 1080pVICTORY_RELAY=2,VICTORY_RELAY_COPY=0VICTORY_RELAY=1VICTORY_LATE_WAIT_LISTS=64VICTORY_CARD_AWAKE=0VICTORY_D3D12_DEBUG=1Stable:
VICTORY_RELAY=0, 1080pVICTORY_RELAY=0, 720p with upscaler 6+ VICTORY_LATE_WAIT=1+ VICTORY_LATE_WAIT=2instead+ VICTORY_LATE_WAIT=1 + VICTORY_WIDE_MERGE=1+ VICTORY_ASK_SPREAD=1on topVICTORY_OUTPUT=1280x720with the default FSR4 upscaler on Series S crashes at+0x28f03e8(the divide noted inresolution.rs), so 720p needsVICTORY_UPSCALER=6.Memory totals are not the cause. I logged the process once a second through the load, with send-ahead on (it crashed) and with the stable setup above (it survived). The stable run peaks higher on every count:
At the crash, the frame report showed 6.5 GB of the card's own memory in use (budget 15.5 GB), 9 GB of RAM free and 59 GB of commit left. One difference I noticed:
host textures: 31055 aliveat the crash, against about 17,000 in the stable run later in the world.My guess is something on the relay's submission path that the AMD kernel driver refuses on RDNA2 under the load burst, such as one submission of 36–42 lists, or memory released or mapped while flights are still in the air. I haven't been able to narrow it further from outside the relay code. I'm happy to run any switch or build you'd like.
Profile of the stable setup, for the fps side (
VICTORY_PROFILE, title submitting thread): settling takes 47% of the frame (card_merge16.6% beforeVICTORY_WIDE_MERGE=1, waiting for the card 12.4%,hand_back11.5%) andrefresh_spans16%, while the helper threads are about 82% idle. Per the frame report the card is about 30% busy; the rest of the time it waits on the submitting thread.Diagnostic excerpt
@ItsThatFox on GitHub · 2026-11-27 00:39 UTC · original
Update: found the cause and a fix that works on this card.
The 7900XTX fork has the same crash on other RDNA2 cards (avatarmanz/VIctory-7900XTX#46 on an RX 6900 XT, #289 with the same "Kernel memory failure"). kyokyotosh traced it on an RX 6700 XT with a GPU ETW trace (FINDINGS-6700XT.md):
land()held the newestbury_lag()(64) flights of finished host lists, and new lists kept being made during the world load, so the segment filled.ReserveResource→0xC0000001), and the scheduler marked the device as faulted (VidSchMarkDeviceAsError).VICTORY_LATE_WAIT_LISTSdon't help.This card has the same segment. The new start-up log line reports it:
What I applied: kyokyotosh's four commits cherry-picked onto Vice-Tay
a252348:f173347retire018d372host/segments.rs:D3DKMTQueryStatisticsandVICTORY_SEGMENT_TIGHTe3c070363a773eThe last three applied cleanly.
f173347conflicted with Vice-Tay's newerland()(past_lag+list::ran, which gives descriptor slots back as flights land). I kept that and theLANDINGtry-lock, and lowered the lag to 0, so every landed list is recycled throughrecycle_landed:recycle_landedretires(state, _uploads, host.take_held())and keeps the host list through the same idle-pool logic asrecycle(nowkeep_idle, with Vice-Tay's scratch-byte limit). TheDetachedfield isstatehere, not_state.Result: same PC, default
play.ps1send-ahead (relay 2), Series S, windowed,VICTORY_OUTPUT=1280x720 VICTORY_UPSCALER=6, diag build.VICTORY_RELAY=0, VICTORY_LATE_WAIT=1, VICTORY_WIDE_MERGE=1) gave about 9.5–11. That scene had more draws (4,300–6,000 against 2,700–4,400 here), so it's not an exact A/B.But: with send-ahead on, the picture has many more visual artifacts than the relay-off setup on the same PC. BlackBu7let reported the same on an RX 6900 XT in avatarmanz/VIctory-7900XTX#46 (black flickering textures with relay on, none with relay off, and
TEXTURE_NO_WAIT=0didn't remove them). Send-ahead never got past the world load here before, so I can't tell whether the fix or send-ahead itself causes them. For now I'm staying on relay off.This is one session so far, not a long soak test. Would you take these as a PR? kyokyotosh said in #289 they won't open one on the 7900XTX fork yet. Their findings also cover the 10–12 GB card-buffer cap (PR #225 on that fork), which didn't come up on this 16 GB card.
@TaynanGT on GitHub · 2026-11-27 01:29 UTC · original
@ItsThatFox Yes, please open a PR against current
mainwith the landed-list recycling change first, keeping kyokyotosh’s authorship and links to the original commits. Please show that the host list returns to the pool only after landing and that its held resources still retire through the existing path, including descriptor-slot retirement. The segment-pressure back-off never fired in your working run, so keeping it and the prelude pool separately reviewable would help isolate what let your 6900 XT load. Your four-minute run establishes that the patched build got into the world. The relay-on artifacts still need a matched comparison, so please carry that caveat into the PR.@TaynanGT on GitHub · 2026-11-27 04:18 UTC · original
Thanks for separating the command-list recycling result from the segment-pressure fallback, @ItsThatFox. The RX 6700 XT report in #138 now gives us another case to compare. I opened draft #144 with recycling isolated behind an opt-in and the descriptor-slot retirement preserved. On your RX 6900 XT, one matched default/opt-in run on that draft would help compare it with your earlier combined build.
@a15106479638-hub on GitHub · 2026-11-27 07:20 UTC · original
Data from a different RDNA2 card, and the two failures this thread describes are fixed by code that already exists in another tree.
Machine: RX 6950 XT (16 GB, RDNA2), i5-12600KF, 32 GB, Windows 11 26300.8935, driver 32.0.21045.29003 (the same driver as the report above), Series X files 1.0.2.1. Vice-Tay
main,diagbuild.On this card an unpatched build died at ~120 s with
host GPU failure: no host list for a state prelude— not a device removal, a missing prelude. WithRELAY=0(whichplay.ps1already picks on non-NVIDIA cards) it still happened, so it is not the send-ahead path.What fixed it. I ported three commits from kyokyotosh/VIctory-6700XT into this tree — the ones that are missing here, not the recycling one, which Vice-Tay already has in its own form (
past_lag+list::ran):63a773e): a list's prelude is taken from a pool when it is first submitted with transitions and given back at its reset, instead ofOnceLockholding one allocator per list for the list's life. That was 952 preludes for 1,476 host lists, near 1 GB of a 2 GB aperture segment on the 6700 XT.018d372):D3DKMTQueryStatisticsper segment, in a newhost/segments.rs.e3c0703): while an aperture segment is over 80% of its limit, every flight lands as it is sent and idle host lists and preludes are trimmed; it counts as clear only below 70%.Result on this card:
no host list for a state preludeThe segment it watches is real: id 1, aperture, limit 2,048 MB. It cycles as intended — passed 80% at 1,638 MB, backed off, fell below 70% at 1,428 MB, went on — six round trips in ten minutes, which is the back-off doing its job rather than the run happening to survive.
For this thread's purposes: the "send-ahead loses the device" and "kernel memory failure" shapes both come from that segment filling with command buffers this side makes faster than flights give them back. The 6900 XT here can take the same three commits; I can send them as a PR if you want them, and the first one alone removes the prelude failure on AMD, where
play.ps1already shipsRELAY=0.Logs, frame breakdowns and the segment traces are available for any of it.
@TaynanGT on GitHub · 2026-11-27 07:41 UTC · original
@a15106479638-hub Yes, please send the prelude pool as the first PR against current
main, with kyokyotosh’s authorship and the source commit. Your RX 6950 XT still hit the missing prelude with relay off, and then ran for over ten minutes with the three changes. The pool on its own is the clearest comparison for that failure. The segment monitoring and back-off can follow as their own change, with your six pressure cycles as evidence.@ItsThatFox on GitHub · 2026-11-27 10:02 UTC · original
@TaynanGT
Matched run on draft #144 (
0c9600f, diag build) on the RX 6900 XT.Same PC, driver 32.0.21045.29003, same save loaded from the menu, Series S, windowed, the PR's default
play.ps1(relay 2),VICTORY_OUTPUT=1280x720 VICTORY_UPSCALER=6. OnlyVICTORY_RECYCLE_LANDED_EARLYchanged.VICTORY_RECYCLE_LANDED_EARLY=1a252348)host GPU device removed after 1 submissions sent ahead (VICTORY_RELAY=1) of 8 listsno host list for a state prelude; device removed(0x887A0007)So on this card, early recycling alone doesn't get through the world load. With it on, the number of lists barely changes (1,217 against 1,129), but preludes go from 118 to 784. The run then fails on the prelude, the same "no host list for a state prelude" the RX 6950 XT report above describes. The combined build had more lists alive (1,290) and survived, with 110 preludes. The difference is the prelude pool (
63a773e). The segment back-off never fired in that run, so it wasn't the back-off.This matches the 6950 XT result: here, the prelude pool is the change that matters. Recycling without the pool seems to make things worse, because recycled lists make preludes again. I'd suggest reviewing the prelude pool first, as you asked the 6950 XT reporter to, and recycling after it rather than on its own.
Logs (frame reports, memory lines, the crash) are available for both runs.
@TaynanGT on GitHub · 2026-11-27 10:12 UTC · original
@ItsThatFox The jump from 118 to 784 preludes on #144 puts the pool first. I opened #211 with kyokyotosh’s prelude pool isolated from early list recycling. Once CI has run, could you compare
VICTORY_PRELUDE_POOL=0andVICTORY_PRELUDE_POOL=1on that same draft build, with the same Series S save, relay settings and 720p output? Thereused a state preludeline and the prelude creation count at the same point in the load will show whether the pool engaged. #144 can wait for that result.@ItsThatFox on GitHub · 2026-11-27 10:31 UTC · original
Matched A/B on draft #211 (
ab63462, diag build) on the RX 6900 XT.Same PC and driver (32.0.21045.29003), same save loaded from the menu, Series S, windowed, the PR's default
play.ps1send-ahead (relay 2),VICTORY_OUTPUT=1280x720 VICTORY_UPSCALER=6. OnlyVICTORY_PRELUDE_POOLchanged.VICTORY_PRELUDE_POOL=0VICTORY_PRELUDE_POOL=1host GPU device removed after 5 submissions sent ahead (effective relay mode 2) of 31 listsreused a state preludeSo the pool on its own gets this card through the world load. Early recycling (#144) isn't needed for that here.
One problem after the load. Once the game is in the world, the "preludes made" count climbs about 115 a second while host lists stay flat at 1,480:
That matches
Pool::give. Withresidency::pressured()true, it keeps onlyPRESSURED_LIMIT(16) idle preludes and drops the rest, so the nexttakemakes a new one. On a 32 GB PC, host memory pressure comes on during the load and stays on, so in the world the pool keeps destroying and re-creating command allocators and lists. It didn't remove the device in two minutes, but it's churn on the submitting thread and the graphics kernel. Preparing was 59–63 ms here, against ~50 ms with kyokyotosh's combined build in a similar spot. That's not a matched number, so read it as a hint only.kyokyotosh's
63a773ecuts the idle pool to 16 while the aperture segment is tight, not on host RAM pressure. In my combined-build run the segment back-off never fired, and preludes stayed at about 110 the whole time. Gatinggiveon the segment, or not shrinking the idle pool on host RAM pressure alone, would probably remove the churn here.Logs for both runs are available.
@TaynanGT on GitHub · 2026-11-27 10:37 UTC · original
@ItsThatFox The pool-only run got through the load. I used host RAM pressure to cut the idle pool to 16, and your creation counts caught the churn that caused.
d2e271dkeeps the idle cap at 128. Could you repeat the same pool-on run on that revision and compare prelude creations after the host-list count settles? That gives us the useful check on the change while #144 stays separate.@ItsThatFox on GitHub · 2026-11-27 11:28 UTC · original
Repeated the pool-on run on
d2e271d: same PC, driver, save and settings as before (Series S, windowed, defaultplay.ps1send-ahead,VICTORY_OUTPUT=1280x720 VICTORY_UPSCALER=6,VICTORY_PRELUDE_POOL=1).The churn is gone. Host memory pressure still came on during the load (
11:25:23 host memory pressure: limiting texture prefetch and idle upload storage, never cleared, same as theab63462run), but prelude creations now stop once the host lists settle:ab63462(cap 16 under pressure)d2e271d(cap 128)The fps rows are different stretches of play, so take that comparison as a hint. The prelude count is the clean result: with the fixed cap of 128, nothing is re-created under sustained host RAM pressure on this card.
@TaynanGT on GitHub · 2026-11-27 11:44 UTC · original
@ItsThatFox The 155 creations stayed flat for 67 seconds with RAM pressure still active, which confirms the fixed cap stopped the churn on your 6900 XT. I merged #211 with the pool still opt-in. The FPS ranges describe different stretches of play, so the merged result is the steady prelude count and the successful world load on this run.
@ItsThatFox on GitHub · 2026-11-27 12:44 UTC · original
Thanks for merging #211. Since the pool is opt-in, the default AMD path still loses the device at the world load on this card. Should play.ps1 turn on VICTORY_PRELUDE_POOL=1 for the AMD preset, or should the pool become the default? I'm happy to run that change. If you'd rather track that separately, feel free to close this one
@TaynanGT on GitHub · 2026-11-27 12:49 UTC · original
@ItsThatFox Keep it opt-in for the RX 6900 XT comparison. I documented the launcher override in #262: add
-More @{VICTORY_PRELUDE_POOL='1'}to the same Series S launch. The 5090 D v2 report also shows reuse, with relay stability still dependent on the tested mode. A repeat on the current RX 6900 XT build with the same save and relay settings is the useful check before changing any presets.@ItsThatFox on GitHub · 2026-11-27 13:00 UTC · original
Repeat on current main (
231b6a9, with #211 and #262), diag build, RX 6900 XT: same PC, driver 32.0.21045.29003, same save, Series S, windowed, the launcher's default send-ahead,VICTORY_OUTPUT=1280x720 VICTORY_UPSCALER=6, plus-More @{VICTORY_PRELUDE_POOL='1'}.reused a state prelude (VICTORY_PRELUDE_POOL)at 12:57:13, 2 s after start.So on current main the same result holds as on
d2e271d: with the pool on, this card gets through the world load with send-ahead, and preludes stay around 145 under sustained host RAM pressure.@TaynanGT on GitHub · 2026-11-27 13:09 UTC · original
@ItsThatFox The repeat on
231b6a9confirms the opt-in works on this RX 6900 XT setup. The count reached 145 and stayed there while RAM pressure remained active. That gives us a current-main reference for this profile, with the same save, relay and 720p output.