GPU: add optional memory category log #69

Merged
Adika713 merged 1 commit from upstream-pr/69 into main 2026-11-26 08:17:50 +00:00
Adika713 commented 2026-11-26 01:33:41 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by Adika713 on 2026-11-26T01:33:41Z.


Adds an off-by-default VICTORY_MEMORY_CATEGORIES=1 diagnostics line so memory reductions can be judged against working set and commit headroom, not just private bytes. No pagefile change and no runtime behavior change when the switch is off.

What is in it

  • One periodic memory by category line in victory-gpu, using counters that already exist.
  • Reports working set, private total, free physical RAM, commit headroom, title windows, texture copies and pools, descriptor views, shader/pipeline caches, host-list scratch, Rust heap and made-so-far buffers.
  • The line says explicitly that values are approximate, overlapping and not a sum. Cumulative counters are labeled or described as made-so-far.

Tested

  • Build: cargo build --locked --profile diag -p victory --features diagnostics, exit 0.
  • Targeted test: cargo test --locked -p victory-gpu --features diagnostics --lib copystat::own_tests::the_category_line_formats_megabytes -- --exact --test-threads=1: 1 passed / 0 failed / 408 filtered.
  • Full diagnostics lib: 374 passed / 1 failed / 34 ignored. The one failure is the pre-existing descriptor::host::tests::views_are_made_beside_the_heap_and_copied_in; it also fails on base 0a43566.
  • Earlier default workspace runs on branch and base both exited 101 with identical counts: victory-gpu 325 passed / 1 failed / 34 ignored; all other targets passed.
  • One user-approved local run on RX 6950 XT / Ryzen 5 3600 / 32 GB, Series S 1920×1080, 22 category samples: working set median 3857 MB, private median 7500 MB, commit headroom median 3962 MB. All 22 one-second lines stayed at 30.0 fps / 33.3 ms. This is provisional and is not an RX 7900 XTX result.

Not tested

  • No target RX 7900 XTX / i9-12900K / 64 GB run.
  • No per-frame frame-time capture, so median/p95/p99 and longest spike are not reported.
  • Visual output was not validated; the local window stayed black in the user's view.
  • No memory reduction is included.

AI use: OpenCode, model Big Pickle.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6617481313 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/69). Originally posted by [Adika713](https://github.com/Adika713) on 2026-11-26T01:33:41Z. --- Adds an off-by-default `VICTORY_MEMORY_CATEGORIES=1` diagnostics line so memory reductions can be judged against working set and commit headroom, not just private bytes. No pagefile change and no runtime behavior change when the switch is off. **What is in it** - One periodic `memory by category` line in `victory-gpu`, using counters that already exist. - Reports working set, private total, free physical RAM, commit headroom, title windows, texture copies and pools, descriptor views, shader/pipeline caches, host-list scratch, Rust heap and made-so-far buffers. - The line says explicitly that values are approximate, overlapping and not a sum. Cumulative counters are labeled or described as made-so-far. **Tested** - Build: `cargo build --locked --profile diag -p victory --features diagnostics`, exit 0. - Targeted test: `cargo test --locked -p victory-gpu --features diagnostics --lib copystat::own_tests::the_category_line_formats_megabytes -- --exact --test-threads=1`: 1 passed / 0 failed / 408 filtered. - Full diagnostics lib: 374 passed / 1 failed / 34 ignored. The one failure is the pre-existing `descriptor::host::tests::views_are_made_beside_the_heap_and_copied_in`; it also fails on base `0a43566`. - Earlier default workspace runs on branch and base both exited 101 with identical counts: `victory-gpu` 325 passed / 1 failed / 34 ignored; all other targets passed. - One user-approved local run on RX 6950 XT / Ryzen 5 3600 / 32 GB, Series S 1920×1080, 22 category samples: working set median 3857 MB, private median 7500 MB, commit headroom median 3962 MB. All 22 one-second lines stayed at 30.0 fps / 33.3 ms. This is provisional and is not an RX 7900 XTX result. **Not tested** - No target RX 7900 XTX / i9-12900K / 64 GB run. - No per-frame frame-time capture, so median/p95/p99 and longest spike are not reported. - Visual output was not validated; the local window stayed black in the user's view. - No memory reduction is included. AI use: OpenCode, model Big Pickle.
avatarmanz commented 2026-11-26 07:55:19 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by avatarmanz on 2026-11-26T07:55:19Z.


Merged into main in the next push (tests pass); thanks.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7185982021 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/69#issuecomment-7185982021). Originally posted by [avatarmanz](https://github.com/avatarmanz) on 2026-11-26T07:55:19Z. --- Merged into main in the next push (tests pass); thanks.
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
avatarmanz/VIctory-7900XTX!69
No description provided.