README: document XCL_VRAM_KEEP_SPARE_POOLS #3799
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3799"
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 romeawayfromhome-rgb on 2026-12-03T17:27:59Z.
Documents
XCL_VRAM_KEEP_SPARE_POOLS, which is read incrates/xcl/src/hle/d3d12x/vram.rsbut was not mentioned in the README switches list.What is in it
README.md: add anXCL_VRAM_KEEP_SPARE_POOLSbullet to the "Switches for how a title runs" sub-list, after theXCL_WAIT_TIMEOUT_MSbullet.Tested
mainate99b0bd:keep_spare_pools()parses the value as ausizeand falls back to 1; empty-pool reclaim keeps up to that many completely empty pool heaps of each class warm, so0keeps none. In that tree the variable name appears only invram.rs; the README onmainandamd-devhas no mention of it, and PR/issue search found no duplicate PR.Regression run
Not tested
AI use
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-03T17:29:46Z.
Review of
b5c3c092(code reading only, not a merge-check; draft) · 3 nitsIn short: The PR documents
XCL_VRAM_KEEP_SPARE_POOLSin the README's switches list. What it says matches the code. The bullet is indented one level too deep, so it renders as a sub-item ofXCL_WAIT_TIMEOUT_MS, and it will conflict with #3794, which adds a bullet at the same spot.Nit
XCL_WAIT_TIMEOUT_MS. Use-and a 4-space continuation, like the bullets around it.reclaim_empty_heapscounts the kept heaps perheap_evictableclass (vram.rs~1869): one count for evictable pool heaps, one for the rest. "(evictable and not)" would tell a reader what the 1 counts.XCL_WAIT_TIMEOUT_MS, so whichever lands second has a one-line conflict.Checked and fine
keep_spare_pools(vram.rs~2071) trims and parses the value as ausize, and falls back to 1 when it is unset or not a number.0keeps none, as the bullet says.POOL_PAGES(1024) × 64 KiB = 64 MiB.sweep_and_reclaimfrees only completely empty heaps above the kept count, as the bullet says.Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.
Pull request closed