README: document XCL_VRAM_KEEP_SPARE_POOLS #3800

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

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


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:5631735272 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3800). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-12-03T17:38:06Z. --- 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:40:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-03T17:40:36Z.


Review of cc5cdafc (code reading only, not a merge-check; draft) · 3 nits

In short: This replaces the closed #3799, with the same text and the indentation changed. The content still matches the code. The bullet is still one level too deep: it renders as a sub-item of XCL_WAIT_TIMEOUT_MS. Two small points from #3799's review still apply.

Nit

  1. The bullet is still nested under the previous switch. In this list the text of each item starts at column 4. A - at 4 spaces therefore opens a sub-list inside the XCL_WAIT_TIMEOUT_MS item, and the second line at 4 spaces stays inside it. The other switches use - (2 spaces), with continuation lines at 4. Use the same here.
  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): evictable pool heaps and 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.
  • A pool heap is 1024 × 64 KiB = 64 MiB, and only completely empty heaps above the kept count are freed (sweep_and_reclaim).
  • 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:7386887058 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3800#issuecomment-7386887058). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-03T17:40:36Z. --- **Review** of `cc5cdafc` (code reading only, not a merge-check; draft) · 3 nits **In short:** This replaces the closed #3799, with the same text and the indentation changed. The content still matches the code. The bullet is still one level too deep: it renders as a sub-item of `XCL_WAIT_TIMEOUT_MS`. Two small points from #3799's review still apply. #### Nit 1. **The bullet is still nested under the previous switch.** In this list the text of each item starts at column 4. A `-` at 4 spaces therefore opens a sub-list inside the `XCL_WAIT_TIMEOUT_MS` item, and the second line at 4 spaces stays inside it. The other switches use ` - ` (2 spaces), with continuation lines at 4. Use the same here. 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): evictable pool heaps and 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. - A pool heap is 1024 × 64 KiB = 64 MiB, and only completely empty heaps above the kept count are freed (`sweep_and_reclaim`). - 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!3800
No description provided.