Index outstanding DirectStorage destinations for pager reuse #27
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/gamingwithhomie--larp!27
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/27/head"
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?
@yyc160 on GitHub · 2026-12-05 15:43 UTC · original
yyc160:perf/storage-destination-index→main· +175 −15 · 3 files · 1 commits · merged 2026-12-05 15:49 UTCThe pager asks whether it can reuse an address range while holding its allocator lock. Each query also took the storage scheduler lock and scanned every lane's unsubmitted, queued and running reads. This keeps a counted range index in the scheduler, from enqueue until completion or cancellation. Handoffs between stages do not remove the range. A running read stays protected after another queue targeting the same address closes.
No changes to queue scheduling, completion ordering, memory budgets, or which blocks can be reused. Physical-page destinations remain outside this address query as before.
Windows x64, release, based on
03efd5b:cargo test --release --locked -p larp-hle --lib modules::dstorage:: -- --test-threads=1passed, including a two-queue lifecycle regression and a differential overlap test.compare_chase_sized_stream_batchesCPU replay checks every Boolean answer. At depth 4,095, the same 8,192 queries took 16.85/20.63 ms scanning vs 1.78/1.08 ms indexed. At depth 64, scanning was cheaper: 0.37/0.43 ms vs 0.52/0.51 ms. Timings are for queries, not full I/O or game frames.AI-assisted by GPT-6.2 Astra.