Enable fsync#10
Open
Azkali wants to merge 1 commit into
Open
Conversation
Owner
|
The fallback to ESYNC is bad it should never be used due to crashing DXVK. I did a fresh install of fedora 42 and saw FSYNC in the logs of steam but can't really test it because the latest updates for fedora made the system kinda unstable. (crashes, freezes, applications like chrome say "not found" and no longer work, hostname was also changed to fedora4switch) |
The L4S kernel backports futex_waitv (sys 449), so fsync works on the 4.9 kernel. esync stays off: it crashes DXVK and only works with wined3d. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Azkali
force-pushed
the
enable-fsync-esync
branch
from
July 15, 2026 10:40
0046b87 to
22d9923
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Flip the Wine sync env vars in
files/steam/launch-steam.shto enable fsync (and esync as a fallback):PROTON_NO_FSYNC=1→0WINEESYNC=0→1,PROTON_NO_ESYNC=1→0Why fsync works on the 4.9 kernel
The comment said fsync "requires Kernel 5.x+", which is why it was off. The L4S kernel backports
futex_waitv(syscall 449) — the upstreambf69bad38cf6primitive that Proton's fsync uses — into the Tegra X1 4.9 kernel. So fsync's kernel dependency is satisfied and Proton can use the fast vectored-futex sync path instead of falling back to slower server-side sync. This is a measurable win in CPU-bound games.About esync and the dxvk caveat
The previous comment noted esync "crashes dxvk and only works with wined3d". That stays true as a fallback path, but Wine picks fsync first whenever the kernel supports it (which it now does on L4S), so esync is only ever selected when fsync is unavailable. Enabling it gives a graceful fallback without changing behaviour on the L4S kernel, where fsync wins.
PROTON_NO_NTSYNC=1is left untouched — ntsync needs a 6.12+ driver that isn't backported.Test
On an L4S device the kernel exposes
sys_futex_waitv(kallsyms / syscall 449); with these flags Proton initialises in fsync mode rather than falling back. ntsync remains disabled.