linux: build a wineserver that indexes mapped views (GE-Proton11-14) #157
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/157"
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 TaynanGT/Vice-Tay. Originally posted by nullexxx on 2026-11-27T04:39:28Z.
On Linux, Proton's stock
wineservermakes this title crawl. The title keeps 90,000 to 136,000 mapped views alive and maps or unmaps about a thousand a second.wineserverkeeps each process's views in a list and searches it from the front on every map and unmap request (is_valid_view_addr,find_mapped_viewandfind_mapped_addrinserver/mapping.c), and everything that waits on the server waits behind those searches.This adds
linux/wineserver/:view-tree.patch: a red-black tree of all views (wine/rbtree.h), keyed by process and base address. Views never overlap, so a lookup by address is a search for the nearest base at or below it. The list stays, for its order.build.sh: builds GE-Proton11-14'swineserverfrom GE's own Wine and wine-staging, with GE's Wine patches, plus this one. It installs into a copy,GE-Proton11-14-viewtree, and keeps the original asfiles/bin/wineserver.ge.README.md.Measured: RTX 5080, Series S profile, same Vice-Tay build and launch options, opening area.
wineserverThe patch was checked against the original searches with 2 million random operations (up to 66,000 live views across three processes). The 7 pipeline hangs in #133 reproduce identically on stock GE-Proton, so they are unrelated to this patch.
GE-Proton's
masteralready carries an equivalent change (patches/wine-hotfixes/em-fixups/0078-server-store-process-views-in-an-rb-tree.patch), but no release includes it yet (the latest is GE-Proton11-14). Once one does, this folder can go.🤖 Generated with Claude Code
https://claude.ai/code/session_01SEGb52ApL88uPMf5GhSz8K
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T05:46:39Z.
@nullexxx I ran
bash -nonbuild.sh. It passed. The installer guard needs one change before this can be used safely with an arbitrary path. A GE version mismatch currently prints a warning and continues, so a server built againstGE-Proton11-14can end up in a different runtime. Turn that tag check into a hard error and reject anOUTthat resolves to the source directory before copying or installing.The stock and indexed 5080 measurements give us the performance comparison for that pinned build.
Imported from TaynanGT/Vice-Tay. Originally posted by nullexxx on 2026-11-27T05:54:54Z.
Thanks, done in the new commit (the branch is also rebased onto current
main, as the earlier test failures came from the older base):GE-Proton11-14; the old check only warned and continued.OUTis resolved withrealpathand refused if it is the source Proton's folder, inside it, or contains it, which covers symlinks too. An existingOUTmust also be a copy of the same version.mkdir -p "$WORK" && cd "$WORK"did not stop the script underset -ewhenmkdirfailed. They are now separate commands.Checked against fake Proton folders: a wrong version,
OUTequal to, symlinked to, inside or containing the source, and an existingOUTof another version are all refused, and valid paths pass.Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T06:02:14Z.
@nullexxx
bash -nand all seven preflight cases passed in Git Bash on Windows. The version check andOUTprotection cover what I flagged.The current CI failure is the asset check rejecting
linux/wineserver/view-tree.patch. I tested allowlisting that exact path inxtask/src/policy.rs. It accepts the diff and keeps the existing size and content checks in place. Failing CI jobImported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T07:22:14Z.
@nullexxx I built the exact PR revision on Ubuntu 24.04 under WSL2 with the official GE-Proton11-14 archive, then installed it a second time into another copy using the same work directory. Both servers report Wine 11.0. I compared the original binary byte-for-byte with both saved copies after the retry. The build and CI are confirmed, and the PR is on
main.