Compile-memory estimator learns from unavailable PrivateUsage on Proton #2408
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by ArturoWolff on 2026-11-29T12:49:01Z.
Expected / actual behaviour
On experimental Proton, the production compile-memory estimator can train itself on a private-memory field that Wine did not return. This is a separate correctness issue from the memory-pressure/wait regressions: the absence of a measurement must not count as a measured zero-byte compile.
Tested base:
829188e969ffd2907e5867c5d9aca29bd91cb1b6, Windows MSVC x64 target built with the pinned Rust 1.98.1 toolchain using locked dependencies. Runtime: GE-Proton 11-14 on Garuda Linux (Ryzen 5 5600, RTX 4060 / 8 GB, 16 GB RAM, NVIDIA 620.73.04). The ABI and estimator tests are CPU-only and do not require a title or GPU. Windows remains the project's primary platform; this is a Proton compatibility observation, not a claim of a native Windows regression.Credit ghptc's merged #1182 for identifying the short counter response in the memory example. I reproduced it independently at the production consumer, as discussed in #2148. #1182 corrected the example, not the compile estimator.
Reproduction and root cause
On this runtime, five self-process API observations all returned success for an 80-byte
PROCESS_MEMORY_COUNTERS_EXrequest, but returnedcb=72and left thePrivateUsagesentinel untouched. A separate owned 32 MiB allocation control confirmed that the basicPagefileUsagecounter did not increase on commit, increased by 32 MiB on touch, and decreased by 32 MiB on release. I would not substitute it for private commit based on this observation.At the tested base,
process_memorytests only the success flag before consuming the zero-initialised trailing field. The interval accounting records the resulting zero delta; the estimator trusts it after four samples.A test-only regression exercised the actual reader, State and Estimator, with synthetic admission figures and four CPU-only start/sample/finish cycles. All 12 adjacent ABI observations confirmed the same unavailable field. The original reader recorded four zero-cost intervals. The assertion expecting the 1 GiB first guess to remain failed. A separate candidate checks success, returned width and the written fields, represents unavailable observations explicitly, and excludes incomplete measurement intervals without changing admission floors or the estimator's arithmetic.
The raw counter control passed in both revisions. The corrected Windows-target compilemem suite passed 21 tests under GE-Proton (0 failed, 0 ignored); coverage includes genuine zero, truncated/unwritten fields, missing start/sample/finish observations, overlap accounting and permit retirement. A native Windows run and full repository CI are still outstanding.
Real renderer corroboration, not a speedup claim
I also ran a separate normal release-build comparison with the same ordinary starting profile, empty application/driver caches and all 54 effective non-menu settings matched (Series X, 1080-to-1440 mode, DLSS/FG off, RT requested, full write-back and no additional pass exclusions). The actual output remained 2560x1440. The candidate changes only
compilemem.rs.Both runs reached an incorrectly rendered opening cinematic, not a controllable world. Different starting RAM headroom, elapsed time and frame workloads prevent a causal throughput or FPS claim. Both retained an independent 128 MiB host-memory stop; neither hit it or logged a kernel OOM/GPU fault. The correction has not been deployed in our default build.
This is also distinct from #2392's system commit-growth issue. All 7 stock-cold, 7 stock-warm and 8 corrected-cold logged deferral records named the physical-memory soft floor, with at least 30,037 MiB of commit left in those samples. These are sampled/capped log records, not a count of all individual refusals. No guard relaxation is proposed.
Working on a correction
Yes. Preserve measured zero as valid, keep unavailable distinct, and retain the normal permit retirement/retry/floor behaviour. The focused correction and actual cold test are complete; broader test precision and native Windows/CI qualification are still open. Reporting the specific production defect here so that it can be tracked separately from the RT preparation and wait-loop work. No raw title logs, game bytes, or screenshots are included.
Log excerpts (CPU-only reproducer and renderer corroboration)
The primary reproducer is a standalone test of the production reader/estimator. Consequently it generates a test-console log, not title play/crash logs. Relevant verbatim lines from the actual test consoles:
For the separate actual renderer comparison, these are the last periodic observations from each run, excerpted before the trailing per-key list (omitted to keep only aggregate diagnostics):
These are not simultaneous observations or matched workload rates. The working-set column is not private commit. The reproducible defect is the estimator assertion above, not a claim that all title failures have the same cause. Full raw title logs and asset-derived material remain private.
AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-29T12:49:11Z.
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)