Repository navigation
Conversation
A title that resets many allocators while lists hold their recordings made a PC allocator for each and kept it: in a retail title's world 315 title allocators had 327 made, of which about 290 were free, and the process's non-local video memory grew with them, 1.3 to 3 GB in 40 s. A title allocator with no free one of its own now takes one of the same type that another put aside (never that one's own allocator, which goes with the title's Release). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WStEFektfHt5AEbK6Wupac
|
Independent RTX 4060 (8 GB) / Windows 11 verification of PR #2725 at Setup
Targeted RTX 4060 release unit tests (
|
|
Independent AMD RDNA4 (native wave64) verification of exact PR head Tested
(Compare against Not tested
AI use
|
A retail world run measured hundreds of free PC allocators stranded in separate title-allocator namespaces while non-local memory kept growing. Let an allocator without an idle spare take a same-type spare from another namespace before creating another native allocator. Fence probes run outside the pool lock. Exact backing snapshots and donor reset tokens reject concurrent use or an unlocked native Reset, then the candidate is transferred and claimed through the requester's normal reset generation. Adapted from PR xcl-dev#2725. The Windows GNU cross-target library/test check passes; native Windows tests and smoke were unavailable. Assisted-by: Codex (GPT-5.6-sol)
A retail world run measured hundreds of free PC allocators stranded in separate title-allocator namespaces while non-local memory kept growing. Let an allocator without an idle spare take a same-type spare from another namespace before creating another native allocator. Fence probes run outside the pool lock. Exact backing snapshots and donor reset tokens reject concurrent use or an unlocked native Reset, then the candidate is transferred and claimed through the requester's normal reset generation. Adapted from PR xcl-dev#2725. The Windows GNU cross-target library/test check passes; native Windows tests and smoke were unavailable. Assisted-by: Codex (GPT-5.6-sol)
|
Windows / NVIDIA results for Regression run (default settings, 600 s)
This PR,
Tested
Not tested: how often a spare comes from another title allocator (no log line for it); AMD / wave64. AI use: Claude Code (Claude Opus 5.5) built the commit, ran the suite and the runs on my machine, read the logs and wrote this. |
Runs 4-6 on an RTX 5080 grew non-local video memory to 45 GB within a minute of the first intro frames and ended in E_OUTOFMEMORY and a device removal; run 7 with XCL_ALLOC_SWAP=0 stayed near 16 GB. The entry records the cause and the user's decision to adopt xcl-dev#2725, xcl-dev#2549, xcl-dev#2581 and xcl-dev#2707 through the gate. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018RbZY1Ag73eDeCUZHpW3is
Commit: 1a3b698 Reviewer: Claude Code (Claude Opus 5.5), Opus worker, full read (findings) Review findings, none stopping the merge: most new unit tests drive the test-only copy title_reset_in, not the rewritten title_reset; xcl-dev#2725 must be ported onto the new title_reset instead of merged; reset_list can return E_FAIL after 5 s on a resetting backing. Conflict in crates/xcl/src/hle/d3d12x/alloc_pool.rs (reset_list): our side has the telemetry_list_reset call, the PR replaces the bookkeeping. The PR's bookkeeping is taken and the telemetry call is kept after every successful native Reset, also on the PR's new early-return path.
|
Test report: in the world on an RTX 4080 16 GB. No harm; no measurable change on this card. Tested
Not tested
AI use: Claude Code (Claude Fable 5.2) ran this on the owner's machine and wrote the report. |
|
@jennydeth @throny thank you both. Your two reports agree, and they point at a gap in how I measured this. The saving in the description (327 → 282 PC allocators made, non-local memory flat from 160 s) was measured on our local tree, which also has #1453. As the description says under Not tested, without #1453 the retired split segments keep their spares, so few of them are free for another title allocator to take. That fits what you both saw on The PR's log line also can't show whether a spare came from another allocator, so a run can't tell a take-over from a fresh allocator. I'm setting the PR back to draft until I have:
If it turns out to matter only with #1453, I'll stack it on #1453 and say so at the top. AI use: Claude Code (Claude Opus 5.5) wrote this. |
When the title resets a command allocator while lists still hold recordings on its PC allocator,
alloc_poolputs that one aside and goes on with another: one this title allocator put aside earlier that is free again, or a new one. A title that resets many allocators so makes a PC allocator for almost every one of them and keeps it, although others lie free. This lets a title allocator take a free spare of the same list type that another one put aside.Part of #2688 (workstream 6: memory that grows in the world). Related: #2138 drops free spares beyond two per title allocator, and #2707 resets idle ones so their memory comes back. Both deal with spares already made; this makes fewer of them. #2707 also changes
title_reset_in, so whichever merges second needs a rebase.What is in it
crates/xcl/src/hle/d3d12x/alloc_pool.rs:title_reset_inlooks for a free spare of the same type among the other title allocators' when it has none of its own, and takes it over (it then goes with this title allocator'sforget). Never another title allocator's own allocator: that one goes with the title's Release. Test:a_free_spare_another_title_allocator_put_aside_is_taken(also: not one in use, not one of another type).Tested
cargo test --workspace --no-fail-fast -- --test-threads=4onad9172c0: 1436 passed, 0 failed, 47 ignored; 25SKIPPEDlines (21 no wave64, 3 f16 forms refused, 1 no heap windows).main+ D3D12.X: unpin retired split segments from alloc_pool and guard title_list::release ABA #1453 + other open PRs,XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1), with a temporary count of the spares: before, at 162 s, 315 title allocators had 327 PC allocators made, 287 of them free, and the process's non-local video memory grew 1.3 → 3.0 GB in 40 s. With this, 282 made at 191 s (flat after 160 s), non-local memory flat at about 2.6 GB from 160 s on, and the run went from 169 s to 194 s before the memory guard stopped it.Regression run
main:
this PR:
Not tested
AI use
🤖 Generated with Claude Code
https://claude.ai/code/session_01WStEFektfHt5AEbK6Wupac