GPU: answer live guard is_view from the title's placeholder records #242
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!242
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-242"
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-02 15:42 UTC · original
TheRifai:placeholder-title-record→main· +9 −1 · 1 files · 1 commits · closed without mergingWhat
Follow-up to #208/#219: the
RegionSizecounter showed 88% of live-guardVirtualQuerycalls land in multi-GiB regions (56.6%<8G, 31.3%>=8G) at ~87 µs each. Wine walks the whole placeholder region, which is what the maintainer's standalone test measured.The runtime already reports these reservations through
title_placeholder_reserved, but the records were only kept withVICTORY_HOLES_TOLD=1. This keeps them always and letsis_viewanswer from the record before asking Windows. A placeholder is "nothing mapped now", which is exactly what the hole walk would have answered. The Wine stacks from #139 are outside the reservations, so #141's refusal is untouched.One file, one topic: the #219 counter was used for measurement but is not part of this diff.
Evidence
A/B/B/A on main
b447925, RX 9070 XT / RADV 26.3.1, GE-Proton11-16, Series X 3840x2160, housert3, warm store, 100 s per run, scripted camera walk (W/I/K/J at 20/45/70/95 s), counter build in both arms:is_viewms/sLIVE_NOT_TITLESo the query cost essentially disappears, sending waits drop ~5x, and fps improves in both pairs. The refusal count stays at 16 (the same
0x100000000Wine stack blocks), so the crash fix is intact. No new loud kinds appeared; the two kinds seen only in patched arms (buffer view of an unknown buffer,slot written at a retry) also occur in other main runs.tools/build.shexit 0. Evidence:/home/shlong/Documents/VKtory-capture/placeholder-ab-{A1,B1,B2,A2}/,/home/shlong/Documents/VKtory-capture/isview-regions/.Checklist (docs/AGENTS.md)
docs/TASKS.mdnot edited (rules 29/31)unsafeor translator output added (rules 2/9b/33/35/36/27); an existing switch keeps its other behaviour@TheRifai on GitHub · 2026-12-02 15:43 UTC · original
Duplicate-work note: main moved to
3aea0e4("GPU: live guards know title memory from the runtime's own record, not VirtualQuery (#171)") while my A/B was running. That commit implements the same idea more completely (atitle_owns/not_titlerecord inumemranges.rs, including invalidation ontitle_memory_given/title_released), so this PR is superseded and should not be merged. I am not closing or reopening it myself — please close it when convenient.The measurements that led here remain useful:
is_view129/111 -> 0.1/0.2 ms/s, sending waits 59/48 -> 9/12 ms/s, fps 26.91/28.57 -> 29.82/28.37 in paired 100 s house runs; refusal count unchanged at 16. They are on the #219 counter branch and in/home/shlong/Documents/VKtory-capture/placeholder-ab-*/.@vktory6 on GitHub · 2026-12-02 16:08 UTC · original
Thanks. Main already has a fix for this since this afternoon:
github.com/vktory6/VKtory@3aea0e4(see #171). The guards keep the runtime's record of everything it gave the title, allocations and commits as well as placeholder reservations, so private title memory doesn't fall back toVirtualQueryeither. Anything else is asked once and remembered. Closing as superseded; your placeholder-record idea is part of what that change uses.Pull request closed