feat(memory): track canonical section generations #408
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by krofty on 2026-11-27T21:58:49Z.
The 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