linux: build a wineserver that indexes mapped views (GE-Proton11-14) #157
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/TaynanGT--Vice-Tay!157
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@nullexxx on GitHub · 2026-11-27 04:39 UTC · original
nullexxx:linux/wineserver-view-tree→main· +344 −5 · 5 files · 4 commits · merged 2026-11-27 07:14 UTCOn 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
@TaynanGT on GitHub · 2026-11-27 05:46 UTC · original
@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.
3200c3f4d6to992dda1f55@nullexxx on GitHub · 2026-11-27 05:54 UTC · original
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.@TaynanGT on GitHub · 2026-11-27 06:02 UTC · original
@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 job@TaynanGT on GitHub · 2026-11-27 07:22 UTC · original
@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.