12 GB card (RX 6700 XT, gfx1031): card_mb_for_title=1024 → device removed 0x887A0005 at image publication; 6 GiB kept-for-host boots #119

Open
opened 2026-12-01 22:14:16 +00:00 by github-bot · 4 comments
Owner

@⁠Polland25 on GitHub · 2026-12-01 22:10 UTC · original

Environment

  • Radeon RX 6700 XT, 12272 MB, RADV (Mesa 26.3.1), gfx1031
  • CachyOS, kernel 7.3.6, proton-cachyos-slr
  • 16 GB DDR4, GRUB: amdgpu.gttsize=11264 ttm.pages_limit=3145728
  • main @ 37bb30f, plus the one constant below (nothing else changed)
  • Series S and Series X profiles both hit this same wall before the constant was changed

What happens

Startup dies ~20 s in, at the first presented image, before any frame renders:

INFO victory_gpu::um: unified memory: title graphics memory is the card driver's own, shown to the title where it asks ram=5 vram=Some(3) card_mb_for_title=1024
INFO victory_gpu::um: unified memory: write-combined title memory starts in RAM, the card's room for title memory is taken mb=2199 card_mb_for_title=1024

radv/amdgpu: Not enough memory for command submission.
err:vkd3d-proton:d3d12_command_queue_execute: Failed to submit queue(s), vr -4.
err:vkd3d-proton:vkd3d_wait_for_gpu_timeline_semaphore: Failed to wait for Vulkan timeline semaphore, vr -4.

ERROR victory_gpu::host: device removed at image publication; device removed: 0x887A0005
VIctory: host GPU failure: host GPU device removed after 1 submissions sent ahead of 1 lists

16 title-memory chunks of 3840 MB are mapped, but only 1024 MB of VRAM is budgeted to the title, so the working set lands in GTT instead of the card.

Where the 1024 MB comes from

crates/victory-gpu/src/um.rs:

const CARD_KEPT_FOR_HOST: u64 = 12 << 30;
const CARD_FOR_TITLE_AT_LEAST: u64 = 1 << 30;

room = card − CARD_KEPT_FOR_HOST, floored at CARD_FOR_TITLE_AT_LEAST. On a 12272 MB card 12272 − 12288 saturates to 0 and the floor gives the title 1024 MB — i.e. the constant assumes a ~16 GB card with 4 GB left over. On a 12 GB card the whole working set is pushed into system RAM.

Measured with a 5 Hz sampler over /sys/.../mem_info_{vram,gtt}_used on the stock build (the run log is overwritten each launch, so only the peaks survive):

GTT   peak 11212 / 11264 MB   (its ceiling)
VRAM  peak  1202 / 12272 MB   (nearly idle)
MemAvailable min 652 MB
→ radv: Not enough memory for command submission
→ vr -4
→ device removed: 0x887A0005

That signature — GTT pinned at its ceiling and VRAM mostly idle — is the proof the card budget, not system RAM, is the lever.

What fixes it locally

One constant:

// 6 GiB, not 12: on a 12 GB card 12 leaves only the 1 GiB floor for the title,
// so everything lands in GTT and the kernel refuses the submission.
const CARD_KEPT_FOR_HOST: u64 = 6 << 30;

Rebuilt (./build.sh, 1m14s), same session, same save:

INFO victory_gpu::um: unified memory: ... card_mb_for_title=6128

card_mb_for_title 1024 → 6128 MB, and in that run: 0 occurrences of Not enough memory for command submission, 0 of 0x887A0005, 0 of vr -4.

On CONSOLE=series-x with the same patched build: the title booted and ran 11m34s (21:56:15 → 22:07:49, 4722 pipelines bound, steady 20.9–23.4 fps at 2560x1440) until the window was closed by hand — 0 occurrences of 0x887A0005, of Not enough memory for command submission, of vr -4, and no unhandled exception in the whole run. Same build, same card: the only change between dying at image publication and playing is CARD_KEPT_FOR_HOST.

Suggesting the upstream shape

Hardcoding 6 GiB is as wrong in the other direction: an 8 GB card would hand the title 2 GB and risk evicting the compositor, a 24 GB card would waste 18 GB. Something adaptive reads better than any single constant:

let room = card.saturating_sub(card / 4).max(CARD_FOR_TITLE_AT_LEAST); // 25% to the host
// or: card.saturating_sub(4 << 30) with the existing floor as the guard

A 12 GB card then budgets ~9 GB (or 8 GB) to the title instead of 1 GB, a 16 GB card keeps its present 4 GB, and the 1 GiB floor still protects small cards. An env override for the budget would also cover cards this heuristic guesses wrong on — that is what #15 proposed for the same cap, and it is still closed unmerged.

What this is not

  • Not #54 (closed, 8 GB card, same driver lines but a different stage and no card_mb_for_title data)
  • Not #66 with CONSOLE=series-s: on series-s the title still hits its own allocator assert at victory-image+0x56a2afd after xmem allocation hooks found=true, which the 6 GiB change does not affect — that one stays open as reported there

Verification available

Happy to run whatever instrumented build you want (VICTORY_D3D12_DEBUG=1, a print of CARD_KEPT_FOR_HOST/room per pool, or an env override) on this card and post the logs — 12 GB RDNA2 is a common size and currently the worst case for this constant.

**@⁠Polland25** on GitHub · 2026-12-01 22:10 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/119) ### Environment - Radeon RX 6700 XT, 12272 MB, RADV (Mesa 26.3.1), `gfx1031` - CachyOS, kernel 7.3.6, `proton-cachyos-slr` - 16 GB DDR4, GRUB: `amdgpu.gttsize=11264 ttm.pages_limit=3145728` - main @ `37bb30f`, plus the one constant below (nothing else changed) - Series S and Series X profiles both hit this same wall before the constant was changed ### What happens Startup dies ~20 s in, at the first presented image, before any frame renders: ``` INFO victory_gpu::um: unified memory: title graphics memory is the card driver's own, shown to the title where it asks ram=5 vram=Some(3) card_mb_for_title=1024 INFO victory_gpu::um: unified memory: write-combined title memory starts in RAM, the card's room for title memory is taken mb=2199 card_mb_for_title=1024 radv/amdgpu: Not enough memory for command submission. err:vkd3d-proton:d3d12_command_queue_execute: Failed to submit queue(s), vr -4. err:vkd3d-proton:vkd3d_wait_for_gpu_timeline_semaphore: Failed to wait for Vulkan timeline semaphore, vr -4. ERROR victory_gpu::host: device removed at image publication; device removed: 0x887A0005 VIctory: host GPU failure: host GPU device removed after 1 submissions sent ahead of 1 lists ``` 16 title-memory chunks of 3840 MB are mapped, but only 1024 MB of VRAM is budgeted to the title, so the working set lands in GTT instead of the card. ### Where the 1024 MB comes from `crates/victory-gpu/src/um.rs`: ```rust const CARD_KEPT_FOR_HOST: u64 = 12 << 30; const CARD_FOR_TITLE_AT_LEAST: u64 = 1 << 30; ``` `room = card − CARD_KEPT_FOR_HOST`, floored at `CARD_FOR_TITLE_AT_LEAST`. On a 12272 MB card `12272 − 12288` saturates to 0 and the floor gives the title 1024 MB — i.e. the constant assumes a ~16 GB card with 4 GB left over. On a 12 GB card the whole working set is pushed into system RAM. Measured with a 5 Hz sampler over `/sys/.../mem_info_{vram,gtt}_used` on the stock build (the run log is overwritten each launch, so only the peaks survive): ``` GTT peak 11212 / 11264 MB (its ceiling) VRAM peak 1202 / 12272 MB (nearly idle) MemAvailable min 652 MB → radv: Not enough memory for command submission → vr -4 → device removed: 0x887A0005 ``` That signature — GTT pinned at its ceiling **and** VRAM mostly idle — is the proof the card budget, not system RAM, is the lever. ### What fixes it locally One constant: ```rust // 6 GiB, not 12: on a 12 GB card 12 leaves only the 1 GiB floor for the title, // so everything lands in GTT and the kernel refuses the submission. const CARD_KEPT_FOR_HOST: u64 = 6 << 30; ``` Rebuilt (`./build.sh`, 1m14s), same session, same save: ``` INFO victory_gpu::um: unified memory: ... card_mb_for_title=6128 ``` `card_mb_for_title` 1024 → 6128 MB, and in that run: **0** occurrences of `Not enough memory for command submission`, **0** of `0x887A0005`, **0** of `vr -4`. On `CONSOLE=series-x` with the same patched build: the title booted and ran 11m34s (21:56:15 → 22:07:49, 4722 pipelines bound, steady 20.9–23.4 fps at 2560x1440) until the window was closed by hand — **0** occurrences of `0x887A0005`, of `Not enough memory for command submission`, of `vr -4`, and no unhandled exception in the whole run. Same build, same card: the only change between dying at image publication and playing is `CARD_KEPT_FOR_HOST`. ### Suggesting the upstream shape Hardcoding 6 GiB is as wrong in the other direction: an 8 GB card would hand the title 2 GB and risk evicting the compositor, a 24 GB card would waste 18 GB. Something adaptive reads better than any single constant: ```rust let room = card.saturating_sub(card / 4).max(CARD_FOR_TITLE_AT_LEAST); // 25% to the host // or: card.saturating_sub(4 << 30) with the existing floor as the guard ``` A 12 GB card then budgets ~9 GB (or 8 GB) to the title instead of 1 GB, a 16 GB card keeps its present 4 GB, and the 1 GiB floor still protects small cards. An env override for the budget would also cover cards this heuristic guesses wrong on — that is what #15 proposed for the same cap, and it is still closed unmerged. ### What this is not - Not #54 (closed, 8 GB card, same driver lines but a different stage and no `card_mb_for_title` data) - Not #66 with `CONSOLE=series-s`: on `series-s` the title still hits its own allocator assert at `victory-image+0x56a2afd` after `xmem allocation hooks found=true`, which the 6 GiB change does not affect — that one stays open as reported there ### Verification available Happy to run whatever instrumented build you want (`VICTORY_D3D12_DEBUG=1`, a print of `CARD_KEPT_FOR_HOST`/`room` per pool, or an env override) on this card and post the logs — 12 GB RDNA2 is a common size and currently the worst case for this constant.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 22:14:17 +00:00
Author
Owner

@⁠skalel on GitHub · 2026-12-02 12:24 UTC · original

A data point from another 12 GB gfx1031 card, on the speed side of this constant.

Setup: RX 6750 XT 12 GB (gfx1031), Ryzen 7 5700X, 32 GB DDR4, B550 (link 16 GT/s x16 at every hop, resizable BAR 16 GB), CachyOS, d044248, Series X, 1920x1080 output with VICTORY_FSR_4K=quality (1280x720 render), RT off. With 32 GB of RAM the stock 1024 MB room does not crash here: no 0x887A0005, vr -4 or Not enough memory for command submission in any run. So this is only about frame time and memory.

Stock build: the card is never idle (the card clock line says 98-100 % busy, gpu_busy_percent median 95 %, ~2.57 GHz) but it draws ~94 W of its 200 W cap. That fits #14: unified memory: 10965 MB in RAM, 1023 MB in VRAM, and the 2.2 GB block is left in RAM whole (write-combined title memory starts in RAM ... mb=2199 card_mb_for_title=1024). Forcing power_dpm_force_performance_level=high changed nothing (16.9 vs 17.0 fps). No game thread is saturated (the two busiest average 55-69 % of a core).

The room set by hand: I read it from an env var, so each value did not need its own build (VICTORY_UM_VRAM_MB, MiB, at least 1024, capped at what the CPU reaches of the card; unset = as now). Same route walked by hand, one run per value, medians of the stats: frame lines (one every ~5 s) with at least 500 draws:

room world lines fps fps at > 8500 draws title memory in VRAM card VRAM used (median) card free at the end
1024 (stock) 22 17.0 16.9 1.0 GB n/a 2.7 GB
3584 20 19.1 17.6 3.4 GB 10.2 GB 1.3 GB
6144 16 18.7 18.4 3.3 GB 10.3 GB 1.4 GB
  • +1-2 fps (5-12 %), in line with #15's +6 % on 16 GB. Card power stayed at ~97-100 W.
  • 6144 placed no more title memory than 3584 (3.3 GB).
  • The cost: in both runs the player saw blurrier textures (the protagonist's shirt print) and textures dropping out and coming back, which the stock build did not show. On this card the room is taken from the textures. A 12 GB card with CARD_KEPT_FOR_HOST at 6 GiB, as suggested above, would be in the 6144 row.

So on 12 GB cards this looks less like a constant that is too large and more like title memory and textures competing for the same ~10 GB. A bigger room on its own trades texture quality for a few percent. Happy to run other builds or switches on this card.

The switch used (not a proposal for the default)
diff --git a/crates/victory-gpu/src/um.rs b/crates/victory-gpu/src/um.rs
index 9720efe..29305c4 100644
--- a/crates/victory-gpu/src/um.rs
+++ b/crates/victory-gpu/src/um.rs
@@ -509,12 +509,30 @@ fn card_memory(memory: &MemoryProperties) -> Option<(u32, u64)> {
     }
     Some((
         kind as u32,
-        reached
-            .saturating_sub(CARD_KEPT_FOR_HOST)
-            .max(CARD_FOR_TITLE_AT_LEAST),
+        title_room(reached, std::env::var("VICTORY_UM_VRAM_MB").ok().as_deref()),
     ))
 }
 
+/// The card's room for title memory, of the `reached` bytes of the card the
+/// processor reaches: what is beyond [`CARD_KEPT_FOR_HOST`], at least
+/// [`CARD_FOR_TITLE_AT_LEAST`]. `asked` (`VICTORY_UM_VRAM_MB`), MiB of at
+/// least 1024, takes its place, up to `reached`: on a 12 GB card nothing is
+/// beyond what is kept, and the title's block of some 2.2 GB goes to RAM
+/// whole, where the card reads it across the bus.
+fn title_room(reached: u64, asked: Option<&str>) -> u64 {
+    asked
+        .and_then(|v| v.trim().parse::<u64>().ok())
+        .filter(|&mb| mb >= 1024)
+        .map_or_else(
+            || {
+                reached
+                    .saturating_sub(CARD_KEPT_FOR_HOST)
+                    .max(CARD_FOR_TITLE_AT_LEAST)
+            },
+            |mb| (mb << 20).min(reached),
+        )
+}
+
 fn load() -> Option<Um> {
     crate::port_heap::said();
     let library = unsafe { LoadLibraryA(c"vulkan-1.dll".as_ptr().cast()) };
@@ -1837,6 +1855,24 @@ pub(crate) fn line() -> Option<String> {
 mod tests {
     use super::*;
 
+    /// The title's room on the card: what is beyond what is kept for the
+    /// host, at least the floor; `VICTORY_UM_VRAM_MB` in its place, up to
+    /// what the processor reaches of the card.
+    #[test]
+    fn title_room_of_the_card() {
+        const G: u64 = 1 << 30;
+        const CARD_12GB: u64 = 12272 << 20;
+        assert_eq!(title_room(24 * G, None), 12 * G);
+        assert_eq!(title_room(16 * G, None), 4 * G);
+        assert_eq!(title_room(CARD_12GB, None), G);
+        assert_eq!(title_room(CARD_12GB, Some("3584")), 3584 << 20);
+        assert_eq!(title_room(CARD_12GB, Some(" 6144 ")), 6144 << 20);
+        assert_eq!(title_room(CARD_12GB, Some("99999")), CARD_12GB);
+        for unusable in ["", "x", "512", "-1"] {
+            assert_eq!(title_room(CARD_12GB, Some(unusable)), G, "{unusable:?}");
+        }
+    }
+
     /// How fast the processor reads the card's memory each way
     /// ([`crate::safecopy::calibrate`], on 4 MiB of it), and which way
     /// [`calibrate_reads`] picked when the driver was loaded (ignored: a
**@⁠skalel** on GitHub · 2026-12-02 12:24 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/119#issuecomment-7345281891) A data point from another 12 GB gfx1031 card, on the speed side of this constant. **Setup:** RX 6750 XT 12 GB (gfx1031), Ryzen 7 5700X, 32 GB DDR4, B550 (link 16 GT/s x16 at every hop, resizable BAR 16 GB), CachyOS, `d044248`, Series X, 1920x1080 output with `VICTORY_FSR_4K=quality` (1280x720 render), RT off. With 32 GB of RAM the stock 1024 MB room does not crash here: no `0x887A0005`, `vr -4` or `Not enough memory for command submission` in any run. So this is only about frame time and memory. **Stock build:** the card is never idle (the card clock line says 98-100 % busy, `gpu_busy_percent` median 95 %, ~2.57 GHz) but it draws ~94 W of its 200 W cap. That fits #14: `unified memory: 10965 MB in RAM, 1023 MB in VRAM`, and the 2.2 GB block is left in RAM whole (`write-combined title memory starts in RAM ... mb=2199 card_mb_for_title=1024`). Forcing `power_dpm_force_performance_level=high` changed nothing (16.9 vs 17.0 fps). No game thread is saturated (the two busiest average 55-69 % of a core). **The room set by hand:** I read it from an env var, so each value did not need its own build (`VICTORY_UM_VRAM_MB`, MiB, at least 1024, capped at what the CPU reaches of the card; unset = as now). Same route walked by hand, one run per value, medians of the `stats: frame` lines (one every ~5 s) with at least 500 draws: | room | world lines | fps | fps at > 8500 draws | title memory in VRAM | card VRAM used (median) | card free at the end | |---|---|---|---|---|---|---| | 1024 (stock) | 22 | 17.0 | 16.9 | 1.0 GB | n/a | 2.7 GB | | 3584 | 20 | 19.1 | 17.6 | 3.4 GB | 10.2 GB | 1.3 GB | | 6144 | 16 | 18.7 | 18.4 | 3.3 GB | 10.3 GB | 1.4 GB | - +1-2 fps (5-12 %), in line with #15's +6 % on 16 GB. Card power stayed at ~97-100 W. - 6144 placed no more title memory than 3584 (3.3 GB). - **The cost:** in both runs the player saw blurrier textures (the protagonist's shirt print) and textures dropping out and coming back, which the stock build did not show. On this card the room is taken from the textures. A 12 GB card with `CARD_KEPT_FOR_HOST` at 6 GiB, as suggested above, would be in the 6144 row. So on 12 GB cards this looks less like a constant that is too large and more like title memory and textures competing for the same ~10 GB. A bigger room on its own trades texture quality for a few percent. Happy to run other builds or switches on this card. <details><summary>The switch used (not a proposal for the default)</summary> ```diff diff --git a/crates/victory-gpu/src/um.rs b/crates/victory-gpu/src/um.rs index 9720efe..29305c4 100644 --- a/crates/victory-gpu/src/um.rs +++ b/crates/victory-gpu/src/um.rs @@ -509,12 +509,30 @@ fn card_memory(memory: &MemoryProperties) -> Option<(u32, u64)> { } Some(( kind as u32, - reached - .saturating_sub(CARD_KEPT_FOR_HOST) - .max(CARD_FOR_TITLE_AT_LEAST), + title_room(reached, std::env::var("VICTORY_UM_VRAM_MB").ok().as_deref()), )) } +/// The card's room for title memory, of the `reached` bytes of the card the +/// processor reaches: what is beyond [`CARD_KEPT_FOR_HOST`], at least +/// [`CARD_FOR_TITLE_AT_LEAST`]. `asked` (`VICTORY_UM_VRAM_MB`), MiB of at +/// least 1024, takes its place, up to `reached`: on a 12 GB card nothing is +/// beyond what is kept, and the title's block of some 2.2 GB goes to RAM +/// whole, where the card reads it across the bus. +fn title_room(reached: u64, asked: Option<&str>) -> u64 { + asked + .and_then(|v| v.trim().parse::<u64>().ok()) + .filter(|&mb| mb >= 1024) + .map_or_else( + || { + reached + .saturating_sub(CARD_KEPT_FOR_HOST) + .max(CARD_FOR_TITLE_AT_LEAST) + }, + |mb| (mb << 20).min(reached), + ) +} + fn load() -> Option<Um> { crate::port_heap::said(); let library = unsafe { LoadLibraryA(c"vulkan-1.dll".as_ptr().cast()) }; @@ -1837,6 +1855,24 @@ pub(crate) fn line() -> Option<String> { mod tests { use super::*; + /// The title's room on the card: what is beyond what is kept for the + /// host, at least the floor; `VICTORY_UM_VRAM_MB` in its place, up to + /// what the processor reaches of the card. + #[test] + fn title_room_of_the_card() { + const G: u64 = 1 << 30; + const CARD_12GB: u64 = 12272 << 20; + assert_eq!(title_room(24 * G, None), 12 * G); + assert_eq!(title_room(16 * G, None), 4 * G); + assert_eq!(title_room(CARD_12GB, None), G); + assert_eq!(title_room(CARD_12GB, Some("3584")), 3584 << 20); + assert_eq!(title_room(CARD_12GB, Some(" 6144 ")), 6144 << 20); + assert_eq!(title_room(CARD_12GB, Some("99999")), CARD_12GB); + for unusable in ["", "x", "512", "-1"] { + assert_eq!(title_room(CARD_12GB, Some(unusable)), G, "{unusable:?}"); + } + } + /// How fast the processor reads the card's memory each way /// ([`crate::safecopy::calibrate`], on 4 MiB of it), and which way /// [`calibrate_reads`] picked when the driver was loaded (ignored: a ``` </details>
Author
Owner

@⁠Polland25 on GitHub · 2026-12-04 19:14 UTC · original

Data point from the other side: 16 GB of RAM, 12 GB card (room 1024 vs 3584 vs 6144)

RX 6700 XT (gfx1031, 12272 MB), 16 GB DDR4, CachyOS, kernel 7.3.7-2, proton-cachyos-slr, main @ b99f876, with your VICTORY_UM_VRAM_MB switch applied (um::tests::title_room_of_the_card passes), nothing else changed. amdgpu.gttsize=11264 ttm.pages_limit=3145728 on the cmdline, GTT total confirmed 11264 MiB.

Same settings for every run: CONSOLE=series-x, VICTORY_OUTPUT=1920x1080, VICTORY_TILE_HEAP_MB=3977, ray tracing off, FSR 4 off, frame generation off, VICTORY_WARM=0. Same route, ~2 min in-world each; 5 Hz sampler on mem_info_{vram,gtt}_used and MemAvailable; n=2 for the two raised values.

room outcome GTT peak VRAM peak MemAvailable min world
1024 OOM-killed, ~110 s 11002 / 11264 MB 7990 MB 86 MB barely, draws ≤ 3.5k
3584 survived ×2 9578 / 9286 MB 9626 / 9481 MB 734 / 758 MB draws 3.5–6.2k, fps 19–32
6144 OOM-killed ×2, ≤ 1 m 46 s 11040 / 10976 MB 9308 / 9184 MB 107 / 131 MB draws up to 6.2k, fps erratic

On 16 GB the failure is the kernel's OOM killer, not radv: oom-kill: constraint=CONSTRAINT_NONE, global_oom, task_memcg=.../um-play-*.scope, task=main, then Failed with result 'oom-kill' on the scope. run.sh sets MemoryMax=9879M; the kill was global, so the cap was not what stopped it. Same cause as #119, different first casualty.

This confirms your reading, with one addition: 3584 was stable twice, 6144 was not, and 6144's VRAM peak was lower than 3584's (9184–9308 vs 9481–9626 MB) while its GTT peak sat on the 11264 MB ceiling. The extra 2.5 GB of room did not become title memory in VRAM — it became GTT, which is still system RAM, so on a 16 GB host it is a straight loss.

So on 12 GB cards the fix is not "more room": ~3.4 GB looks like where residency stops improving, and anything above it is paid in RAM. What neither the constant nor a single number has is the host's RAM: your 32 GB machine makes 6144 the faster row, my 16 GB machine makes it an OOM. Room scaled by the RAM the host can spare, with VICTORY_UM_VRAM_MB kept as the escape hatch, covers both — and the switch made all six runs possible without a rebuild, which is the strongest argument for merging it.

Caveats: one card, one route, n=2 per raised value. My fps is not comparable to your table (1080p output vs your 720p render), so I claim nothing about an fps delta — only the survival, GTT/VRAM and MemAvailable columns.

**@⁠Polland25** on GitHub · 2026-12-04 19:14 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/119#issuecomment-7421585485) **Data point from the other side: 16 GB of RAM, 12 GB card (room 1024 vs 3584 vs 6144)** RX 6700 XT (gfx1031, 12272 MB), **16 GB DDR4**, CachyOS, kernel 7.3.7-2, `proton-cachyos-slr`, main @ `b99f876`, with your `VICTORY_UM_VRAM_MB` switch applied (`um::tests::title_room_of_the_card` passes), nothing else changed. `amdgpu.gttsize=11264 ttm.pages_limit=3145728` on the cmdline, GTT total confirmed 11264 MiB. Same settings for every run: `CONSOLE=series-x`, `VICTORY_OUTPUT=1920x1080`, `VICTORY_TILE_HEAP_MB=3977`, ray tracing off, FSR 4 off, frame generation off, `VICTORY_WARM=0`. Same route, ~2 min in-world each; 5 Hz sampler on `mem_info_{vram,gtt}_used` and `MemAvailable`; n=2 for the two raised values. | room | outcome | GTT peak | VRAM peak | MemAvailable min | world | |---|---|---|---|---|---| | 1024 | OOM-killed, ~110 s | 11002 / 11264 MB | 7990 MB | 86 MB | barely, draws ≤ 3.5k | | 3584 | survived ×2 | 9578 / 9286 MB | 9626 / 9481 MB | 734 / 758 MB | draws 3.5–6.2k, fps 19–32 | | 6144 | OOM-killed ×2, ≤ 1 m 46 s | 11040 / 10976 MB | 9308 / 9184 MB | 107 / 131 MB | draws up to 6.2k, fps erratic | On 16 GB the failure is the kernel's OOM killer, not radv: `oom-kill: constraint=CONSTRAINT_NONE, global_oom, task_memcg=.../um-play-*.scope, task=main`, then `Failed with result 'oom-kill'` on the scope. `run.sh` sets `MemoryMax=9879M`; the kill was global, so the cap was not what stopped it. Same cause as #119, different first casualty. This confirms your reading, with one addition: **3584 was stable twice, 6144 was not**, and 6144's VRAM peak was *lower* than 3584's (9184–9308 vs 9481–9626 MB) while its GTT peak sat on the 11264 MB ceiling. The extra 2.5 GB of room did not become title memory in VRAM — it became GTT, which is still system RAM, so on a 16 GB host it is a straight loss. So on 12 GB cards the fix is not "more room": ~3.4 GB looks like where residency stops improving, and anything above it is paid in RAM. What neither the constant nor a single number has is the host's RAM: your 32 GB machine makes 6144 the faster row, my 16 GB machine makes it an OOM. Room scaled by the RAM the host can spare, with `VICTORY_UM_VRAM_MB` kept as the escape hatch, covers both — and the switch made all six runs possible without a rebuild, which is the strongest argument for merging it. Caveats: one card, one route, n=2 per raised value. My fps is not comparable to your table (1080p output vs your 720p render), so I claim nothing about an fps delta — only the survival, GTT/VRAM and MemAvailable columns.
Author
Owner

@⁠El-Biiscuit on GitHub · 2026-12-04 20:45 UTC · original

A controlled A/B on a third 12 GB gfx1031 card, mainly about how much room is enough.

Setup: RX 6700 XT 12 GB (12272 MB), Ryzen 7 5800X, 62 GB RAM (no OOM pressure here), Fedora 45, GE-Proton11-16, Mesa 26.3.1 patched. Build: main 6064c04 + #369 (06d5386), whose VICTORY_CARD_KEPT_MB is the inverse of the VICTORY_UM_VRAM_MB switch above: room = 12272 − kept. Series X, low preset, 1920x1080 output, diagnostics build, ray tracing off. Unattended VICTORY_BENCH: same city save, camera turning in place through scripted keys. 4 min per run, the last 3 measured with MangoHud. Interleaved order, pipelines warmed for each build, DPM auto, GPU clock ~2.55 GHz in every run.

Same binary, room only (two series, 36 runs in total, 36/36 valid, 0 kernel GPU faults):

room (card_mb_for_title) runs median frame time ms [min–max] ≈ fps P99 ms [min–max]
1024 (kept 12288, as on main) 4 43.7 [42.8–44.7] 22.9 85.8 [83.3–111.3]
4080 (kept 8192) 4 41.3 [40.4–41.6] 24.2 76.8 [74.0–92.3]
5104 (kept 7168) 4 41.5 [40.4–43.2] 24.1 77.1 [73.5–93.1]
6128 (kept 6144) 8 41.2 [40.1–41.3] 24.3 76.1 [73.5–99.7]
7152 (kept 5120) 4 40.9 [40.5–41.3] 24.4 75.0 [74.8–94.1]

The 6128 room was in both series (41.1 and 41.2 ms), so they line up. main 6064c04 alone, in the same series as the 1024 row: 44.3 ms [44.2–44.4].

  • 1024 → ~4 GB: −6 % median frame time, ranges disjoint. The 1024 run logs the same line as in the issue: write-combined title memory starts in RAM, the card's room for title memory is taken mb=2199 card_mb_for_title=1024, once. At 4080 and above, that line never appears.
  • 4080 to 7152: a plateau. All ranges overlap. This fits the 3.3–3.4 GB of title memory skalel measured at both 3584 and 6144. Rooms beyond about 4 GB buy nothing here.
  • P99: overlapping ranges, so no effect shown on the tail.
  • Card VRAM used (MangoHud): 7.6 GB at 1024, 8.4–8.6 GB at 4–7 GB, so about 3.5 GB free on this preset.
  • Texture side, matching skalel's blurrier textures: the counter a texture already on the card is brought up to date although the card has no room for new ones ends runs at 0.5k–40k with room 1024, and at 0.76M–0.86M with any room from 4080 to 7152. I did not check the picture by eye.

Combined with a lighter load: room 6128 + 1280x720 output gives 36.0 ms [35.4–36.8], about 27.8 fps, ranges disjoint from 6128 at 1080p, so the two gains add up. Series S with host FSR adds nothing on top of the 6128 room (41.3 ms), which suggests its own gain on this card goes through the same memory lever.

Reading together with Polland25's 16 GB RAM data (6144 OOM-killed, 3584 survived): the speed gain seems to be reached at about 3.5–4 GB. Going higher only adds texture pressure and, on 16 GB hosts, OOM risk. That argues for a room near 4 GB on 12 GB cards, rather than "card − 25 %" (about 9 GB) or a fixed kept of 6 GiB.

Not measured yet: a long session at 4 GB, heavier presets or 1440p/4K where the host side needs more VRAM, and driving. A long session is planned on this card; I will add its result here.

**@⁠El-Biiscuit** on GitHub · 2026-12-04 20:45 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/119#issuecomment-7423774124) A controlled A/B on a third 12 GB gfx1031 card, mainly about **how much room is enough**. **Setup:** RX 6700 XT 12 GB (12272 MB), Ryzen 7 5800X, **62 GB RAM** (no OOM pressure here), Fedora 45, GE-Proton11-16, Mesa 26.3.1 patched. Build: main `6064c04` + #369 (`06d5386`), whose `VICTORY_CARD_KEPT_MB` is the inverse of the `VICTORY_UM_VRAM_MB` switch above: room = 12272 − kept. Series X, low preset, 1920x1080 output, diagnostics build, ray tracing off. Unattended `VICTORY_BENCH`: same city save, camera turning in place through scripted keys. 4 min per run, the last 3 measured with MangoHud. Interleaved order, pipelines warmed for each build, DPM `auto`, GPU clock ~2.55 GHz in every run. **Same binary, room only** (two series, 36 runs in total, 36/36 valid, 0 kernel GPU faults): | room (`card_mb_for_title`) | runs | median frame time ms [min–max] | ≈ fps | P99 ms [min–max] | |---|---|---|---|---| | 1024 (kept 12288, as on main) | 4 | 43.7 [42.8–44.7] | 22.9 | 85.8 [83.3–111.3] | | 4080 (kept 8192) | 4 | 41.3 [40.4–41.6] | 24.2 | 76.8 [74.0–92.3] | | 5104 (kept 7168) | 4 | 41.5 [40.4–43.2] | 24.1 | 77.1 [73.5–93.1] | | 6128 (kept 6144) | 8 | 41.2 [40.1–41.3] | 24.3 | 76.1 [73.5–99.7] | | 7152 (kept 5120) | 4 | 40.9 [40.5–41.3] | 24.4 | 75.0 [74.8–94.1] | The 6128 room was in both series (41.1 and 41.2 ms), so they line up. main `6064c04` alone, in the same series as the 1024 row: 44.3 ms [44.2–44.4]. - **1024 → ~4 GB: −6 % median frame time, ranges disjoint.** The 1024 run logs the same line as in the issue: `write-combined title memory starts in RAM, the card's room for title memory is taken mb=2199 card_mb_for_title=1024`, once. At 4080 and above, that line never appears. - **4080 to 7152: a plateau.** All ranges overlap. This fits the 3.3–3.4 GB of title memory skalel measured at both 3584 and 6144. Rooms beyond about 4 GB buy nothing here. - P99: overlapping ranges, so no effect shown on the tail. - Card VRAM used (MangoHud): 7.6 GB at 1024, 8.4–8.6 GB at 4–7 GB, so about 3.5 GB free on this preset. - **Texture side**, matching skalel's blurrier textures: the counter `a texture already on the card is brought up to date although the card has no room for new ones` ends runs at 0.5k–40k with room 1024, and at 0.76M–0.86M with any room from 4080 to 7152. I did not check the picture by eye. **Combined with a lighter load:** room 6128 + 1280x720 output gives 36.0 ms [35.4–36.8], about 27.8 fps, ranges disjoint from 6128 at 1080p, so the two gains add up. Series S with host FSR adds nothing on top of the 6128 room (41.3 ms), which suggests its own gain on this card goes through the same memory lever. **Reading together with Polland25's 16 GB RAM data** (6144 OOM-killed, 3584 survived): the speed gain seems to be reached at about 3.5–4 GB. Going higher only adds texture pressure and, on 16 GB hosts, OOM risk. That argues for a room near 4 GB on 12 GB cards, rather than "card − 25 %" (about 9 GB) or a fixed kept of 6 GiB. Not measured yet: a long session at 4 GB, heavier presets or 1440p/4K where the host side needs more VRAM, and driving. A long session is planned on this card; I will add its result here.
Author
Owner

@⁠El-Biiscuit on GitHub · 2026-12-05 01:13 UTC · original

Follow-up: the long session I mentioned, at the ~4 GB room.

Same card (RX 6700 XT 12 GB, 62 GB RAM), same build (main 6064c04 + #369), VICTORY_CARD_KEPT_MB=8192, so card_mb_for_title=4080. This time it was played by hand: 84 min of normal play, walking and driving, Series X, 1280x720 output with FSR quality (rendering at 853x480).

  • 0 amdgpu faults, timeouts or resets in the kernel log.
  • 0 device removed, 0 Not enough memory for command submission, and 0 card's room for title memory is taken.
  • No freeze: the stats: frame lines come every ~5 s for the whole session, with no gap longer than 15 s. The game was closed normally.
  • At the end: 2518 MB of title memory on the card, out of the 4080 MB room, and 940 MB of the card free. So even at 4 GB the title never filled its room, but over a long session the card ends up nearly full. A larger room would only make that tighter.

One limit on the earlier numbers: on a 4K monitor, the 1280x720 output that gave 27.8 fps looks too blurry to play, and parts of the interface do not fit. That row shows the effect of a lighter load, not a setting to recommend.

**@⁠El-Biiscuit** on GitHub · 2026-12-05 01:13 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/119#issuecomment-7429075401) Follow-up: the long session I mentioned, at the ~4 GB room. Same card (RX 6700 XT 12 GB, 62 GB RAM), same build (main `6064c04` + #369), `VICTORY_CARD_KEPT_MB=8192`, so `card_mb_for_title=4080`. This time it was played by hand: 84 min of normal play, walking and driving, Series X, 1280x720 output with FSR quality (rendering at 853x480). - 0 amdgpu faults, timeouts or resets in the kernel log. - 0 `device removed`, 0 `Not enough memory for command submission`, and 0 `card's room for title memory is taken`. - No freeze: the `stats: frame` lines come every ~5 s for the whole session, with no gap longer than 15 s. The game was closed normally. - At the end: 2518 MB of title memory on the card, out of the 4080 MB room, and **940 MB of the card free**. So even at 4 GB the title never filled its room, but over a long session the card ends up nearly full. A larger room would only make that tighter. One limit on the earlier numbers: on a 4K monitor, the 1280x720 output that gave 27.8 fps looks too blurry to play, and parts of the interface do not fit. That row shows the effect of a lighter load, not a setting to recommend.
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#119
No description provided.