D3D12.X: resource_at keeps a PC texture for every view-at-address forever (~1 GB a minute on Linux/RADV) #2733

Open
opened 2026-11-26 09:44:27 +00:00 by GreemSC · 19 comments
GreemSC commented 2026-11-26 09:44:27 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by GreemSC on 2026-11-26T09:44:27Z.


Part of #2688 (workstreams 3 and 5). Opened to collect opinions on one finding before anyone writes code for it.

Finding: after the world load, the retail title (#505) keeps creating placed textures (CreatePlacedResourceX), ~300 a second, and releases about 4 % of them. Each one becomes a PC reserved texture (vram::place_on_pages), which costs on the order of 70 KB of host memory on the vkd3d-proton / Wine / driver side, plus its tiles. On the console such an object is presumably small and over memory the title already owns; here ~80,000 of them by 190 s grow the process by about 1 GB a minute after the pipeline compiles have stopped. It is not a reference leak in XCL.

Setup: RX 7900 XT 20 GB, Mesa 26.2.5 RADV, i7-12700K, 24 GB RAM (title capped at 16 GB + 1 GB swap), Linux 7.2, Proton-CachyOS Wine 11, vkd3d-proton with dxil-spirv 53aac41. main b49be18 + a Wine stack (#1732 with #867/#871/#877, #684, #1860, #2097, #2404, #2615, #2598, #751, diagnostics). XCL_DIRECT_DXIL=1 XCL_DXC_THREADS=4 XCL_TEXTURE_LEVEL_PAGES=1, warm caches; the title is past its first ListX #101 and in its intro cutscene for the measured stretch. Local counters only (not a PR).

Evidence (details in #2688: first, second)

at 120 s at 190–191 s at 300 s
reserved resources made (device creators) 62,275 83,340 119,447
of which placed textures (vram.rs) 58,839 77,697 –
resources alive (made − last releases) ~67,000 ~85,000 ~120,000
host anonymous memory (smaps vs XCL_TRACE_MEM) 3.7 GB – 7.3 GB
the title's own allocations, resident 6.0 GB – 5.0 GB

(Three runs with the same settings: the counts at 120 and 190–191 s are from a 200 s counter run, those at 300 s from a 360 s counter run, the memory rows from a 360 s smaps run.)

  • Committed resources balance (made ≈ released); reserved ones do not.
  • Release of reserved resources by caller module, at 190 s: from the title 3,330, of which 3,324 were the last reference (so when the title releases one, it goes); from xcl.exe 118,459, of which 4 were the last (XCL's own short-lived clones).
  • Placements keyed by (address, 0x38-byte console description), at 190 s: never seen before 81,690; same as one still alive 2,853; same as one released 11. The title is not placing the same texture again; it makes distinct ones and keeps them.
  • The growth follows the stretch where the title places textures, not driver compiles: 300–350 s had 12 compiles and +1.2 GB.
  • Seen on NVIDIA too, probably: joeypercia's RTX 4070 Ti run on nvidia-dev has +1.3 GB that XCL does not count after 120 s (#2688).

Options (none written yet)

  1. Make the PC reserved texture at the texture's first use (bind or descriptor), not at CreatePlacedResourceX; the title's object exists from the start, the PC one only when needed.
  2. Give the PC object back for placed textures unused for a while, keeping the title's object; make it again on its next use.
  3. Share one PC texture between placements of the same shape over the same pages, if the console semantics allow it (here only 3 % are identical re-placements, so this alone would not bound it).

Questions for everyone

  • Does the console runtime expect titles to release placed resources, or is placing over memory and dropping the pointer normal there?
  • Has anyone measured the per-object cost of a PC reserved texture under Windows (native D3D12)? Is it this large there too?
  • Is anyone already on the cost per placed texture (workstreams 3 / 5, #2578, #2306's level pages)? I can measure what option 1 saves here if no one is.

Not tested: Windows, NVIDIA directly, the open world, without the Wine stack.

AI use: Claude Code (Claude Opus 5.5) wrote the counters, ran the runs and wrote this.

<!-- greyfinch-sync:ivall/xcl:issue:6623868674 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743). Originally posted by [GreemSC](https://github.com/GreemSC) on 2026-11-26T09:44:27Z. --- Part of #2688 (workstreams 3 and 5). Opened to collect opinions on one finding before anyone writes code for it. **Finding:** after the world load, the retail title (#505) keeps creating placed textures (`CreatePlacedResourceX`), ~300 a second, and releases about 4 % of them. Each one becomes a PC reserved texture (`vram::place_on_pages`), which costs on the order of **70 KB of host memory** on the vkd3d-proton / Wine / driver side, plus its tiles. On the console such an object is presumably small and over memory the title already owns; here ~80,000 of them by 190 s grow the process by about **1 GB a minute** after the pipeline compiles have stopped. It is not a reference leak in XCL. **Setup:** RX 7900 XT 20 GB, Mesa 26.2.5 RADV, i7-12700K, 24 GB RAM (title capped at 16 GB + 1 GB swap), Linux 7.2, Proton-CachyOS Wine 11, vkd3d-proton with dxil-spirv 53aac41. `main` `b49be18` + a Wine stack (#1732 with #867/#871/#877, #684, #1860, #2097, #2404, #2615, #2598, #751, diagnostics). `XCL_DIRECT_DXIL=1 XCL_DXC_THREADS=4 XCL_TEXTURE_LEVEL_PAGES=1`, warm caches; the title is past its first `ListX #101` and in its intro cutscene for the measured stretch. Local counters only (not a PR). **Evidence** (details in #2688: [first](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7187299127), [second](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7188082689)) | | at 120 s | at 190–191 s | at 300 s | |---|---:|---:|---:| | reserved resources made (device creators) | 62,275 | 83,340 | 119,447 | | of which placed textures (`vram.rs`) | 58,839 | 77,697 | – | | resources alive (made − last releases) | ~67,000 | ~85,000 | ~120,000 | | host anonymous memory (smaps vs `XCL_TRACE_MEM`) | 3.7 GB | – | 7.3 GB | | the title's own allocations, resident | 6.0 GB | – | 5.0 GB | (Three runs with the same settings: the counts at 120 and 190–191 s are from a 200 s counter run, those at 300 s from a 360 s counter run, the memory rows from a 360 s `smaps` run.) - Committed resources balance (made ≈ released); reserved ones do not. - `Release` of reserved resources by caller module, at 190 s: from the title 3,330, of which 3,324 were the last reference (so when the title releases one, it goes); from `xcl.exe` 118,459, of which 4 were the last (XCL's own short-lived clones). - Placements keyed by (address, 0x38-byte console description), at 190 s: never seen before 81,690; same as one still alive 2,853; same as one released 11. The title is not placing the same texture again; it makes distinct ones and keeps them. - The growth follows the stretch where the title places textures, not driver compiles: 300–350 s had 12 compiles and +1.2 GB. - Seen on NVIDIA too, probably: joeypercia's RTX 4070 Ti run on `nvidia-dev` has +1.3 GB that XCL does not count after 120 s (#2688). **Options (none written yet)** 1. Make the PC reserved texture at the texture's first use (bind or descriptor), not at `CreatePlacedResourceX`; the title's object exists from the start, the PC one only when needed. 2. Give the PC object back for placed textures unused for a while, keeping the title's object; make it again on its next use. 3. Share one PC texture between placements of the same shape over the same pages, if the console semantics allow it (here only 3 % are identical re-placements, so this alone would not bound it). **Questions for everyone** - Does the console runtime expect titles to release placed resources, or is placing over memory and dropping the pointer normal there? - Has anyone measured the per-object cost of a PC reserved texture under Windows (native D3D12)? Is it this large there too? - Is anyone already on the cost per placed texture (workstreams 3 / 5, #2578, #2306's level pages)? I can measure what option 1 saves here if no one is. **Not tested:** Windows, NVIDIA directly, the open world, without the Wine stack. AI use: Claude Code (Claude Opus 5.5) wrote the counters, ran the runs and wrote this.
joeypercia commented 2026-11-26 10:06:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by joeypercia on 2026-11-26T09:47:44Z.


On the per-object cost under native Windows: much smaller than under vkd3d-proton. Measured in one process: 20,000 CreateReservedResource textures with 64KB_UNDEFINED_SWIZZLE and no tiles mapped, kept alive. Reported is the process's PrivateUsage and DXGI local and non-local usage per texture, before and after.

texture RTX 4070 Ti (621.40) Radeon RDNA2 iGPU
256×256 RGBA8, 9 mips 8.1 KB 8.5 KB
1024×1024 BC7, 11 mips 5.7 KB 8.9 KB
64×64 RGBA8 2.6 KB 6.7 KB

That's commit only: local and non-local usage moved by 0.0 KB per texture on both. So on Windows, 120,000 such textures would be about 0.3–1 GB of commit, against about 8 GB at your 70 KB.

Not measured:

  • the tile mappings vram::place_on_pages adds on top (the driver's page-table side);
  • the title's real mix of shapes;
  • whether the 4070 Ti run's +1.3 GB of "other" video memory after 120 s (#2688) has anything to do with these textures. A reserved texture alone doesn't show up in video memory here.

(Claude Code, Claude Opus 5.5; a throwaway test, not committed.)

<!-- greyfinch-sync:ivall/xcl:comment:7188481690 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7188481690). Originally posted by [joeypercia](https://github.com/joeypercia) on 2026-11-26T09:47:44Z. --- On the per-object cost under native Windows: much smaller than under vkd3d-proton. Measured in one process: 20,000 `CreateReservedResource` textures with `64KB_UNDEFINED_SWIZZLE` and no tiles mapped, kept alive. Reported is the process's `PrivateUsage` and DXGI local and non-local usage per texture, before and after. | texture | RTX 4070 Ti (621.40) | Radeon RDNA2 iGPU | |---|---:|---:| | 256×256 RGBA8, 9 mips | 8.1 KB | 8.5 KB | | 1024×1024 BC7, 11 mips | 5.7 KB | 8.9 KB | | 64×64 RGBA8 | 2.6 KB | 6.7 KB | That's commit only: local and non-local usage moved by 0.0 KB per texture on both. So on Windows, 120,000 such textures would be about 0.3–1 GB of commit, against about 8 GB at your 70 KB. Not measured: - the tile mappings `vram::place_on_pages` adds on top (the driver's page-table side); - the title's real mix of shapes; - whether the 4070 Ti run's +1.3 GB of "other" video memory after 120 s (#2688) has anything to do with these textures. A reserved texture alone doesn't show up in video memory here. (Claude Code, Claude Opus 5.5; a throwaway test, not committed.)
GreemSC commented 2026-11-26 10:06:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by GreemSC on 2026-11-26T10:00:06Z.


Correction: the ~70 KB per placed texture in the description is wrong; it is ~4 KB here too. @joeypercia, thank you, your Windows numbers made me measure it directly.

Your test under Wine/RADV (RX 7900 XT, Mesa 26.2.5, Proton-CachyOS Wine 11, vkd3d-proton with dxil-spirv 53aac41): one process, 20,000 CreateReservedResource textures (256×256 RGBA8, 9 mips, 64KB_UNDEFINED_SWIZZLE) kept alive, then all their tiles mapped onto one heap. PrivateUsage reads 0 under Wine, so the process's Linux RssAnon was sampled from outside every second:

step RssAnon per texture /dev/dri mappings
before 70.3 MB 35
20,000 reserved textures made 127.8 MB ~2.9 KB 35
their 6 tiles each mapped 146.4 MB ~+0.9 KB 35
then 20,000 committed UPLOAD buffers (256 KB) made, mapped, released 146.4 MB 0 35

So the reserved textures themselves cost about what they cost on Windows, and ~300 a second of them explains ~70 MB a minute, not the ~1 GB a minute the title's process grows by. My "~70 KB each" divided all of the host's growth by the textures alive at the same time; the textures are what the title is doing in that stretch, not what the memory is.

What still stands from the description: the host grows ~1 GB a minute after the world load with few compiles; the title keeps most of the placed textures it makes (it releases ~4 %; XCL holds no extra reference); 97 % of them get a view right away (so a PC texture made at the first view would not save anything). What is open: where the ~1 GB a minute is. The ~47,000 /dev/dri mappings that appear in the game's process over the same stretch (none appear in this test) point at something that allocates CPU-visible GPU memory as the title goes, not at the reserved textures. I'll measure that next and update the description; options 1–3 above do not follow from these numbers.

AI use: Claude Code (Claude Opus 5.5) wrote the throwaway test, ran it and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7188772558 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7188772558). Originally posted by [GreemSC](https://github.com/GreemSC) on 2026-11-26T10:00:06Z. --- **Correction: the ~70 KB per placed texture in the description is wrong; it is ~4 KB here too.** @joeypercia, thank you, your Windows numbers made me measure it directly. Your test under Wine/RADV (RX 7900 XT, Mesa 26.2.5, Proton-CachyOS Wine 11, vkd3d-proton with dxil-spirv 53aac41): one process, 20,000 `CreateReservedResource` textures (256×256 RGBA8, 9 mips, `64KB_UNDEFINED_SWIZZLE`) kept alive, then all their tiles mapped onto one heap. `PrivateUsage` reads 0 under Wine, so the process's Linux `RssAnon` was sampled from outside every second: | step | RssAnon | per texture | `/dev/dri` mappings | |---|---:|---:|---:| | before | 70.3 MB | | 35 | | 20,000 reserved textures made | 127.8 MB | **~2.9 KB** | 35 | | their 6 tiles each mapped | 146.4 MB | **~+0.9 KB** | 35 | | then 20,000 committed UPLOAD buffers (256 KB) made, mapped, released | 146.4 MB | 0 | 35 | So the reserved textures themselves cost about what they cost on Windows, and ~300 a second of them explains ~70 MB a minute, not the ~1 GB a minute the title's process grows by. My "~70 KB each" divided all of the host's growth by the textures alive at the same time; the textures are what the title is doing in that stretch, not what the memory is. What still stands from the description: the host grows ~1 GB a minute after the world load with few compiles; the title keeps most of the placed textures it makes (it releases ~4 %; XCL holds no extra reference); 97 % of them get a view right away (so a PC texture made at the first view would not save anything). What is open: where the ~1 GB a minute is. The ~47,000 `/dev/dri` mappings that appear in the game's process over the same stretch (none appear in this test) point at something that allocates CPU-visible GPU memory as the title goes, not at the reserved textures. I'll measure that next and update the description; options 1–3 above do not follow from these numbers. AI use: Claude Code (Claude Opus 5.5) wrote the throwaway test, ran it and wrote this.
luckyteagirl commented 2026-11-26 10:06:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T10:00:09Z.


Native Windows RX 6800M measurement, before and after mapping

I measured native D3D12 reserved textures on Windows 11 Home build 26200 and explicitly selected the AMD Radeon RX 6800M (driver 30.0.13002.13003, PCI 1002:73df, subsystem 16c21043, LUID 00000000:00014d72, tiled-resource tier 3). This uses a standalone native harness and no title or XCL runtime. It adds a mapped comparison to the earlier unmapped measurements above.

Each row has two fresh processes. Each process first warmed up one reserved texture, whole-resource mapping, unmapping, and a queue fence. It then measured an idle control, held all test textures with their initial NULL mappings, mapped every texture to the same small heap range, created a separate heap with unique backing for every texture, and remapped each texture to its own range in that heap. The harness fenced the queue before sampling process PrivateUsage and DXGI local/non-local usage. Both idle controls showed zero PrivateUsage and DXGI usage movement.

RGBA8 texture Textures per child 64 KiB tiles per texture Unmapped PrivateUsage per texture, across repeats Same backing mapping delta Unique remapping delta after the heap was allocated
64×64, 1 mip 1,024 1 6.82–6.84 KiB 0 B 0 B
256×256, 9 mips 512 6 8.46–8.56 KiB 0 B 0 B

The two mapping columns showed zero measured change in PrivateUsage, DXGI local usage, and DXGI non-local usage in each repeat. Creating the separate heap added exactly 64 MiB or 192 MiB to local DXGI usage respectively, before changing any texture mapping. PrivateUsage rose by about the same amounts, plus 132–136 KiB or 388–392 KiB respectively. Local budget was 11,219 MiB throughout. Minimum system commit headroom across the completed runs was 10.1 GiB. An initial 1,024-object run of the larger shape reached the 256 MiB process-commit growth guard after staging its 384 MiB heap and stopped. The completed larger runs used 512 textures and a 192 MiB heap.

On this driver and up to these counts, the process counters resolve the cost of unmapped objects and the backing heap. They show no additional change at either mapping step. This does not measure kernel/driver memory outside the process counters, individual tile updates, texture access, GPU readback, larger workloads, the title's mix of texture shapes or placement lifetimes, or any other driver. Local DXGI usage returned to near baseline after release. The released-heap PrivateUsage delta persisted at the short final sample, so the test does not characterize longer-term driver allocation retention.

AI use: OpenAI Codex (GPT-6.2 Sol) prepared the standalone harness, ran the measurements, and drafted this note.

<!-- greyfinch-sync:ivall/xcl:comment:7188773609 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7188773609). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T10:00:09Z. --- ### Native Windows RX 6800M measurement, before and after mapping I measured native D3D12 reserved textures on Windows 11 Home build 26200 and explicitly selected the AMD Radeon RX 6800M (driver 30.0.13002.13003, PCI 1002:73df, subsystem 16c21043, LUID 00000000:00014d72, tiled-resource tier 3). This uses a standalone native harness and no title or XCL runtime. It adds a mapped comparison to the earlier unmapped measurements above. Each row has two fresh processes. Each process first warmed up one reserved texture, whole-resource mapping, unmapping, and a queue fence. It then measured an idle control, held all test textures with their initial NULL mappings, mapped every texture to the same small heap range, created a separate heap with unique backing for every texture, and remapped each texture to its own range in that heap. The harness fenced the queue before sampling process PrivateUsage and DXGI local/non-local usage. Both idle controls showed zero PrivateUsage and DXGI usage movement. | RGBA8 texture | Textures per child | 64 KiB tiles per texture | Unmapped PrivateUsage per texture, across repeats | Same backing mapping delta | Unique remapping delta after the heap was allocated | |---|---:|---:|---:|---:|---:| | 64×64, 1 mip | 1,024 | 1 | 6.82–6.84 KiB | 0 B | 0 B | | 256×256, 9 mips | 512 | 6 | 8.46–8.56 KiB | 0 B | 0 B | The two mapping columns showed zero measured change in PrivateUsage, DXGI local usage, and DXGI non-local usage in each repeat. Creating the separate heap added exactly 64 MiB or 192 MiB to local DXGI usage respectively, before changing any texture mapping. PrivateUsage rose by about the same amounts, plus 132–136 KiB or 388–392 KiB respectively. Local budget was 11,219 MiB throughout. Minimum system commit headroom across the completed runs was 10.1 GiB. An initial 1,024-object run of the larger shape reached the 256 MiB process-commit growth guard after staging its 384 MiB heap and stopped. The completed larger runs used 512 textures and a 192 MiB heap. On this driver and up to these counts, the process counters resolve the cost of unmapped objects and the backing heap. They show no additional change at either mapping step. This does not measure kernel/driver memory outside the process counters, individual tile updates, texture access, GPU readback, larger workloads, the title's mix of texture shapes or placement lifetimes, or any other driver. Local DXGI usage returned to near baseline after release. The released-heap PrivateUsage delta persisted at the short final sample, so the test does not characterize longer-term driver allocation retention. AI use: OpenAI Codex (GPT-6.2 Sol) prepared the standalone harness, ran the measurements, and drafted this note.
upstream-sync changed title from [GH #2743] D3D12.X: after world load the title's process grows ~1 GB a minute on Linux/RADV while it places textures it keeps (source not located yet) to [GH #2743] D3D12.X: resource_at keeps a PC texture for every view-at-address forever (~1 GB a minute on Linux/RADV) 2026-11-26 11:04:54 +00:00
GreemSC commented 2026-11-26 11:05:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by GreemSC on 2026-11-26T10:15:44Z.


Root cause, second correction: these textures are XCL's, not the title's. cc @joeypercia @luckyteagirl, and @raylitebull because amd-dev already has the fix shape.

real.rs::resource_at (on main and nvidia-dev): for a view the title writes from a description and an address, with no resource object (CreateShaderResourceViewAtX / CreateUnorderedAccessViewAtX, device #70/#71), XCL makes a PC placed texture through device_x::create_placed_resource_x for each new (address, 0x38-byte resource description) and keeps it in the MADE map for good; nothing ever releases it. The title reuses addresses with other descriptions (streaming, transient memory), so the map only grows.

Counted on the same setup as above (RX 7900 XT, RADV, Wine, b49be18 + Wine stack), one 200 s run, a local counter in resource_at:

at made by resource_at (kept in MADE) reserved textures from vram.rs the title's own releases of placed resources
60 s 16,015 16,898 4
120 s 59,309 59,087 59
190 s 79,515 78,852 2,957

So nearly all the reserved textures in my earlier counts come from this map; my "the title keeps them" was wrong (my caller count saw create_placed_resource_x and attributed it to the title, but resource_at calls it on the title's view calls). The "views without a resource" counted in the same runs: ~1 million in 200 s.

What each entry costs here (one process under Wine/RADV, sampled from outside): ~2.9 KB for the reserved texture, ~0.9 KB for its tile mappings, ~1.5 KB for each distinct view of it (a VkImageView vkd3d-proton keeps while the texture lives, even when the same descriptor slot is rewritten), plus XCL's title_textures tracking. Between 125 and 206 s the run made ~816,000 such views and the process grew ~1.8 GB.

amd-dev already replaced this: format_alias::placed_srv_resource with a per-address table and evict_stale_internal_at, which gives back the internal resources at an address when it is used with another shape (51ee197c). main and nvidia-dev still have the unbounded MADE. So the fix for main is probably that, or a part of it, rather than anything new; I have not measured amd-dev's version (under Wine it stops earlier for an unrelated reason, #846).

The open question from the description changes: not "make the title's textures cheaper", but bound resource_at's map (evict on address reuse as amd-dev does, keeping a resource alive while a descriptor still points at it). Options 1–3 in the description do not apply.

AI use: Claude Code (Claude Opus 5.5) wrote the counters, ran the runs and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7189125960 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7189125960). Originally posted by [GreemSC](https://github.com/GreemSC) on 2026-11-26T10:15:44Z. --- **Root cause, second correction: these textures are XCL's, not the title's.** cc @joeypercia @luckyteagirl, and @raylitebull because `amd-dev` already has the fix shape. `real.rs::resource_at` (on `main` and `nvidia-dev`): for a view the title writes from a description and an address, with no resource object (`CreateShaderResourceViewAtX` / `CreateUnorderedAccessViewAtX`, device #70/#71), XCL makes a PC placed texture through `device_x::create_placed_resource_x` for each new (address, 0x38-byte resource description) and keeps it in the `MADE` map for good; nothing ever releases it. The title reuses addresses with other descriptions (streaming, transient memory), so the map only grows. Counted on the same setup as above (RX 7900 XT, RADV, Wine, `b49be18` + Wine stack), one 200 s run, a local counter in `resource_at`: | at | made by `resource_at` (kept in `MADE`) | reserved textures from `vram.rs` | the title's own releases of placed resources | |---|---:|---:|---:| | 60 s | 16,015 | 16,898 | 4 | | 120 s | 59,309 | 59,087 | 59 | | 190 s | 79,515 | 78,852 | 2,957 | So nearly all the reserved textures in my earlier counts come from this map; my "the title keeps them" was wrong (my caller count saw `create_placed_resource_x` and attributed it to the title, but `resource_at` calls it on the title's view calls). The "views without a resource" counted in the same runs: ~1 million in 200 s. What each entry costs here (one process under Wine/RADV, sampled from outside): ~2.9 KB for the reserved texture, ~0.9 KB for its tile mappings, **~1.5 KB for each distinct view of it** (a `VkImageView` vkd3d-proton keeps while the texture lives, even when the same descriptor slot is rewritten), plus XCL's `title_textures` tracking. Between 125 and 206 s the run made ~816,000 such views and the process grew ~1.8 GB. **`amd-dev` already replaced this**: `format_alias::placed_srv_resource` with a per-address table and `evict_stale_internal_at`, which gives back the internal resources at an address when it is used with another shape (51ee197c). `main` and `nvidia-dev` still have the unbounded `MADE`. So the fix for `main` is probably that, or a part of it, rather than anything new; I have not measured `amd-dev`'s version (under Wine it stops earlier for an unrelated reason, #846). The open question from the description changes: not "make the title's textures cheaper", but **bound `resource_at`'s map** (evict on address reuse as `amd-dev` does, keeping a resource alive while a descriptor still points at it). Options 1–3 in the description do not apply. AI use: Claude Code (Claude Opus 5.5) wrote the counters, ran the runs and wrote this.
joeypercia commented 2026-11-26 11:05:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by joeypercia on 2026-11-26T10:16:47Z.


Thanks for tracing it to resource_at; that's a clean answer. Its MADE map is the only thing that holds these textures, so bounding it is a small change on its own, separate from #1989 (where amd-dev's evict_stale_internal_at lives inside a 4,300-line PR). Unless someone has it already, I'd take it for main like this, as one PR:

  1. Evict on overlap, not only the same address. A new (address, description) evicts every MADE entry whose console memory overlaps the new one's with another description. Matching only the same address may not bound the map if the title reuses memory at other offsets. The new view's texture now describes those bytes, and older views over them are stale.
  2. Release through late_release::hold, so an evicted texture outlives the work already submitted that might still read it through a descriptor written before.
  3. A counter on the activity line: entries alive, made, evicted. The PR then shows, on a run that reaches the world, whether the map levels off. On the 4070 Ti, video memory was past the budget by 3.6–4.5 GB in each of the four runs that got that far (#2688), and #2750's census puts XCL's own resources next to it.

One risk: a title that alternates two shapes over the same memory, each still in use, would make and evict one each time. I'll count that case (an evicted key made again) before turning it on by default. (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ivall/xcl:comment:7189151688 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7189151688). Originally posted by [joeypercia](https://github.com/joeypercia) on 2026-11-26T10:16:47Z. --- Thanks for tracing it to `resource_at`; that's a clean answer. Its `MADE` map is the only thing that holds these textures, so bounding it is a small change on its own, separate from #1989 (where `amd-dev`'s `evict_stale_internal_at` lives inside a 4,300-line PR). Unless someone has it already, I'd take it for `main` like this, as one PR: 1. **Evict on overlap, not only the same address.** A new (address, description) evicts every `MADE` entry whose console memory overlaps the new one's with another description. Matching only the same address may not bound the map if the title reuses memory at other offsets. The new view's texture now describes those bytes, and older views over them are stale. 2. **Release through `late_release::hold`**, so an evicted texture outlives the work already submitted that might still read it through a descriptor written before. 3. **A counter on the activity line:** entries alive, made, evicted. The PR then shows, on a run that reaches the world, whether the map levels off. On the 4070 Ti, video memory was past the budget by 3.6–4.5 GB in each of the four runs that got that far (#2688), and #2750's census puts XCL's own resources next to it. One risk: a title that alternates two shapes over the same memory, each still in use, would make and evict one each time. I'll count that case (an evicted key made again) before turning it on by default. (Claude Code, Claude Opus 5.5)
GreemSC commented 2026-11-26 11:05:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by GreemSC on 2026-11-26T10:21:08Z.


@joeypercia sounds good, please take it; I'll test the PR on AMD / Linux. First a correction to my comment above, then two things for it.

0. amd-dev does not bound it either; I was wrong. On b5c0275, format_alias::placed_srv_resource keeps every (address, description) in placed_srvs with a reference, and the usual reader case (no GPU writer at that address) is recorded as Owner::TitlePlaced (format_alias.rs ~711). evict_stale_internal_at skips TitlePlaced entries (~405), so those are never given back; it only evicts the internal writer twins. CharlyRien's #1989 numbers on #2688 (placed_srvs 550 → 786 MB in 120 s, never released) fit that. So there is nothing to port from amd-dev for this; your plan is the fix.

1. A third of the entries are padding twins. Bytes 0x04..0x08 of the 0x38-byte key are the padding between Dimension (4 bytes) and Alignment (8 bytes) of D3D12_RESOURCE_DESC, and the title leaves them non-zero. resource_at clears only 0x34..0x38, so the same view makes a second entry whenever that padding differs. Counted in one 200 s run (same setup as above, a local counter that keys a second set with 0x04..0x08 cleared):

at made by resource_at made with non-zero padding twins of an earlier entry once the padding is cleared
60 s 16,015 306 242
120 s 59,676 18,772 18,572
190 s 80,953 25,082 24,844 (31 %)

So clearing 0x04..0x08 in the key (as 0x34..0x38 already is) removes ~31 % of the entries before any eviction, and makes your "evicted key made again" count meaningful. Credit for spotting it: the VIctory project's notes (fxceless's commit c96b4f2, "one host copy per placed texture"; read as a reference only, GPL-3.0, no code taken). amd-dev's prepare_placed_srv_desc does not clear it either.

2. late_release under Wine. Linux runs with the Wine stack (#867's fence proxies) use XCL_LATE_RELEASE=0: late_release + #867 crash together under Wine (seen since 2026-11-24, in late_release::hold). So on Linux an eviction through late_release::hold would release at once. If the PR depends on it, a fence wait on the queues that used the texture (or a flag that keeps evicted entries until the next frame's submits are past) would cover Linux too; otherwise I'll report what happens there.

AI use: Claude Code (Claude Opus 5.5) wrote the counter, ran the run and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7189249905 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7189249905). Originally posted by [GreemSC](https://github.com/GreemSC) on 2026-11-26T10:21:08Z. --- @joeypercia sounds good, please take it; I'll test the PR on AMD / Linux. First a correction to my comment above, then two things for it. **0. `amd-dev` does not bound it either; I was wrong.** On `b5c0275`, `format_alias::placed_srv_resource` keeps every (address, description) in `placed_srvs` with a reference, and the usual reader case (no GPU writer at that address) is recorded as `Owner::TitlePlaced` (format_alias.rs ~711). `evict_stale_internal_at` skips `TitlePlaced` entries (~405), so those are never given back; it only evicts the internal writer twins. CharlyRien's #1989 numbers on #2688 ([`placed_srvs` 550 → 786 MB in 120 s, never released](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7186079369)) fit that. So there is nothing to port from `amd-dev` for this; your plan is the fix. **1. A third of the entries are padding twins.** Bytes 0x04..0x08 of the 0x38-byte key are the padding between `Dimension` (4 bytes) and `Alignment` (8 bytes) of `D3D12_RESOURCE_DESC`, and the title leaves them non-zero. `resource_at` clears only 0x34..0x38, so the same view makes a second entry whenever that padding differs. Counted in one 200 s run (same setup as above, a local counter that keys a second set with 0x04..0x08 cleared): | at | made by `resource_at` | made with non-zero padding | twins of an earlier entry once the padding is cleared | |---|---:|---:|---:| | 60 s | 16,015 | 306 | 242 | | 120 s | 59,676 | 18,772 | 18,572 | | 190 s | 80,953 | 25,082 | **24,844 (31 %)** | So clearing 0x04..0x08 in the key (as 0x34..0x38 already is) removes ~31 % of the entries before any eviction, and makes your "evicted key made again" count meaningful. Credit for spotting it: the VIctory project's notes ([fxceless's commit c96b4f2](https://github.com/DoubleGhosty/cool_fox/commit/c96b4f2), "one host copy per placed texture"; read as a reference only, GPL-3.0, no code taken). amd-dev's `prepare_placed_srv_desc` does not clear it either. **2. `late_release` under Wine.** Linux runs with the Wine stack (#867's fence proxies) use `XCL_LATE_RELEASE=0`: `late_release` + #867 crash together under Wine (seen since 2026-11-24, in `late_release::hold`). So on Linux an eviction through `late_release::hold` would release at once. If the PR depends on it, a fence wait on the queues that used the texture (or a flag that keeps evicted entries until the next frame's submits are past) would cover Linux too; otherwise I'll report what happens there. AI use: Claude Code (Claude Opus 5.5) wrote the counter, ran the run and wrote this.
joeypercia commented 2026-11-26 11:05:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by joeypercia on 2026-11-26T10:39:52Z.


Results on the RTX 4070 Ti (nvidia-dev af2cecc4, 1 GiB shader heap, one run each, same build 4059212d with the padding cleared from the key):

eviction off (02-23-31) XCL_RESOURCE_AT_EVICT=1 (02-33-28)
textures alive for views without a resource 46,017 at 171 s, 62,822 at 403 s, still climbing 21,569 at 155 s, 23,994 at 260 s, flat
made / let go / made again after that 62,822 / 0 / 0 75,767 / 51,773 / 27,385
video memory at about 210 s 13.0–13.2 GB (budget 10.5) 13.3–13.4 GB (budget 10.5)
end device removed at 404 s the title's own breakpoint (0x80000003 in the title's code) at 260 s

What I take from it:

  • Eviction bounds the count but not the memory, on Windows at least. The evicted textures' memory is under the textures that replace them, and on native D3D12 an unmapped reserved texture is about 8 KB of commit and no video memory (above). So the video memory past the budget isn't these objects.
  • More than half the evictions come back (27,385 of 51,773). The title uses two or more descriptions over the same memory by turns, and both stay in use. Evicting on overlap then means making textures over and over, and possibly freeing one a descriptor still names. The title's breakpoint in the one eviction run may come from that; I can't tell from one run.
  • The padding in the key is a plain win: the same view no longer makes a second object. On your setup that's 31 % of them, and each costs more there.

So I'll make the PR the key fix plus the counters on the activity line, without the eviction. A bound that doesn't free what's still named would need to know when the title's descriptors stop naming a texture. That's a bigger change than this one, and I don't think it pays on Windows. @GreemSC, if eviction would still help under Wine with the padding fix in, the counters will show that. (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ivall/xcl:comment:7189666296 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7189666296). Originally posted by [joeypercia](https://github.com/joeypercia) on 2026-11-26T10:39:52Z. --- Results on the RTX 4070 Ti (`nvidia-dev` `af2cecc4`, 1 GiB shader heap, one run each, same build `4059212d` with the padding cleared from the key): | | eviction off (`02-23-31`) | `XCL_RESOURCE_AT_EVICT=1` (`02-33-28`) | |---|---|---| | textures alive for views without a resource | 46,017 at 171 s, 62,822 at 403 s, still climbing | 21,569 at 155 s, 23,994 at 260 s, flat | | made / let go / made again after that | 62,822 / 0 / 0 | 75,767 / 51,773 / **27,385** | | video memory at about 210 s | 13.0–13.2 GB (budget 10.5) | 13.3–13.4 GB (budget 10.5) | | end | device removed at 404 s | **the title's own breakpoint** (`0x80000003` in the title's code) at 260 s | What I take from it: - **Eviction bounds the count but not the memory**, on Windows at least. The evicted textures' memory is under the textures that replace them, and on native D3D12 an unmapped reserved texture is about 8 KB of commit and no video memory (above). So the video memory past the budget isn't these objects. - **More than half the evictions come back** (27,385 of 51,773). The title uses two or more descriptions over the same memory by turns, and both stay in use. Evicting on overlap then means making textures over and over, and possibly freeing one a descriptor still names. The title's breakpoint in the one eviction run may come from that; I can't tell from one run. - **The padding in the key is a plain win**: the same view no longer makes a second object. On your setup that's 31 % of them, and each costs more there. So I'll make the PR the key fix plus the counters on the activity line, without the eviction. A bound that doesn't free what's still named would need to know when the title's descriptors stop naming a texture. That's a bigger change than this one, and I don't think it pays on Windows. @GreemSC, if eviction would still help under Wine with the padding fix in, the counters will show that. (Claude Code, Claude Opus 5.5)
GreemSC commented 2026-11-26 11:05:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by GreemSC on 2026-11-26T10:42:49Z.


@joeypercia thanks, that split makes sense (key fix + counters now, eviction only if a holder-aware release is ever written). Two notes so we don't overlap:

  • amd-dev has the same padding in its keys: format_alias::prepare_placed_srv_desc and prepare_placed_uav_desc clear only 0x34.. as well, and your PR targets main's resource_at. I'll take the amd-dev side as its own small PR (the two prepares, with a test that fails without it), measured on Linux/AMD where amd-dev now runs under Wine (#846).
  • Eviction under Wine: once your PR is up I'll run it on Linux/AMD and post what the counters show there, with and without your switch, since each object costs more under vkd3d-proton (~4 KB + ~1.5 KB per distinct view, measured above).

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7189733386 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7189733386). Originally posted by [GreemSC](https://github.com/GreemSC) on 2026-11-26T10:42:49Z. --- @joeypercia thanks, that split makes sense (key fix + counters now, eviction only if a holder-aware release is ever written). Two notes so we don't overlap: - **`amd-dev` has the same padding in its keys**: `format_alias::prepare_placed_srv_desc` and `prepare_placed_uav_desc` clear only 0x34.. as well, and your PR targets `main`'s `resource_at`. I'll take the `amd-dev` side as its own small PR (the two prepares, with a test that fails without it), measured on Linux/AMD where `amd-dev` now runs under Wine (#846). - **Eviction under Wine**: once your PR is up I'll run it on Linux/AMD and post what the counters show there, with and without your switch, since each object costs more under vkd3d-proton (~4 KB + ~1.5 KB per distinct view, measured above). AI use: Claude Code (Claude Opus 5.5).
joeypercia commented 2026-11-26 11:05:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by joeypercia on 2026-11-26T10:53:34Z.


@GreemSC, the key fix is up as #2762: main's resource_at key leaves out 0x04..0x08 too, and the activity line counts the textures kept (views without a resource: N textures kept). It has no eviction switch any more, so there's nothing to compare with and without. Before and after the key fix is the comparison that would show the 31 % under Wine. (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ivall/xcl:comment:7189977470 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7189977470). Originally posted by [joeypercia](https://github.com/joeypercia) on 2026-11-26T10:53:34Z. --- @GreemSC, the key fix is up as #2762: `main`'s `resource_at` key leaves out 0x04..0x08 too, and the activity line counts the textures kept (`views without a resource: N textures kept`). It has no eviction switch any more, so there's nothing to compare with and without. Before and after the key fix is the comparison that would show the 31 % under Wine. (Claude Code, Claude Opus 5.5)
CryingLaughing commented 2026-11-26 13:05:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by CryingLaughing on 2026-11-26T12:19:48Z.


I prepared a follow-up on top of #2762 at ab169f5396bda3df5a48497e668f49a99192e892. The cache shares one pending placement per normalized key. Creation and waiting stay outside the map lock so other keys can proceed. It keeps the existing cached-failure and completed-entry behavior.

The bounded CPU fixture passed with one shared result, an unrelated key completing while the first was held, and a cached zero reused. The existing native sequential fixture also passed on the RTX 4080, with two unique textures across the exact-repeat, padding and distinct-address controls. Both focused runs were 1 passed, 0 failed, 0 ignored, 0 skips.

RTX 4080 driver 621.01, i5-13600K, Windows 11 25H2 build 26200.9974, Rust 1.100.0 x64 MSVC and DXC 1.8.2502.11. cargo build --workspace --locked -j 4 and cargo test --workspace --locked -j 4 -- --test-threads=4 --show-output passed on the exact commit with 1,437 passed, 0 failed, 47 ignored, including 29 capability skips in the pass count.

Concurrent native scheduling and the effect on retail memory remain unmeasured.

<!-- greyfinch-sync:ivall/xcl:comment:7191862418 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7191862418). Originally posted by [CryingLaughing](https://github.com/CryingLaughing) on 2026-11-26T12:19:48Z. --- I prepared a follow-up on top of #2762 at [`ab169f5396bda3df5a48497e668f49a99192e892`](https://github.com/CryingLaughing/xcl/commit/ab169f5396bda3df5a48497e668f49a99192e892). The cache shares one pending placement per normalized key. Creation and waiting stay outside the map lock so other keys can proceed. It keeps the existing cached-failure and completed-entry behavior. The bounded CPU fixture passed with one shared result, an unrelated key completing while the first was held, and a cached zero reused. The existing native sequential fixture also passed on the RTX 4080, with two unique textures across the exact-repeat, padding and distinct-address controls. Both focused runs were **1 passed, 0 failed, 0 ignored, 0 skips**. RTX 4080 driver 621.01, i5-13600K, Windows 11 25H2 build 26200.9974, Rust 1.100.0 x64 MSVC and DXC 1.8.2502.11. `cargo build --workspace --locked -j 4` and `cargo test --workspace --locked -j 4 -- --test-threads=4 --show-output` passed on the exact commit with **1,437 passed, 0 failed, 47 ignored**, including 29 capability skips in the pass count. Concurrent native scheduling and the effect on retail memory remain unmeasured.
GreemSC commented 2026-11-26 20:13:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by GreemSC on 2026-11-26T20:13:46Z.


@joeypercia thanks, and sorry for the late answer. I have not measured #2762 before/after under Wine yet: today went into amd-dev (which has its own resource_at changes), and my main tree with #2762 is stuck in the shader preparation of #2555 under Wine. When it runs again I'll post the views without a resource: N textures kept line at the same points, with and without #2762, on the RX 7900 XT.

AI use: Claude Code (Claude Opus 5.5) wrote this reply.

<!-- greyfinch-sync:ivall/xcl:comment:7202437105 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7202437105). Originally posted by [GreemSC](https://github.com/GreemSC) on 2026-11-26T20:13:46Z. --- @joeypercia thanks, and sorry for the late answer. I have not measured #2762 before/after under Wine yet: today went into `amd-dev` (which has its own `resource_at` changes), and my `main` tree with #2762 is stuck in the shader preparation of #2555 under Wine. When it runs again I'll post the `views without a resource: N textures kept` line at the same points, with and without #2762, on the RX 7900 XT. AI use: Claude Code (Claude Opus 5.5) wrote this reply.
Natakout commented 2026-11-27 00:38:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Natakout on 2026-11-27T00:38:03Z.


Holder-aware eviction of resource_at textures: 2 runs of 20 minutes in the world on an RTX 3060, no crash, no device removal, the count bounded, and in the second run memory flat from minute 6 to the end. I found this independently (#2869, which I'm closing as a duplicate of this one; sorry, I missed it).

RTX 3060 12 GB (NVIDIA 621.14), 2 GB shader heap (#2590), main b49be18 + #2404 + #2301 + #751, direct DXIL, XCL_DEVICE_TYPE=lockhart. Local switch, not a PR yet.

What it does. When title_textures supersedes a resource that resource_at made, in the unmap_superseded loops of register and retire_overlapping:

  1. it takes the resource out of MADE;
  2. every console view handle whose last #70 view showed that resource gets a null PC view of the same shape, through the original CreateShaderResourceView on slot.pc_srv and then console_heap::publish. Only the PC descriptor changes: the console words in the title's heap stay as the title wrote them. Each handle keeps its last resource_at resource, a later view of another resource overwrites that, and dev_create_srv_x records it;
  3. it releases the resource through its hooked Release, so late_release holds it until the queues are past it.

What failed first:

  • the bare release, without step 2: the GPU hung (0x887a0006) a few minutes into the world in 2 runs out of 2, while a control run of the same build was clean;
  • step 2 done through dev_create_srv_x(null), which also rewrites the console words: the title crashed reading its own memory (game+0x55ac280) within 2-3 minutes, in 3 runs out of 3. The title reads those words back.

Results, 2 runs of 1200 s, both exit 0x0, 0 removals, 0 crashes:

  • run 1: 307,651 evicted, 203,319 views nulled. PLACED_TEXTURES at 25,000, 29,000 then 31,000; unmapped targets still alive 63-156. Without the eviction there were 45,000+ and they kept climbing. The frame rate stayed at 1.1-3.6 presents/s up to minute 20, where it used to sink to 0.25 at minute 15 and hang at about 1236 s. Commit still rose 30.9 to 34.8 GB between 362 and 1083 s, half the slope without it, so there is something else too.
  • run 2: 112,632 evicted, 79,499 views nulled, PLACED_TEXTURES flat at 28,700 from about 600 s on. Commit 31.4 to 31.6 GB from 362 s to 1083 s, local video memory 14.8 to 15.6 GB. 3 presents/s throughout.

I could not tell how many of the evicted textures were made again: no counter for that, sorry. That may be @joeypercia's 27,385 effect. UAV views (#71) of these resources are not covered yet: only #70 handles are tracked.

If this shape looks right to you, I can make it a PR on top of #2762 (UAV handles too, behind a switch at first), with the full suite and a smoke pair. @joeypercia, if you'd rather fold it into your follow-up, say so and I'll test that instead.

AI use: Claude (claude-opus-5-5, through Hermes) wrote the change, ran the runs over SSH and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7206623027 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7206623027). Originally posted by [Natakout](https://github.com/Natakout) on 2026-11-27T00:38:03Z. --- **Holder-aware eviction of `resource_at` textures: 2 runs of 20 minutes in the world on an RTX 3060, no crash, no device removal, the count bounded, and in the second run memory flat from minute 6 to the end.** I found this independently (#2869, which I'm closing as a duplicate of this one; sorry, I missed it). RTX 3060 12 GB (NVIDIA 621.14), 2 GB shader heap (#2590), `main` `b49be18` + #2404 + #2301 + #751, direct DXIL, `XCL_DEVICE_TYPE=lockhart`. Local switch, not a PR yet. **What it does.** When `title_textures` supersedes a resource that `resource_at` made, in the `unmap_superseded` loops of `register` and `retire_overlapping`: 1. it takes the resource out of `MADE`; 2. every console view handle whose last `#70` view showed that resource gets a **null PC view of the same shape**, through the original `CreateShaderResourceView` on `slot.pc_srv` and then `console_heap::publish`. Only the PC descriptor changes: the console words in the title's heap stay as the title wrote them. Each handle keeps its last `resource_at` resource, a later view of another resource overwrites that, and `dev_create_srv_x` records it; 3. it releases the resource through its hooked `Release`, so `late_release` holds it until the queues are past it. **What failed first:** - the bare release, without step 2: the GPU hung (`0x887a0006`) a few minutes into the world in 2 runs out of 2, while a control run of the same build was clean; - step 2 done through `dev_create_srv_x(null)`, which also rewrites the console words: the title crashed reading its own memory (`game+0x55ac280`) within 2-3 minutes, in 3 runs out of 3. The title reads those words back. **Results, 2 runs of 1200 s, both `exit 0x0`, 0 removals, 0 crashes:** - **run 1**: 307,651 evicted, 203,319 views nulled. `PLACED_TEXTURES` at 25,000, 29,000 then 31,000; unmapped targets still alive 63-156. Without the eviction there were 45,000+ and they kept climbing. The frame rate stayed at 1.1-3.6 presents/s up to minute 20, where it used to sink to 0.25 at minute 15 and hang at about 1236 s. Commit still rose 30.9 to 34.8 GB between 362 and 1083 s, half the slope without it, so there is something else too. - **run 2**: 112,632 evicted, 79,499 views nulled, `PLACED_TEXTURES` flat at 28,700 from about 600 s on. Commit **31.4 to 31.6 GB from 362 s to 1083 s**, local video memory 14.8 to 15.6 GB. 3 presents/s throughout. I could not tell how many of the evicted textures were made again: no counter for that, sorry. That may be @joeypercia's 27,385 effect. UAV views (`#71`) of these resources are not covered yet: only `#70` handles are tracked. If this shape looks right to you, I can make it a PR on top of #2762 (UAV handles too, behind a switch at first), with the full suite and a smoke pair. @joeypercia, if you'd rather fold it into your follow-up, say so and I'll test that instead. AI use: Claude (claude-opus-5-5, through Hermes) wrote the change, ran the runs over SSH and wrote this.
joeypercia commented 2026-11-27 00:39:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by joeypercia on 2026-11-27T00:39:28Z.


@Natakout please make it your PR, on top of #2762; I won't fold it into mine. Your step 2 is what my eviction attempt above lacked: I released the resources without nulling the views that still showed them, and that run ended on the title's breakpoint, which fits the hang you got with the bare release. Keeping the title's console words and changing only the PC descriptor also matches what you found with dev_create_srv_x(null).

For the remaking question: #2762 logs views without a resource: N textures kept from VIEW_TEXTURES; a counter of resource_at makes for a key that was evicted before would separate a texture made again from a new one. Happy to run your PR on the 12 GB RTX 4070 Ti once it is up.

AI use: Claude Code (Claude Opus 5.5) wrote this reply.

<!-- greyfinch-sync:ivall/xcl:comment:7206642300 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7206642300). Originally posted by [joeypercia](https://github.com/joeypercia) on 2026-11-27T00:39:28Z. --- @Natakout please make it your PR, on top of #2762; I won't fold it into mine. Your step 2 is what my eviction attempt above lacked: I released the resources without nulling the views that still showed them, and that run ended on the title's breakpoint, which fits the hang you got with the bare release. Keeping the title's console words and changing only the PC descriptor also matches what you found with `dev_create_srv_x(null)`. For the remaking question: #2762 logs `views without a resource: N textures kept` from `VIEW_TEXTURES`; a counter of `resource_at` makes for a key that was evicted before would separate a texture made again from a new one. Happy to run your PR on the 12 GB RTX 4070 Ti once it is up. AI use: Claude Code (Claude Opus 5.5) wrote this reply.
Natakout commented 2026-11-27 01:21:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Natakout on 2026-11-27T01:21:15Z.


Correction to my comment above: the memory claim does not hold. A control run of the same build with the eviction off, 1200 s with the same settings, was just as clean:

  • exit 0, 3.2 presents/s from minute 4 to minute 20;
  • commit 32.6 GB at 362 s and 32.7 GB at 843 s, flat like the eviction runs (32.2 to 32.2 and 31.5 to 32.1 GB);
  • yet PLACED_TEXTURES reached 123,551 there, with 93,799 superseded targets still alive, against about 30,000 with the eviction.

So on this NVIDIA setup, what the eviction shows is the bounded count. It shows no memory or frame-rate gain. Each empty reserved texture costs far less here than my earlier estimate. The earlier runs where memory climbed and the frame rate fell (with and without the eviction) seem to depend on what the title does in the world, not on these textures. I'll keep testing the variant that writes no descriptor and frees an evicted resource only once the title has written another view into every handle that last showed it (an idea from another tester's assistant), and post only measured numbers.

<!-- greyfinch-sync:ivall/xcl:comment:7207220408 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7207220408). Originally posted by [Natakout](https://github.com/Natakout) on 2026-11-27T01:21:15Z. --- **Correction to my comment above: the memory claim does not hold.** A control run of the same build with the eviction off, 1200 s with the same settings, was just as clean: - exit 0, 3.2 presents/s from minute 4 to minute 20; - commit **32.6 GB at 362 s and 32.7 GB at 843 s**, flat like the eviction runs (32.2 to 32.2 and 31.5 to 32.1 GB); - yet `PLACED_TEXTURES` reached 123,551 there, with 93,799 superseded targets still alive, against about 30,000 with the eviction. So on this NVIDIA setup, what the eviction shows is the bounded count. It shows no memory or frame-rate gain. Each empty reserved texture costs far less here than my earlier estimate. The earlier runs where memory climbed and the frame rate fell (with and without the eviction) seem to depend on what the title does in the world, not on these textures. I'll keep testing the variant that writes no descriptor and frees an evicted resource only once the title has written another view into every handle that last showed it (an idea from another tester's assistant), and post only measured numbers.
Natakout commented 2026-11-27 03:06:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Natakout on 2026-11-27T03:06:07Z.


One more caveat on my comment above: a run of the same build without any eviction (vm_3, same settings) also ended in D3D12 device removed: 0x887a0006 at 264 s, on the same title texture: upload failed: texture copy path as the two bare-release runs. So the "bare release hangs the GPU" attribution rests on 2 hangs against 1 clean control and 1 hung control, which is not conclusive. The null-view variant (3 clean 20-minute runs) and the no-write variant (1 clean run, the doomed set plateauing at about 25,000) stand as measured. Neither shows a memory or frame-rate gain on this card.

<!-- greyfinch-sync:ivall/xcl:comment:7208705556 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7208705556). Originally posted by [Natakout](https://github.com/Natakout) on 2026-11-27T03:06:07Z. --- One more caveat on my comment above: a run of the same build **without** any eviction (`vm_3`, same settings) also ended in `D3D12 device removed: 0x887a0006` at 264 s, on the same `title texture: upload failed: texture copy` path as the two bare-release runs. So the "bare release hangs the GPU" attribution rests on 2 hangs against 1 clean control and 1 hung control, which is not conclusive. The null-view variant (3 clean 20-minute runs) and the no-write variant (1 clean run, the doomed set plateauing at about 25,000) stand as measured. Neither shows a memory or frame-rate gain on this card.
Natakout commented 2026-11-27 03:52:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Natakout on 2026-11-27T03:52:30Z.


Update to my caveat above, from the Windows System log (nvlddmkm events): the two kinds of hang are different.

  • The two bare-release runs (dv_2, dv_3) logged event 13 "Graphics SM Warp Exception … MMU Fault" on several SMs, then the 153 reset. A shader read memory that was no longer mapped, which fits views still pointing at the released resources.
  • The two runs without any eviction (vm_3, vm_4) logged only the 153 reset, no SM exception and no MMU fault. That is a different failure, the same kind as the bare 153 resets I've had on this card for days (#505).

So the original attribution holds after all: the bare release faults; the null-view and no-write variants did not fault in their runs (4 runs of 20 minutes). Sorry for the back and forth.

<!-- greyfinch-sync:ivall/xcl:comment:7209339765 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7209339765). Originally posted by [Natakout](https://github.com/Natakout) on 2026-11-27T03:52:30Z. --- Update to my caveat above, from the Windows System log (`nvlddmkm` events): the two kinds of hang are different. - The two bare-release runs (dv_2, dv_3) logged event 13 **"Graphics SM Warp Exception … MMU Fault"** on several SMs, then the 153 reset. A shader read memory that was no longer mapped, which fits views still pointing at the released resources. - The two runs without any eviction (vm_3, vm_4) logged only the 153 reset, **no SM exception and no MMU fault**. That is a different failure, the same kind as the bare 153 resets I've had on this card for days (#505). So the original attribution holds after all: the bare release faults; the null-view and no-write variants did not fault in their runs (4 runs of 20 minutes). Sorry for the back and forth.
phantrieu2006-blip commented 2026-11-29 01:04:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by phantrieu2006-blip on 2026-11-29T01:04:29Z.


A 6 GB data point, and a question before any code: reclaim target pages instead of releasing resources?

Setup: RTX 3060 Laptop 6 GB (driver 621.01, budget ~5.2 GB), Ryzen 9 5900HS, 32 GB RAM, Windows 11 26200. main 7db2f391, release. XCL_DEVICE_TYPE=lockhart XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=600, and XCL_PREPARE=0: startup preparation was stopped at 23,815 / 26,503 records after 2 h 40 min (the last ~2,700 took ~5 records a minute here). Local counters only.

What the activity log shows (MB, "memory by owner"):

t video memory / budget target pages sparse tiles sampled textures
30–90 s (menus, loading art) ~4,600 / ~5,000 ~1,900 ~1,500 173
120 s 5,595 / 5,123 2,899 1,665 175
151 s 10,352 / 5,192 6,012 2,971 353
181 s 12,126 / 4,887 7,213 3,030 536
211–600 s ~12,300 / ~5,180, flat 7,275, flat ~2,840 579

target pages by owner from 211 s to the end: 59,671 textures with all their pages hold 13,475 MB; 7,275 MB of pages in all, 0 MB idle. The last presented frame is the loading art at about 150 s; 2,940 frames in 600 s. 156 waits for graphics pipelines being built, the longest 93,282 ms. Those waits come from the skipped preparation. The 7 GB over the budget is the part I am asking about.

So on this card, the growth this issue describes is ~7.3 GB of target pages over a ~5.2 GB budget, while sampled textures stay under 0.6 GB.

Question. Releasing the textures led to MMU faults above, because views still point at them. Would it be acceptable to keep every resource and only take pages away from cold ones?

  • Unmap the tiles of targets that no submission has bound for N frames (UpdateTileMappings to NULL). With Tiled Resources Tier 3, reads of unmapped tiles return 0 and writes are dropped, so stale views read zeros instead of faulting.
  • Map the tiles again before a submission that binds the target.
  • Open questions: does XCL know per submission which targets a list binds? Do some targets need their contents kept across frames (history buffers)? Those would need a copy out first, or would have to be excluded.

I would measure first: how many of the 59,671 textures any submission binds, per frame and over a minute. Then, if it makes sense, follow the split in CONTRIBUTING (counters, then the mechanism behind a switch, then turning it on). Is anyone in #2688 already on this?

AI use: drafted with Claude Code (Claude Opus 5.5) from my own run's xcl.log; numbers are copied from the log, not estimated.

<!-- greyfinch-sync:ivall/xcl:comment:7248541483 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7248541483). Originally posted by [phantrieu2006-blip](https://github.com/phantrieu2006-blip) on 2026-11-29T01:04:29Z. --- **A 6 GB data point, and a question before any code: reclaim target pages instead of releasing resources?** **Setup:** RTX 3060 Laptop 6 GB (driver 621.01, budget ~5.2 GB), Ryzen 9 5900HS, 32 GB RAM, Windows 11 26200. `main` `7db2f391`, release. `XCL_DEVICE_TYPE=lockhart XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=600`, and `XCL_PREPARE=0`: startup preparation was stopped at 23,815 / 26,503 records after 2 h 40 min (the last ~2,700 took ~5 records a minute here). Local counters only. **What the activity log shows** (MB, "memory by owner"): | t | video memory / budget | target pages | sparse tiles | sampled textures | |---|---|---|---|---| | 30–90 s (menus, loading art) | ~4,600 / ~5,000 | ~1,900 | ~1,500 | 173 | | 120 s | 5,595 / 5,123 | 2,899 | 1,665 | 175 | | 151 s | 10,352 / 5,192 | 6,012 | 2,971 | 353 | | 181 s | 12,126 / 4,887 | 7,213 | 3,030 | 536 | | 211–600 s | ~12,300 / ~5,180, flat | 7,275, flat | ~2,840 | 579 | `target pages by owner` from 211 s to the end: 59,671 textures with all their pages hold 13,475 MB; 7,275 MB of pages in all, **0 MB idle**. The last presented frame is the loading art at about 150 s; 2,940 frames in 600 s. 156 waits for graphics pipelines being built, the longest 93,282 ms. Those waits come from the skipped preparation. The 7 GB over the budget is the part I am asking about. So on this card, the growth this issue describes is ~7.3 GB of target pages over a ~5.2 GB budget, while sampled textures stay under 0.6 GB. **Question.** Releasing the textures led to MMU faults above, because views still point at them. Would it be acceptable to keep every resource and only take pages away from cold ones? - Unmap the tiles of targets that no submission has bound for N frames (`UpdateTileMappings` to NULL). With Tiled Resources Tier 3, reads of unmapped tiles return 0 and writes are dropped, so stale views read zeros instead of faulting. - Map the tiles again before a submission that binds the target. - Open questions: does XCL know per submission which targets a list binds? Do some targets need their contents kept across frames (history buffers)? Those would need a copy out first, or would have to be excluded. I would measure first: how many of the 59,671 textures any submission binds, per frame and over a minute. Then, if it makes sense, follow the split in CONTRIBUTING (counters, then the mechanism behind a switch, then turning it on). Is anyone in #2688 already on this? *AI use: drafted with Claude Code (Claude Opus 5.5) from my own run's `xcl.log`; numbers are copied from the log, not estimated.*
phantrieu2006-blip commented 2026-11-29 17:09:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by phantrieu2006-blip on 2026-11-29T17:09:24Z.


6 GB data point, follow-up: #3395 and #1182 together on main (bc2cbb72)

Same machine and settings as my comment above: RTX 3060 Laptop 6 GB (driver 621.01), Ryzen 9 5900HS, 32 GB, Windows 11 26200, release build, XCL_DEVICE_TYPE=lockhart XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PREPARE=0 XCL_RUN_SECONDS=600.

Build. main at bc2cbb72, with #3395 (6a4c17fd) and #1182 (d165e208) merged locally. Both conflict with main today:

  • #3395: one hunk in bind.rs. I kept both the superseded-table note from main and the require_target_pages call.
  • #1182: seven hunks in vram.rs:
    • Target keeps texels, recycle and lazy_target from main, plus gpu_owned.
    • bind_range takes both evictable and phys.
    • remap_if_unmapped reads the target again under the lock (as in #1182), then cancels a held unmap (as in main).
    • The other bind callers (the recycle path and two tests) pass &[].

cargo test -p xcl --lib vram: 74 passed.

Results (XCL_LAZY_TARGETS=1 on the merged build):

main bc2cbb72 + #3395 + #1182
last present 209 s 328 s
frames shown 3,670 6,904
video memory at 120 s 8,230 MB 2,639 MB
video memory at the end 12,082 MB 11,125 MB
target pages at the end 7,237 MB 6,184 MB
budget Windows gives 4,920 MB 5,049 MB
  • Page sharing from #1182. At the end, 74,676 target textures held 15,124 MB if each texture's pages are counted, against 6,184 MB of real pages: about 2.4x.
  • Neither run reaches the world. Draws stay at loading-screen level, about 400 to 600 per 2 s. After 328 s presents stop again, with video memory at about 2.2x the budget.
  • What still seems needed. Neither PR bounds growth by the budget. On 6 GB cards, something like #2357 (or reclaiming cold target pages, as proposed above) still looks necessary. I can test a rebased #2357, or any branch, on this machine.

No logs attached; the numbers come from the activity and memory lines. AI-assisted (Claude).

<!-- greyfinch-sync:ivall/xcl:comment:7259467193 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7259467193). Originally posted by [phantrieu2006-blip](https://github.com/phantrieu2006-blip) on 2026-11-29T17:09:24Z. --- **6 GB data point, follow-up: #3395 and #1182 together on main (`bc2cbb72`)** Same machine and settings as my comment above: RTX 3060 Laptop 6 GB (driver 621.01), Ryzen 9 5900HS, 32 GB, Windows 11 26200, release build, `XCL_DEVICE_TYPE=lockhart XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PREPARE=0 XCL_RUN_SECONDS=600`. **Build.** `main` at `bc2cbb72`, with #3395 (`6a4c17fd`) and #1182 (`d165e208`) merged locally. Both conflict with `main` today: - #3395: one hunk in `bind.rs`. I kept both the superseded-table note from `main` and the `require_target_pages` call. - #1182: seven hunks in `vram.rs`: - `Target` keeps `texels`, `recycle` and `lazy_target` from `main`, plus `gpu_owned`. - `bind_range` takes both `evictable` and `phys`. - `remap_if_unmapped` reads the target again under the lock (as in #1182), then cancels a held unmap (as in `main`). - The other `bind` callers (the recycle path and two tests) pass `&[]`. `cargo test -p xcl --lib vram`: 74 passed. **Results** (`XCL_LAZY_TARGETS=1` on the merged build): | | `main` `bc2cbb72` | + #3395 + #1182 | |---|---|---| | last present | 209 s | 328 s | | frames shown | 3,670 | 6,904 | | video memory at 120 s | 8,230 MB | 2,639 MB | | video memory at the end | 12,082 MB | 11,125 MB | | target pages at the end | 7,237 MB | 6,184 MB | | budget Windows gives | 4,920 MB | 5,049 MB | - **Page sharing from #1182.** At the end, 74,676 target textures held 15,124 MB if each texture's pages are counted, against 6,184 MB of real pages: about 2.4x. - **Neither run reaches the world.** Draws stay at loading-screen level, about 400 to 600 per 2 s. After 328 s presents stop again, with video memory at about 2.2x the budget. - **What still seems needed.** Neither PR bounds growth by the budget. On 6 GB cards, something like #2357 (or reclaiming cold target pages, as proposed above) still looks necessary. I can test a rebased #2357, or any branch, on this machine. No logs attached; the numbers come from the activity and memory lines. AI-assisted (Claude).
phantrieu2006-blip commented 2026-11-29 18:50:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by phantrieu2006-blip on 2026-11-29T18:50:01Z.


6 GB data point, part 3: what a hard page cap does (local experiment, not a PR)

This builds on the #3395 + #1182 build in my comment above (main bc2cbb72, XCL_LAZY_TARGETS=1, XCL_PREPARE=0, 600 s runs, same machine). I wanted to know whether simply bounding the page pool gets a 6 GB card into the world, so I added a throwaway switch locally, XCL_TARGET_PAGES_CAP_MB:

  • Past the cap, alloc_pool_heap is refused while a placed texture binds.
  • The texture is still created, with no pages, instead of failing CreatePlacedResourceX.
  • A GPU-owned target past the cap is left unmapped at first use instead of poisoning the recording.
  • About 70 lines in vram.rs. I'm not proposing it; it only drops data.
run last present frames video memory at the end (budget ~5.0 GB)
main 209 s 3,670 12.1 GB
+ #3395 + #1182 328 s 6,904 11.1 GB
+ cap 1500 MB, GPU-owned targets only 408 s 9,495 10.9 GB
+ cap 1500 MB, every placed texture 147 s 2,665 6.4 GB
same + XCL_TWO_PASS_MB=1024 153 s 2,994 6.9 GB

What I take from it:

  • Most target pages are not GPU-owned targets. With the targets-only cap, the end of the run shows 72,748 textures over 5,952 MB of pages. Lazy targets were only 774 unmapped (1,354 MB deferred) and 164 mapped on use (448 MB). The bulk is textures the title fills.

  • Dropping those textures' pages breaks loading earlier.

    • With every placed texture capped, video memory stays near the budget, but presents stop at about 150 s.
    • In the 147 s run, the two-pass buffer limit, which comes from budget headroom and was 256 MiB, also skipped ExecuteIndirect and DispatchMesh at 146.5 s.
    • With XCL_TWO_PASS_MB=1024 nothing was skipped (590 MiB alive), and it still stopped at 153 s.
    • So the title needs those textures. A budget fix has to evict and bring back (as #2357's retry of incomplete textures does), not leave them empty.
  • Every stalled run, the plain ones included, ends the same way: presents and submits drop to 0, and then the log shows

    D3D12.X: Wait64BitValueX at 0x70417f... >= 0x... bridged to GPU queue.Wait (waiter=q4/ty2, prod=qNone/tySome(0); wait-before-signal, after_write64=false)
    

    The producer is sometimes qSome(1), sometimes qNone. So the hang is a queue waiting for a 64-bit value that is never written. On 6 GB the stall shows up when memory runs out, but I can't tell from here whether the memory shortage is the cause or only the trigger.

Logs not attached; I can run any branch or switch on this machine. AI-assisted (Claude).

<!-- greyfinch-sync:ivall/xcl:comment:7260794846 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2743#issuecomment-7260794846). Originally posted by [phantrieu2006-blip](https://github.com/phantrieu2006-blip) on 2026-11-29T18:50:01Z. --- **6 GB data point, part 3: what a hard page cap does (local experiment, not a PR)** This builds on the #3395 + #1182 build in my comment above (`main` `bc2cbb72`, `XCL_LAZY_TARGETS=1`, `XCL_PREPARE=0`, 600 s runs, same machine). I wanted to know whether simply bounding the page pool gets a 6 GB card into the world, so I added a throwaway switch locally, `XCL_TARGET_PAGES_CAP_MB`: - Past the cap, `alloc_pool_heap` is refused while a placed texture binds. - The texture is still created, with no pages, instead of failing `CreatePlacedResourceX`. - A GPU-owned target past the cap is left unmapped at first use instead of poisoning the recording. - About 70 lines in `vram.rs`. I'm not proposing it; it only drops data. | run | last present | frames | video memory at the end (budget ~5.0 GB) | |---|---|---|---| | `main` | 209 s | 3,670 | 12.1 GB | | + #3395 + #1182 | 328 s | 6,904 | 11.1 GB | | + cap 1500 MB, GPU-owned targets only | **408 s** | 9,495 | 10.9 GB | | + cap 1500 MB, every placed texture | 147 s | 2,665 | 6.4 GB | | same + `XCL_TWO_PASS_MB=1024` | 153 s | 2,994 | 6.9 GB | What I take from it: - **Most target pages are not GPU-owned targets.** With the targets-only cap, the end of the run shows 72,748 textures over 5,952 MB of pages. Lazy targets were only 774 unmapped (1,354 MB deferred) and 164 mapped on use (448 MB). The bulk is textures the title fills. - **Dropping those textures' pages breaks loading earlier.** - With every placed texture capped, video memory stays near the budget, but presents stop at about 150 s. - In the 147 s run, the two-pass buffer limit, which comes from budget headroom and was 256 MiB, also skipped `ExecuteIndirect` and `DispatchMesh` at 146.5 s. - With `XCL_TWO_PASS_MB=1024` nothing was skipped (590 MiB alive), and it still stopped at 153 s. - So the title needs those textures. A budget fix has to evict and bring back (as #2357's retry of incomplete textures does), not leave them empty. - **Every stalled run, the plain ones included, ends the same way:** presents and submits drop to 0, and then the log shows ``` D3D12.X: Wait64BitValueX at 0x70417f... >= 0x... bridged to GPU queue.Wait (waiter=q4/ty2, prod=qNone/tySome(0); wait-before-signal, after_write64=false) ``` The producer is sometimes `qSome(1)`, sometimes `qNone`. So the hang is a queue waiting for a 64-bit value that is never written. On 6 GB the stall shows up when memory runs out, but I can't tell from here whether the memory shortage is the cause or only the trigger. Logs not attached; I can run any branch or switch on this machine. AI-assisted (Claude).
Sign in to join this conversation.
No labels
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.

Reference
xcl-dev/xcl#2733
No description provided.