README: document XCL_VRAM_KEEP_SPARE_POOLS #3799

Closed
romeawayfromhome-rgb wants to merge 1 commit from upstream-pr/3799 into main
romeawayfromhome-rgb commented 2026-12-03 17:27:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-12-03T17:27:59Z.


Documents XCL_VRAM_KEEP_SPARE_POOLS, which is read in crates/xcl/src/hle/d3d12x/vram.rs but was not mentioned in the README switches list.

  • This change does not use code, signatures or documentation from leaked or NDA-only SDKs.

What is in it

  • README.md: add an XCL_VRAM_KEEP_SPARE_POOLS bullet to the "Switches for how a title runs" sub-list, after the XCL_WAIT_TIMEOUT_MS bullet.

Tested

  • Not built or tested: this change was prepared on a Linux VM, and XCL builds/runs on Windows only.
  • Verified against main at e99b0bd: keep_spare_pools() parses the value as a usize and falls back to 1; empty-pool reclaim keeps up to that many completely empty pool heaps of each class warm, so 0 keeps none. In that tree the variable name appears only in vram.rs; the README on main and amd-dev has no mention of it, and PR/issue search found no duplicate PR.

Regression run

  • Not applicable: README-only change; no runtime code changed.

Not tested

  • Windows build, GPU test suite, and title runs were not run for this docs-only change.

AI use

  • Muse Spark via Muse found the undocumented variable, drafted the README bullet, and wrote this description. No code was changed.
<!-- greyfinch-sync:ivall/xcl:issue:5631577019 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3799). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-12-03T17:27:59Z. --- Documents `XCL_VRAM_KEEP_SPARE_POOLS`, which is read in `crates/xcl/src/hle/d3d12x/vram.rs` but was not mentioned in the README switches list. - [x] This change does not use code, signatures or documentation from leaked or NDA-only SDKs. **What is in it** - `README.md`: add an `XCL_VRAM_KEEP_SPARE_POOLS` bullet to the "Switches for how a title runs" sub-list, after the `XCL_WAIT_TIMEOUT_MS` bullet. **Tested** - Not built or tested: this change was prepared on a Linux VM, and XCL builds/runs on Windows only. - Verified against `main` at `e99b0bd`: `keep_spare_pools()` parses the value as a `usize` and falls back to 1; empty-pool reclaim keeps up to that many completely empty pool heaps of each class warm, so `0` keeps none. In that tree the variable name appears only in `vram.rs`; the README on `main` and `amd-dev` has no mention of it, and PR/issue search found no duplicate PR. **Regression run** - Not applicable: README-only change; no runtime code changed. **Not tested** - Windows build, GPU test suite, and title runs were not run for this docs-only change. **AI use** - Muse Spark via Muse found the undocumented variable, drafted the README bullet, and wrote this description. No code was changed.
Foniass commented 2026-12-03 17:29:46 +00:00 (Migrated from github.com)

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 nits

In short: The PR documents XCL_VRAM_KEEP_SPARE_POOLS in 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 of XCL_WAIT_TIMEOUT_MS, and it will conflict with #3794, which adds a bullet at the same spot.

Nit

  1. The bullet is nested under the previous switch. It starts with 6 spaces, and its second line with 12. The other switches in this list start with 2, and their next lines with 4. So Markdown renders it as a sub-item of XCL_WAIT_TIMEOUT_MS. Use - and a 4-space continuation, like the bullets around it.
  2. "of each class" does not say what the classes are. reclaim_empty_heaps counts the kept heaps per heap_evictable class (vram.rs ~1869): one count for evictable pool heaps, one for the rest. "(evictable and not)" would tell a reader what the 1 counts.
  3. Same insertion point as #3794. Both add a bullet right after 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 a usize, and falls back to 1 when it is unset or not a number. 0 keeps none, as the bullet says.
  • A pool heap is POOL_PAGES (1024) × 64 KiB = 64 MiB. sweep_and_reclaim frees only completely empty heaps above the kept count, as the bullet says.
  • The only change is two lines of README.

Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7386602458 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3799#issuecomment-7386602458). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-03T17:29:46Z. --- **Review** of `b5c3c092` (code reading only, not a merge-check; draft) · 3 nits **In short:** The PR documents `XCL_VRAM_KEEP_SPARE_POOLS` in 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 of `XCL_WAIT_TIMEOUT_MS`, and it will conflict with #3794, which adds a bullet at the same spot. #### Nit 1. **The bullet is nested under the previous switch.** It starts with 6 spaces, and its second line with 12. The other switches in this list start with 2, and their next lines with 4. So Markdown renders it as a sub-item of `XCL_WAIT_TIMEOUT_MS`. Use ` - ` and a 4-space continuation, like the bullets around it. 2. **"of each class" does not say what the classes are.** `reclaim_empty_heaps` counts the kept heaps per `heap_evictable` class (`vram.rs` ~1869): one count for evictable pool heaps, one for the rest. "(evictable and not)" would tell a reader what the 1 counts. 3. **Same insertion point as #3794.** Both add a bullet right after `XCL_WAIT_TIMEOUT_MS`, so whichever lands second has a one-line conflict. <details><summary>Checked and fine</summary> - `keep_spare_pools` (`vram.rs` ~2071) trims and parses the value as a `usize`, and falls back to 1 when it is unset or not a number. `0` keeps none, as the bullet says. - A pool heap is `POOL_PAGES` (1024) × 64 KiB = 64 MiB. `sweep_and_reclaim` frees only completely empty heaps above the kept count, as the bullet says. - The only change is two lines of README. </details> <sub>Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.</sub>

Pull request closed

Sign in to join this conversation.
No reviewers
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!3799
No description provided.