Activity: the local video memory budget, and a warning within XCL_VRAM_HEADROOM_MB of it #1505
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1515"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by ghost on 2026-11-24T17:10:10Z.
The activity memory line showed local video memory in use but not the budget DXGI gives the process, so going past it (the driver then moves resources to system memory, and frames slow down) did not show. The line now carries
(budget N MB), and a warning is logged, at most once a minute, when use comes withinXCL_VRAM_HEADROOM_MB(default 1024) of the budget. Related: #646.What is in it
crates/xcl/src/host.rs: the budget in the memory line, the warningcrates/xcl/src/hle/d3d12x/real.rs:video_memoryalso returns the local budget (DXGI_QUERY_VIDEO_MEMORY_INFO::Budget)Tested
Regression run
main:
PR (this PR's head commit; the title is run through a folder named RetailTitle):
Not tested
AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by gut0to on 2026-11-24T18:52:19Z.
Review: COMMENTED
Thanks for including the paired smoke runs. CONTRIBUTING.md also requires the full workspace GPU suite and its pass/fail/ignored plus skipped-test details. The Tested section has no workspace-suite result for this head; please add it before merge. AI-assisted review; I checked the report against the guide.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T18:53:53Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by rrrarrra9 on 2026-11-24T19:31:12Z.
A second data point for the budget field from a Windows GTX 1650 (4 GB). With local logging at e1c920e6c5b759e06ea2d9e26c6b78fdd0cfab58 (based on
b7aa9f3), the DXGI local budget was 3,344 MiB while sampled local usage reached 13,876 MiB shortly before 0x887a0005. The same sample showed 4,969 MiB non-local usage against a 15,289 MiB non-local budget. Logging both segment budgets helped compare the runs in #1702, which moved texture heaps to system memory.Not tested This PR head and its warning threshold. These measurements come from the independent local logging build.
AI use OpenAI Codex with GPT-6.2-Sol summarized the local logs.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:58:38Z.
Triage (#1607) – head
285228bMain commit
e2716790(xcl run: say when the process is past its video memory budget) already makes real::video_memory return (local, non-local, budget), adds the budget to the activity memory line and logs a warning every 2 s while local use is over it (real::over_video_budget, host.rs). The only part not on main is the early warning within XCL_VRAM_HEADROOM_MB of the budget; if that is still wanted it would be a small follow-up on top of main's code.Recommendation: close (superseded by main commit
e2716790).AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Pull request closed