feat(memory): track canonical section generations #408
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!408
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-408"
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?
@krofty on GitHub · 2026-11-27 21:58 UTC · original
feat/377-section-identity→main· +2707 −83 · 6 files · 1 commits · closed without mergingThe in-place census identifies physical pages by a reusable section handle and offset. That is insufficient for rejecting stale mappings, reused physical allocations or delayed write observations. GPU ownership needs a canonical identity before it can safely omit publication.
Add backing tokens, physical allocation incarnations, logical ranges, mapping epochs and observed byte-range versions. The existing alias census and identity bindings share one registry lock. Native sections retain one token for their lifetime; mapping callbacks carry it, stale explicit tokens are rejected before changing the census, and physical retirement/rearrangement runs inside mapping exclusion. Temporary physical I/O windows retain the actual section identity through their final write notification.
Write guards use a bounded atomic fault journal; mapping changes retain tombstones and fall back conservatively on incomplete observations. Native kernel writes report both beginning and completion. This reuses the identity core from our earlier shared-storage work without importing its retention/capture paths.
Refs #377 and Snaacky/ztrx#249. Affected files are storage.rs, its native CPU fixture, inplace.rs, watch.rs, lib.rs and xmem.rs.
Validation:
Diagnostics build300 and fixed-world off/on runs321/322 passed closure with no reported errors. Last three host intervals were47.6/48.6/47.6ms off and47.0/46.3/48.3ms on; expected geometry is present in both pictures. This establishes initial compatibility, not an FPS gain or completed-frame distribution.
This is a foundation stage. tracking_complete remains false. No eager GPU readback, comparison or legacy refresh is skipped; GPU publication origin, full I/O leases, before-exposure mapping admission and GPU ownership are dependent work. No30FPS qualification is claimed. Draft PR remains open and unmerged.
Pull request closed