vkback: count views over physically shared target pages #147
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/vktory6--VKtory!147
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-147"
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?
@TheRifai on GitHub · 2026-12-01 21:45 UTC · original
TheRifai:alias-cross-read→main· +44 −2 · 4 files · 1 commits · openWhat
Follow-up from PR #130: six pairs of GPU-written textures with one description share physical title pages at different title addresses, but each gets its own arena image, so a write through one is not seen through the other. This adds a rule-32 counter for views placed over pages that two GPU-written targets share. A physical-page -> target map is refreshed at the stats line;
alias_atcounts a view when any of its pages is in the shared set. No behaviour change — the alias still resolves to the target at the exact address.The reference
No console counterpart: the console shares the memory, so a view over those pages sees whichever target wrote them. The counter measures how often vkback's separate images could diverge.
Evidence
cargo check -p vkback --all-targets, 164 native tests, and the build all pass.shared targets: same description 6 (61 MB), displaced 208, cross-reads 1319.cross-reads 1321with the same six pairs./tmp/opencode/capture/alias-cross-house/,/tmp/opencode/capture/alias-cross2/. Not performance measurements.Checklist (docs/AGENTS.md)
docs/TASKS.mdnot edited (rule 29/31)unsafeor translator output changed (rules 2/9b/33/35/36/27)@vktory6 on GitHub · 2026-12-02 16:03 UTC · original
Thanks, this is the write-here/read-there probe the TASKS item "Targets of one description over the same memory are separate images" asks for, and #194 waits on its numbers. One thing before merging: since #143,
alias_atruns for every placed view, and the probe now callstm.m.piecesinto a freshVecon each of those calls, so it adds a lookup and an allocation to a hot path in every run. Please either put it behind a debug switch (registered intoggles.txt, removed once the question is answered) or reuse one buffer and checkalias_shared_pages.is_empty()first, so it costs nothing when no pages are shared. Then please post the counts from one boat run: that decides #194.@TheRifai on GitHub · 2026-12-02 17:00 UTC · original
Maintenance note on this PR (no force-push, PR left open): main moved to
87ab180andmergeablebecame false. I rebased the four-file change onto that base locally, resolved the one conflict with merged PR #152 inlive/present.rs(both the mip-linear fields and the new cross-read field are kept), and verified it:cargo check -p vkbackclean,tools/build.shexit 0, and a 70 s house run reportscross-reads 987then1045in two stats windows (/home/shlong/Documents/VKtory-capture/alias2-run/).I could not push a corrected branch:
POST /repos/TheRifai/VKtory/git/refsnow returns HTTP 404 for a valid commit SHA viagh apiand direct curl, GraphQLcreateRefsays the token lacks permission, and a normalgit pushis rejected because this OAuth token lacks theworkflowscope for the unchanged.github/workflows/ci.yml. This needs a credential/permission change from the account owner; the local work is ready at branchalias-cross-read-v2in/home/shlong/Documents/VKtory-alias2.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.