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

Open
opened 2026-11-27 00:42:05 +00:00 by github-bot · 15 comments
Owner

@⁠ItsThatFox on GitHub · 2026-11-27 00:25 UTC · original

Vice-Tay build

a252348 (main), diag profile, built with cargo build --locked --profile diag -p victory --features diagnostics

Hardware 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 auto picks the 7900xtx preset, 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 -Windowed with 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):

-More @{VICTORY_RELAY='0'; VICTORY_LATE_WAIT='1'; VICTORY_OUTPUT='1280x720'; VICTORY_UPSCALER='6'; VICTORY_WIDE_MERGE='1'}

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. With VICTORY_D3D12_DEBUG=1 the debug layer's only message is Kernel memory failure. There might be a memory leak.

Same crash with each of these changed:

Run Crashed at frame
VICTORY_RELAY=2 (default), 1080p ~1,377–1,568 (several runs)
VICTORY_RELAY=2, VICTORY_RELAY_COPY=0 1,377
VICTORY_RELAY=1 1,322
VICTORY_LATE_WAIT_LISTS=64 ~1,127
VICTORY_CARD_AWAKE=0 ~1,024
VICTORY_D3D12_DEBUG=1 1,013 ("Kernel memory failure")

Stable:

Run fps in the world
VICTORY_RELAY=0, 1080p ~3.3
VICTORY_RELAY=0, 720p with upscaler 6 ~6
+ VICTORY_LATE_WAIT=1 ~9.7
+ VICTORY_LATE_WAIT=2 instead ~8.6–9.1
+ VICTORY_LATE_WAIT=1 + VICTORY_WIDE_MERGE=1 ~9.5–11
+ VICTORY_ASK_SPREAD=1 on top ~8–10 (write-watch askings 38 ms vs 30)

VICTORY_OUTPUT=1280x720 with the default FSR4 upscaler on Series S crashes at +0x28f03e8 (the divide noted in resolution.rs), so 720p needs VICTORY_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:

send-ahead (crashed) relay off (survived)
GPU process memory committed, peak 15.1 GB 19.3 GB
of it shared (system RAM) 7.8 GB 8.7 GB
Private bytes 20.9 GB 25.4 GB
Free RAM, lowest 7.8 GB 6.0 GB
Handles ~2,850 ~2,848
Non-paged pool (process) 27 MB 31–38 MB

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 alive at 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_merge 16.6% before VICTORY_WIDE_MERGE=1, waiting for the card 12.4%, hand_back 11.5%) and refresh_spans 16%, 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

ERROR victory_gpu::host: when the host device went: the submitting thread was between submissions (nothing of ours was running on the card), of 0 lists, for 0.2 ms; ... objects let go at once 0 and after a running submission 659157; submissions started 3182 finished 3181
ERROR victory_gpu::host: device-removed data; breadcrumbs (done/count, list) []
WARN  victory_gpu::host: D3D12: Kernel memory failure. There might be a memory leak.
ERROR victory_gpu::host: host GPU device removed after 1 submissions sent ahead (VICTORY_RELAY=1) of 42 lists; ... (0x887A0007); debug layer: Kernel memory failure.

Last frame report before the crash (VICTORY_D3D12_DEBUG=1 run):
video memory: the card's own: budget 15569 MB, in use 6477 MB; the PC's shared with the card: budget 15579 MB, in use 5947 MB
memory: 19144 MB private (16561 MB of it in memory; the PC has 9089 MB free and 59114 MB left to commit); host copies of title memory: 4257 alive 3141 MB; host textures: 31055 alive 3774 MB, 30093 placed in title memory; made so far: 241 upload buffers 1849 MB, 4404 shared buffers 3386 MB, 329 card buffers 731 MB

Earlier runs, right before two of the crashes (not present in later crashes):
WARN victory_gpu::residency: host memory pressure: limiting texture prefetch and idle upload storage frame=1320 physical_free_mib=2394 available_commit_mib=45682
**@⁠ItsThatFox** on GitHub · 2026-11-27 00:25 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/93) <!-- Draft GitHub issue for https://github.com/TaynanGT/Vice-Tay (template: "Performance or graphics report"). Title: RX 6900 XT + Ryzen 5 5600X (32 GB RAM): send-ahead loses the device at the world load ("Kernel memory failure"); relay off is stable Paste each section below into the matching field of the form. --> ### Vice-Tay build `a252348` (main), `diag` profile, built with `cargo build --locked --profile diag -p victory --features diagnostics` ### Hardware 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 auto` picks the `7900xtx` preset, 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 -Windowed` with 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): ``` -More @{VICTORY_RELAY='0'; VICTORY_LATE_WAIT='1'; VICTORY_OUTPUT='1280x720'; VICTORY_UPSCALER='6'; VICTORY_WIDE_MERGE='1'} ``` ### 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. With `VICTORY_D3D12_DEBUG=1` the debug layer's only message is `Kernel memory failure. There might be a memory leak.` **Same crash with each of these changed:** | Run | Crashed at frame | |---|---| | `VICTORY_RELAY=2` (default), 1080p | ~1,377–1,568 (several runs) | | `VICTORY_RELAY=2`, `VICTORY_RELAY_COPY=0` | 1,377 | | `VICTORY_RELAY=1` | 1,322 | | `VICTORY_LATE_WAIT_LISTS=64` | ~1,127 | | `VICTORY_CARD_AWAKE=0` | ~1,024 | | `VICTORY_D3D12_DEBUG=1` | 1,013 ("Kernel memory failure") | **Stable:** | Run | fps in the world | |---|---| | `VICTORY_RELAY=0`, 1080p | ~3.3 | | `VICTORY_RELAY=0`, 720p with upscaler 6 | ~6 | | `+ VICTORY_LATE_WAIT=1` | ~9.7 | | `+ VICTORY_LATE_WAIT=2` instead | ~8.6–9.1 | | `+ VICTORY_LATE_WAIT=1 + VICTORY_WIDE_MERGE=1` | ~9.5–11 | | `+ VICTORY_ASK_SPREAD=1` on top | ~8–10 (write-watch askings 38 ms vs 30) | `VICTORY_OUTPUT=1280x720` with the default FSR4 upscaler on Series S crashes at `+0x28f03e8` (the divide noted in `resolution.rs`), so 720p needs `VICTORY_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: | | send-ahead (crashed) | relay off (survived) | |---|---|---| | GPU process memory committed, peak | 15.1 GB | 19.3 GB | | of it shared (system RAM) | 7.8 GB | 8.7 GB | | Private bytes | 20.9 GB | 25.4 GB | | Free RAM, lowest | 7.8 GB | 6.0 GB | | Handles | ~2,850 | ~2,848 | | Non-paged pool (process) | 27 MB | 31–38 MB | 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 alive` at 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_merge` 16.6% before `VICTORY_WIDE_MERGE=1`, waiting for the card 12.4%, `hand_back` 11.5%) and `refresh_spans` 16%, 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 ```text ERROR victory_gpu::host: when the host device went: the submitting thread was between submissions (nothing of ours was running on the card), of 0 lists, for 0.2 ms; ... objects let go at once 0 and after a running submission 659157; submissions started 3182 finished 3181 ERROR victory_gpu::host: device-removed data; breadcrumbs (done/count, list) [] WARN victory_gpu::host: D3D12: Kernel memory failure. There might be a memory leak. ERROR victory_gpu::host: host GPU device removed after 1 submissions sent ahead (VICTORY_RELAY=1) of 42 lists; ... (0x887A0007); debug layer: Kernel memory failure. Last frame report before the crash (VICTORY_D3D12_DEBUG=1 run): video memory: the card's own: budget 15569 MB, in use 6477 MB; the PC's shared with the card: budget 15579 MB, in use 5947 MB memory: 19144 MB private (16561 MB of it in memory; the PC has 9089 MB free and 59114 MB left to commit); host copies of title memory: 4257 alive 3141 MB; host textures: 31055 alive 3774 MB, 30093 placed in title memory; made so far: 241 upload buffers 1849 MB, 4404 shared buffers 3386 MB, 329 card buffers 731 MB Earlier runs, right before two of the crashes (not present in later crashes): WARN victory_gpu::residency: host memory pressure: limiting texture prefetch and idle upload storage frame=1320 physical_free_mib=2394 available_commit_mib=45682 ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:42:06 +00:00
Author
Owner

@⁠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):

  • The driver's command-list memory (1 MB + 64 KB per D3D12 command list) lives in a 2 GB aperture segment.
  • With send-ahead, land() held the newest bury_lag() (64) flights of finished host lists, and new lists kept being made during the world load, so the segment filled.
  • The video memory manager then couldn't make a new command list resident (ReserveResource → 0xC0000001), and the scheduler marked the device as faulted (VidSchMarkDeviceAsError).
  • That's why there's no page fault, no breadcrumbs and no TDR, and why memory totals and VICTORY_LATE_WAIT_LISTS don't help.

This card has the same segment. The new start-up log line reports it:

segments: id=0 aperture=false limit_mb=16337 | id=1 aperture=true limit_mb=2048 | id=2 aperture=true limit_mb=30612 | id=3 aperture=true (unlimited)

What I applied: kyokyotosh's four commits cherry-picked onto Vice-Tay a252348:

Commit Change
f173347 Landed host lists go back to the pool at once; what they held waits the bury lag through retire
018d372 host/segments.rs: D3DKMTQueryStatistics and VICTORY_SEGMENT_TIGHT
e3c0703 The back-off checked on every send, idle lists trimmed while tight (80% on, 70% off)
63a773e Preludes from a pool

The last three applied cleanly. f173347 conflicted with Vice-Tay's newer land() (past_lag + list::ran, which gives descriptor slots back as flights land). I kept that and the LANDING try-lock, and lowered the lag to 0, so every landed list is recycled through recycle_landed:

let mut landed = std::mem::take(&mut line().landed);
past_lag(&mut landed, 0, |(lists, _)| crate::list::ran(lists))
// then for each: crate::list::recycle_landed(lists, &order)

recycle_landed retires (state, _uploads, host.take_held()) and keeps the host list through the same idle-pool logic as recycle (now keep_idle, with Vice-Tay's scratch-byte limit). The Detached field is state here, not _state.

Result: same PC, default play.ps1 send-ahead (relay 2), Series S, windowed, VICTORY_OUTPUT=1280x720 VICTORY_UPSCALER=6, diag build.

  • It gets through the world load with no device loss. I quit after about 4 minutes, and the log has no device-removed lines.
  • About 13–16 fps in the world (62–77 ms a frame; preparing 50–60 ms, copying back 19–23 ms, the card waited 1–12 ms).
  • The best setup without send-ahead (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.
  • The segment back-off never fired in this run. Giving landed lists back at once was enough to keep the segment under 80%.
  • Host lists alive: 1,290 in the world.

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=0 didn'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.

**@⁠ItsThatFox** on GitHub · 2026-11-27 00:39 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/93#issuecomment-7206647161) 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](https://github.com/kyokyotosh/VIctory-6700XT/blob/main/FINDINGS-6700XT.md)): - The driver's command-list memory (1 MB + 64 KB per D3D12 command list) lives in a 2 GB aperture segment. - With send-ahead, `land()` held the newest `bury_lag()` (64) flights of finished host lists, and new lists kept being made during the world load, so the segment filled. - The video memory manager then couldn't make a new command list resident (`ReserveResource` → `0xC0000001`), and the scheduler marked the device as faulted (`VidSchMarkDeviceAsError`). - That's why there's no page fault, no breadcrumbs and no TDR, and why memory totals and `VICTORY_LATE_WAIT_LISTS` don't help. This card has the same segment. The new start-up log line reports it: ```text segments: id=0 aperture=false limit_mb=16337 | id=1 aperture=true limit_mb=2048 | id=2 aperture=true limit_mb=30612 | id=3 aperture=true (unlimited) ``` **What I applied:** kyokyotosh's four commits cherry-picked onto Vice-Tay `a252348`: | Commit | Change | |---|---| | `f173347` | Landed host lists go back to the pool at once; what they held waits the bury lag through `retire` | | `018d372` | `host/segments.rs`: `D3DKMTQueryStatistics` and `VICTORY_SEGMENT_TIGHT` | | `e3c0703` | The back-off checked on every send, idle lists trimmed while tight (80% on, 70% off) | | `63a773e` | Preludes from a pool | The last three applied cleanly. `f173347` conflicted with Vice-Tay's newer `land()` (`past_lag` + `list::ran`, which gives descriptor slots back as flights land). I kept that and the `LANDING` try-lock, and lowered the lag to 0, so every landed list is recycled through `recycle_landed`: ```rust let mut landed = std::mem::take(&mut line().landed); past_lag(&mut landed, 0, |(lists, _)| crate::list::ran(lists)) // then for each: crate::list::recycle_landed(lists, &order) ``` `recycle_landed` retires `(state, _uploads, host.take_held())` and keeps the host list through the same idle-pool logic as `recycle` (now `keep_idle`, with Vice-Tay's scratch-byte limit). The `Detached` field is `state` here, not `_state`. **Result:** same PC, default `play.ps1` send-ahead (relay 2), Series S, windowed, `VICTORY_OUTPUT=1280x720 VICTORY_UPSCALER=6`, diag build. - It gets through the world load with no device loss. I quit after about 4 minutes, and the log has no device-removed lines. - About **13–16 fps** in the world (62–77 ms a frame; preparing 50–60 ms, copying back 19–23 ms, the card waited 1–12 ms). - The best setup without send-ahead (`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. - The segment back-off never fired in this run. Giving landed lists back at once was enough to keep the segment under 80%. - Host lists alive: 1,290 in the world. **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=0` didn'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.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 01:29 UTC · original

@⁠ItsThatFox Yes, please open a PR against current main with 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 01:29 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/93#issuecomment-7207323621) @⁠ItsThatFox Yes, please open a PR against current `main` with 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.
Author
Owner

@⁠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.

**@⁠TaynanGT** on GitHub · 2026-11-27 04:18 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/93#issuecomment-7209692358) 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](https://git.gtahub.st/github/TaynanGT--Vice-Tay/pulls/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.
Author
Owner

@⁠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, diag build.

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. With RELAY=0 (which play.ps1 already 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):

  1. The prelude pool (63a773e): a list's prelude is taken from a pool when it is first submitted with transitions and given back at its reset, instead of OnceLock holding 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.
  2. The aperture-segment monitor (018d372): D3DKMTQueryStatistics per segment, in a new host/segments.rs.
  3. The back-off (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:

before after
no host list for a state prelude at ~120 s, every run 0 in 10+ minutes
device removals — 0
world frame rate — 11.5 fps average, 19 max (Series S, 32 samples)

The 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.ps1 already ships RELAY=0.

Logs, frame breakdowns and the segment traces are available for any of it.

**@⁠a15106479638-hub** on GitHub · 2026-11-27 07:20 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/93#issuecomment-7212377038) 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`, `diag` build. 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. With `RELAY=0` (which `play.ps1` already 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](https://github.com/kyokyotosh/VIctory-6700XT/blob/main/FINDINGS-6700XT.md) 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`): 1. **The prelude pool** (`63a773e`): a list's prelude is taken from a pool when it is first submitted with transitions and given back at its reset, instead of `OnceLock` holding 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. 2. **The aperture-segment monitor** (`018d372`): `D3DKMTQueryStatistics` per segment, in a new `host/segments.rs`. 3. **The back-off** (`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:** | | before | after | |---|---|---| | `no host list for a state prelude` | at ~120 s, every run | **0 in 10+ minutes** | | device removals | — | **0** | | world frame rate | — | **11.5 fps average, 19 max** (Series S, 32 samples) | The 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.ps1` already ships `RELAY=0`. Logs, frame breakdowns and the segment traces are available for any of it.
Author
Owner

@⁠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.

**@⁠TaynanGT** on GitHub · 2026-11-27 07:41 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/93#issuecomment-7212723575) @⁠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.
Author
Owner

@⁠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. Only VICTORY_RECYCLE_LANDED_EARLY changed.

A: default B: VICTORY_RECYCLE_LANDED_EARLY=1 Earlier combined build (all four kyokyotosh commits on a252348)
World load device removed at frame 1,586, ~63 s after start device removed, ~54 s after start passed, ~4 min, no removal
Error host GPU device removed after 1 submissions sent ahead (VICTORY_RELAY=1) of 8 lists no host list for a state prelude; device removed (0x887A0007) —
Host lists made 1,129 1,217 1,290
Preludes made 118 784 110

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.

**@⁠ItsThatFox** on GitHub · 2026-11-27 10:02 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/93#issuecomment-7215404779) @⁠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`. Only `VICTORY_RECYCLE_LANDED_EARLY` changed. | | A: default | B: `VICTORY_RECYCLE_LANDED_EARLY=1` | Earlier combined build (all four kyokyotosh commits on `a252348`) | |---|---|---|---| | World load | **device removed** at frame 1,586, ~63 s after start | **device removed**, ~54 s after start | passed, ~4 min, no removal | | Error | `host GPU device removed after 1 submissions sent ahead (VICTORY_RELAY=1) of 8 lists` | `no host list for a state prelude; device removed` (0x887A0007) | — | | Host lists made | 1,129 | 1,217 | 1,290 | | **Preludes made** | 118 | **784** | **110** | 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.
Author
Owner

@⁠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=0 and VICTORY_PRELUDE_POOL=1 on that same draft build, with the same Series S save, relay settings and 720p output? The reused a state prelude line and the prelude creation count at the same point in the load will show whether the pool engaged. #144 can wait for that result.

**@⁠TaynanGT** on GitHub · 2026-11-27 10:12 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/93#issuecomment-7215613004) @⁠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=0` and `VICTORY_PRELUDE_POOL=1` on that same draft build, with the same Series S save, relay settings and 720p output? The `reused a state prelude` line and the prelude creation count at the same point in the load will show whether the pool engaged. #144 can wait for that result.
Author
Owner

@⁠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.ps1 send-ahead (relay 2), VICTORY_OUTPUT=1280x720 VICTORY_UPSCALER=6. Only VICTORY_PRELUDE_POOL changed.

A: VICTORY_PRELUDE_POOL=0 B: VICTORY_PRELUDE_POOL=1
World load device removed ~46 s after start (frame ~1,141): host GPU device removed after 5 submissions sent ahead (effective relay mode 2) of 31 lists passed; ran ~2 min in the world, no removal, closed by hand
reused a state prelude — yes, at 10:28:00 (~1 s after start)
Host lists / preludes made, last line before the crash or the same point in the load 1,097 / 119 1,329 / 105, then 1,470 / 147
fps in the world — 9.5–14.3 (70–105 ms; preparing 59–63 ms)

So 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:

10:28:54  host memory pressure: limiting texture prefetch and idle upload storage   (the only pressure line; it never clears)
10:28:59  lists=1471 preludes=810
10:29:15  lists=1480 preludes=1626
10:29:36  lists=1480 preludes=3392
10:29:57  lists=1480 preludes=5848

That matches Pool::give. With residency::pressured() true, it keeps only PRESSURED_LIMIT (16) idle preludes and drops the rest, so the next take makes 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 63a773e cuts 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. Gating give on 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.

**@⁠ItsThatFox** on GitHub · 2026-11-27 10:31 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/93#issuecomment-7215981164) 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.ps1` send-ahead (relay 2), `VICTORY_OUTPUT=1280x720 VICTORY_UPSCALER=6`. Only `VICTORY_PRELUDE_POOL` changed. | | A: `VICTORY_PRELUDE_POOL=0` | B: `VICTORY_PRELUDE_POOL=1` | |---|---|---| | World load | **device removed** ~46 s after start (frame ~1,141): `host GPU device removed after 5 submissions sent ahead (effective relay mode 2) of 31 lists` | **passed**; ran ~2 min in the world, no removal, closed by hand | | `reused a state prelude` | — | yes, at 10:28:00 (~1 s after start) | | Host lists / preludes made, last line before the crash or the same point in the load | 1,097 / 119 | 1,329 / 105, then 1,470 / 147 | | fps in the world | — | 9.5–14.3 (70–105 ms; preparing 59–63 ms) | So 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: ```text 10:28:54 host memory pressure: limiting texture prefetch and idle upload storage (the only pressure line; it never clears) 10:28:59 lists=1471 preludes=810 10:29:15 lists=1480 preludes=1626 10:29:36 lists=1480 preludes=3392 10:29:57 lists=1480 preludes=5848 ``` That matches `Pool::give`. With `residency::pressured()` true, it keeps only `PRESSURED_LIMIT` (16) idle preludes and drops the rest, so the next `take` makes 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 `63a773e` cuts 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. Gating `give` on 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.
Author
Owner

@⁠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. d2e271d keeps 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.

**@⁠TaynanGT** on GitHub · 2026-11-27 10:37 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/93#issuecomment-7216111527) @⁠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. `d2e271d` keeps 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.
Author
Owner

@⁠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, default play.ps1 send-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 the ab63462 run), but prelude creations now stop once the host lists settle:

ab63462 (cap 16 under pressure) d2e271d (cap 128)
Host lists after settling 1,480 1,447
Preludes made, through the load 105 → 147 118 → 148
Preludes made, after the lists settled 810 → 5,848 in ~60 s (~115/s) 155, flat for 67 s (11:25:41 → 11:26:48)
World load passed passed; ~1.5 min in the world, no device removal, closed by hand
fps in the world, once settled 9.5–14.3 (preparing 59–63 ms) 13–17 (preparing 45–57 ms)
11:24:00  reused a state prelude (VICTORY_PRELUDE_POOL)
11:25:23  host memory pressure: limiting texture prefetch and idle upload storage
11:25:41  host lists: 1447 made by the host, 155 preludes made for them
11:26:48  host lists: 1447 made by the host, 155 preludes made for them

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.

**@⁠ItsThatFox** on GitHub · 2026-11-27 11:28 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/93#issuecomment-7217111392) Repeated the pool-on run on `d2e271d`: same PC, driver, save and settings as before (Series S, windowed, default `play.ps1` send-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 the `ab63462` run), but prelude creations now stop once the host lists settle: | | `ab63462` (cap 16 under pressure) | `d2e271d` (cap 128) | |---|---|---| | Host lists after settling | 1,480 | 1,447 | | Preludes made, through the load | 105 → 147 | 118 → 148 | | Preludes made, after the lists settled | 810 → 5,848 in ~60 s (~115/s) | **155, flat for 67 s** (11:25:41 → 11:26:48) | | World load | passed | passed; ~1.5 min in the world, no device removal, closed by hand | | fps in the world, once settled | 9.5–14.3 (preparing 59–63 ms) | 13–17 (preparing 45–57 ms) | ```text 11:24:00 reused a state prelude (VICTORY_PRELUDE_POOL) 11:25:23 host memory pressure: limiting texture prefetch and idle upload storage 11:25:41 host lists: 1447 made by the host, 155 preludes made for them 11:26:48 host lists: 1447 made by the host, 155 preludes made for them ``` 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.
Author
Owner

@⁠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.

**@⁠TaynanGT** on GitHub · 2026-11-27 11:44 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/93#issuecomment-7217421423) @⁠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.
Author
Owner

@⁠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

**@⁠ItsThatFox** on GitHub · 2026-11-27 12:44 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/93#issuecomment-7218614889) 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
Author
Owner

@⁠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.

**@⁠TaynanGT** on GitHub · 2026-11-27 12:49 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/93#issuecomment-7218722642) @⁠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.
Author
Owner

@⁠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'}.

  • World load passed, no device removal. About a minute in the world after the load, closed by hand.
  • The pool engaged: reused a state prelude (VICTORY_PRELUDE_POOL) at 12:57:13, 2 s after start.
  • No churn. Host memory pressure came on at the world load (12:59:00) and didn't clear, and the prelude count stayed flat once the lists settled:
12:58:16  host lists: 1278, preludes made: 108   (menus)
12:59:00  host memory pressure: limiting texture prefetch and idle upload storage
12:59:12  host lists: 1414, preludes made: 144   (world loaded)
12:59:59  host lists: 1414, preludes made: 145
13:00:09  host lists: 1423, preludes made: 145
  • fps in the world: 12.2–16.5 (61–82 ms a frame, preparing 45–56 ms), mostly 15.6–16.5.

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.

**@⁠ItsThatFox** on GitHub · 2026-11-27 13:00 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/93#issuecomment-7218952243) 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'}`. - **World load passed**, no device removal. About a minute in the world after the load, closed by hand. - **The pool engaged:** `reused a state prelude (VICTORY_PRELUDE_POOL)` at 12:57:13, 2 s after start. - **No churn.** Host memory pressure came on at the world load (12:59:00) and didn't clear, and the prelude count stayed flat once the lists settled: ```text 12:58:16 host lists: 1278, preludes made: 108 (menus) 12:59:00 host memory pressure: limiting texture prefetch and idle upload storage 12:59:12 host lists: 1414, preludes made: 144 (world loaded) 12:59:59 host lists: 1414, preludes made: 145 13:00:09 host lists: 1423, preludes made: 145 ``` - **fps in the world:** 12.2–16.5 (61–82 ms a frame, preparing 45–56 ms), mostly 15.6–16.5. 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.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 13:09 UTC · original

@⁠ItsThatFox The repeat on 231b6a9 confirms 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.

**@⁠TaynanGT** on GitHub · 2026-11-27 13:09 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/93#issuecomment-7219119955) @⁠ItsThatFox The repeat on `231b6a9` confirms 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.
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/TaynanGT--Vice-Tay#93
No description provided.