startup-runtime: startup stalls ~120 s after #2395 (an unplaced memory SRV wraps a ~2.15 GiB allocation, VirtualQuery over it becomes slow) #2610
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#2610
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@lukaslw-lab on GitHub · 2026-11-25 23:18 UTC · original
Since #2395 (
4a8acf51), main-executable startup (#870) sits ~120 s before the first DirectStorage request completes. Bisect on Windows 10 22H2, RTX 3080 Ti, release build, warm shader cache, same input script:2b883ea61cce2a32(parent of #2395)4a8acf51(#2395)5ca71c5b+OpenExistingHeapFromAddressdisabled inunplaced_memory_buffer0a40a0fd(fix PR below, ona6967446)buffer_unavailable). That allocation is ~2.15 GiB, private, write-combined.unplaced_memory_bufferpassesmemory.basetoOpenExistingHeapFromAddress, so a 6 KiB view wraps the whole 2.15 GiB block as a heap.VirtualQuery← the DirectStorage stand-in's destination check (destination_writable,xcrdapi.cpp, oneVirtualQueryper region). Another thread spins in title code waiting for it.placed_buffer_range.halready notes thatVirtualQueryon large private regions scans page-table entries.Fix PR (linked below): wrap an allocation for an unplaced SRV only up to the 256 MiB limit #2395 already applies to the span; larger allocations take the existing upload copy.
This report was prepared with AI assistance (Claude); the runs and the bisect are mine.