Land, shadow, xmem: coalesce copy-back landing batches and GPU alias page mappings #9

Open
github-bot wants to merge 1 commit from github-bot/gh-9 into main AGit
Owner

@⁠adib-cyber007 on GitHub · 2026-12-02 10:17 UTC · original
adib-cyber007:pr/8-copyback-landing-and-pagemap-coalesce → main · +1090 −136 · 5 files · 1 commits · open

Ports DoubleGhosty/cool_fox ddedaddb (ending3729, GPL-3.0) and 9df537aa (PR #190, GPL-3.0):

  • Copy-back landing coalescing (land.rs, shadow.rs, host.rs): Prepares CardLanding and BackLanding once per Shadow, pre-coalesces dirty/sent skip ranges, reuses thread-local scratch buffers (Notes, Batch, parts, addressed), scales worker job sizes, and coalesces contiguous differing 4 KiB page spans into fewer watch::landing calls. Directly targets the ~12 ms/frame landing: read-backs time in bench/nightlog.md.
  • GPU alias page-mapping coalescing (xmem.rs): Adds opt-in VICTORY_ALIAS_COALESCE=1 to coalesce consecutive single-page GPU alias mappings into shared host views while keeping VICTORY_MAP_HELD and the has_mapped fast path intact when unset.

Verification

  • All 10 land::tests (including batch_direct_coalesces_watch_landing_calls_and_matches_piece_by_piece and coalesce_guard_spans_merges_contiguous_pages_and_preserves_gaps), all xmem coalescing tests, and default + --features diagnostics builds passed with zero new warnings.
  • Live FPS / landing time needs measurement on your walk route.
**@⁠adib-cyber007** on GitHub · 2026-12-02 10:17 UTC · [original](https://github.com/ImTaneax/VIctory-RTX3050-4gb/pull/9) `adib-cyber007:pr/8-copyback-landing-and-pagemap-coalesce` → `main` · +1090 −136 · 5 files · 1 commits · open Ports `DoubleGhosty/cool_fox` `ddedaddb` (ending3729, GPL-3.0) and `9df537aa` (PR #190, GPL-3.0): - **Copy-back landing coalescing (`land.rs`, `shadow.rs`, `host.rs`):** Prepares `CardLanding` and `BackLanding` once per `Shadow`, pre-coalesces dirty/sent skip ranges, reuses thread-local scratch buffers (`Notes`, `Batch`, `parts`, `addressed`), scales worker job sizes, and coalesces contiguous differing 4 KiB page spans into fewer `watch::landing` calls. Directly targets the ~12 ms/frame `landing: read-backs` time in `bench/nightlog.md`. - **GPU alias page-mapping coalescing (`xmem.rs`):** Adds opt-in `VICTORY_ALIAS_COALESCE=1` to coalesce consecutive single-page GPU alias mappings into shared host views while keeping `VICTORY_MAP_HELD` and the `has_mapped` fast path intact when unset. ### Verification - All 10 `land::tests` (including `batch_direct_coalesces_watch_landing_calls_and_matches_piece_by_piece` and `coalesce_guard_spans_merges_contiguous_pages_and_preserves_gaps`), all `xmem` coalescing tests, and default + `--features diagnostics` builds passed with zero new warnings. - Live FPS / landing time needs measurement on your walk route.
Ports DoubleGhosty/cool_fox ddedaddb (ending3729, GPL-3.0) and 9df537aa (PR #190, GPL-3.0):
- land/shadow: prepares CardLanding & BackLanding once per Shadow, pre-coalesces dirty/sent skip ranges, reuses thread-local scratch buffers, scales worker jobs, and coalesces contiguous 4 KiB page spans into fewer watch::landing calls (all 10 land::tests pass).
- xmem: adds opt-in VICTORY_ALIAS_COALESCE=1 to coalesce consecutive GPU alias page mappings into shared host views while keeping VICTORY_MAP_HELD and has_mapped intact (all xmem coalescing tests pass).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 10:21:59 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/9/head:github-bot/gh-9'
git switch 'github-bot/gh-9'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-9'
git switch 'github-bot/gh-9'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-9'
git switch 'github-bot/gh-9'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-9'
git switch 'main'
git merge --squash 'github-bot/gh-9'
git switch 'main'
git merge --ff-only 'github-bot/gh-9'
git switch 'main'
git merge 'github-bot/gh-9'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.