xmem: create physical-page sections committed #367
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/367"
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 brcly/TuxBox. Originally posted by Jerkin42 on 2026-11-28T04:19:55Z.
Summary
Every XMem physical-page batch is a
SEC_RESERVEpagefile section that is then committed whole through one view. Under Wine,VirtualQueryon a view of aSEC_RESERVEsection is answered by a wineserver request (get_committed_size), even once every page is committed. ProjectScarlett callsVirtualQueryon these views about 3,700 times a second. On GE-Proton 11-14 here, wineserver sat at 94% of a core, and the title screen ran at about 0.5 fps and never got past it.shared_pages::Sectionnow creates the section committed (PAGE_READWRITEwithoutSEC_RESERVE), so these queries stay in the process. If that fails (for example at the commit limit), it falls back to the old path: aSEC_RESERVEsection committed whole, and if that fails too, views commit their own range.Tested
mainhere, see below)What changes is how many wineserver requests a query costs, not what it returns. Pages of a committed section read as committed, as before, and the existing
xmemchecks (physical allocation, views and working set) still pass. A Lanes scenario could count wineserver requests only through Wine internals, so I have not added one.In ProjectScarlett: wineserver went from 94% to 16% of a core, and the title screen from about 0.5 to about 6 fps. The game then got past the title screen. These figures come from the same build with and without this commit.
GPU, driver and backend: AMD RX 9060 XT, Mesa RADV 26.1.8, Linux 7.3.1; checks on Proton Experimental, the game on GE-Proton 11-14
Commands run and their results:
Both Lanes failures also happen on plain
main(df4f27c) on this machine:invalid-routechecksroute-game.exe's exit status and has failed here before.lanes-selftest-mesh-signature-nonewas fixed onmainbye5c17a4after this branch was cut. Neither involves the code this changes.The
meshregression control does not loadxmem.dll(the runner copies it only forbuffer-remap), and this branch'sd3d12_xs.dllis plainmain, so that failure cannot come from this change. It is an intermittent miss in the amplified dispatch's output (word 76 is the AS/MS case) on RADV: 2 of 22 runs here, 0 of 18 on another branch, which is not a significant difference.Checks
No evidence JSON changes.
🤖 Generated with Claude Code
Imported from brcly/TuxBox. Originally posted by Jerkin42 on 2026-11-28T04:20:10Z.
I only have an AMD card (RX 9060 XT, RADV), so the NVIDIA half of the checks is still open. If someone with an NVIDIA GPU can run
python tuxbox.py checkon this branch and post the summary, that would cover the vendor row. Thank you!