gpu/shadow: opt-in VEH lazy GPU-to-CPU copy-back (4/4 of #51) #59
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/PastiiJay--klbf-lab!59
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-59"
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?
@Vladimir-Human on GitHub · 2026-11-26 00:48 UTC · original
Vladimir-Human:perf/split-lazy-copyback-veh→beta· +3810 −66 · 3 files · 1 commits · openSplit 4/4 of #51 cleanly on top of
beta(78ad5711, independent of #56, #57, and #58).Summary of Changes (
host.rs,watch.rs,shadow.rs)VICTORY_LAZY_COPYBACK=1, default OFF):PAGE_NOACCESS) across GPU-to-GPU workloads so steady-state frames touch zero PCIe readback bytes, flushing individual pages on demand insidewatch's vectored exception handler (on_fault) on first CPU read/write.MEM_MAPPEDphysical views (atomic dual-view flush before restoringPAGE_READWRITE) andMEM_PRIVATE | MEM_WRITE_WATCHbuffers (serialized viaFlushWait), leaving unaligned/pinned/fence ranges eager.title_memory_writtenpartial-page complements, captures idempotentFlushedBaselinefor in-flight relay/merge paths (card_merge_relay,relay_merge,stale_under_writes,merge_under_writes), and holds scopedlazy_flush_and_hold/Remappingbarriers across remaps and host copies.Level 0: watch/Shadow -> Level 1: LAZY_TABLE -> Level 2: LAZY_GPU -> Level 3: FlushWait).shadow::lazy_copyback_tests::lazy_copyback_*unit and live-GPU coherence/stress/F1-F5 regression tests (scoped withlazy_opted_intest isolation so parallel non-lazy tests never inherit deferred state) +#[ignore] bench_lazy_copyback.Verification (
VICTORY_D3D12_DEBUG=1)cargo test -p victory-gpu(run 1 & run 2 parallel, plus serial--test-threads=1) -> all passedcargo test -p victory-gpu --all-features-> passedcargo run -p xtask -- policy --staged->asset policy: 3 files ok(host.rs= 367,393 B,watch.rs= 81,104 B,shadow.rs= 345,266 B)Related: #51, #56, #57, #58
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.