Process memory line: console section views no longer count as named private bytes #4205

Closed
github-bot wants to merge 1 commit from github-bot/gh-4204 into main AGit
Owner

@⁠AirKyzzZ on GitHub · 2026-11-30 17:22 UTC · original
AirKyzzZ:fix/procmem-named-count → main · +1 −1 · 1 files · 1 commits · closed without merging

The process memory: line computes "named" as census.private[0] + census.mapped[0] + ours and "unnamed" as PagefileUsage - named. The console section views (mapped[0]) are views of the title's pagefile sections, so they are not in PagefileUsage at all, and adding them hid that much of the unaccounted private memory.

On a 16 GB / RTX 2060 rig at world load the line read "named 15638 MB, unnamed 1611 MB" with 7862 MB of console views, which looks like almost everything is accounted for. Without the views it is about 7.8 GB named and 9.5 GB unnamed, which is what actually needs explaining on small-RAM PCs (the process heaps held 1.7 GB in the same line, so most of it is neither ours nor the driver's heaps).

One-line change in procmem.rs, the rest of the line is untouched.

**@⁠AirKyzzZ** on GitHub · 2026-11-30 17:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4204) `AirKyzzZ:fix/procmem-named-count` → `main` · +1 −1 · 1 files · 1 commits · closed without merging The `process memory:` line computes "named" as `census.private[0] + census.mapped[0] + ours` and "unnamed" as `PagefileUsage - named`. The console section views (`mapped[0]`) are views of the title's pagefile sections, so they are not in `PagefileUsage` at all, and adding them hid that much of the unaccounted private memory. On a 16 GB / RTX 2060 rig at world load the line read "named 15638 MB, unnamed 1611 MB" with 7862 MB of console views, which looks like almost everything is accounted for. Without the views it is about 7.8 GB named and 9.5 GB unnamed, which is what actually needs explaining on small-RAM PCs (the process heaps held 1.7 GB in the same line, so most of it is neither ours nor the driver's heaps). One-line change in `procmem.rs`, the rest of the line is untouched.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 18:08:38 +00:00
github-bot closed this pull request 2026-12-01 18:50:29 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:45 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4204#issuecomment-7321491641) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4205
No description provided.