Add opt-in copy-stale page-walk counters #4803
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4803
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4802"
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?
@john-9474 on GitHub · 2026-12-01 09:19 UTC · original
john-9474:codex/copy-stale-work-profile→main· +406 −0 · 4 files · 1 commits · closed without mergingWhat it changes
Refresh/check request spans and reported copy results do not show how much work reaches the original
Shadow::copy_stalepage loop. Add diagnostics-only, default-offVICTORY_COPY_STALE_PROFILE=1counters to measure that denominator before choosing an optimisation.The existing five-second report gains 13 cumulative fields: completed walks, queried pages, supplied/consumed journal entries, planned stale pages/bytes, slot-eligible walks/pages/stale pages, potential newer-journal epoch reads, and unknown/memo-only/journal-contract fallbacks. A stack capture follows the original decisions and updates one of 16 fixed counter banks after planning; it adds no per-page atomics or lifetime registry. The original bypasses, planner, copies, stamps, guards and fences are preserved.
Fields are independent snapshots. Saturation is explicit; exact deltas must be discarded once saturated. Planned bytes precede sub-page filtering and copying. Newer-journal counts are potential epoch reads among eligible pages, not journal sparsity, physical traffic, elapsed time or time saved. This PR changes no copying policy.
In a separate private release-equivalent integration run using the same observer and byte-identical original
copy_stalebody, the supplied journal was dense even though the newer-epoch subset was small. That rejected a naive sparse-journal premise. This is diagnostic usefulness, not clean-PR application validation or a performance/zero-overhead claim. No runtime instrumentation parent or analysis script is included here.How it was tested
Clean four-file patch on
5fabb46eaf6ed8771321787f8871051abde69b9b; Rust 1.98.1,--locked, two jobs. Cargo.lock is unchanged.victory-gpu --all-targetschecks passed; release diagnostics libtest compiled with opt3/LTO-off/16 codegen units for correctness testing.161513f975ea44a9ce262524748bad08bdbab3022fa0f17884a22a56fe894dfe) passed three fresh-process owned mapped-Shadow cases, observer OFF/ON/OFF: 786,432 bytes checked each, 2,359,296 total. Actual Windows write-watch drove four original walks; checks covered untouched partial borders, unchanged ranges, a real changed byte and published page stamps. All native children and outer guards exited 0.font.rs213/260,menu.rs667 andpanel.rs602/668. Those three files match clean main byte-for-byte and the existing clean-main CI findings. No authored diagnostic was reported; no lint allowance or unrelated UI repair was added. This is not a full CI pass.cargo run --locked --quiet --jobs 2 -p xtask -- policy --stagedpassed for exactly four files; diff check passed. Full workspace tests were not run.The two rig/process-specific tests remain ignored by ordinary CI. Their ignore reasons document the fresh-process and environment requirements.
Checked for overlap
copy_stale, page walks, counters, profiling, journal census and the new field/flag names. This was a bounded search, not an exhaustive repository-wide absence claim.@trustno1-coder on GitHub · 2026-12-01 18:31 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.
Pull request closed