https://bugs.winehq.org/show_bug.cgi?id=37419
--- Comment #5 from Sebastian Lackner sebastian@fds-team.de --- Some patches were added to Wine-Staging. With shared memory wineserver communication enabled (and a recent kernel >= 3.17 with memfd support) some functions are reduced to basically just a couple of memory accesses. For other functions wineserver calls are only done when really necessary. The whole idea is still in a very early stage, and will be improved over the next few versions. Nevertheless it might be worth to test it a bit.
To apply the whole patchset (including dependencies) the easiest way is to check out https://github.com/wine-compholio/wine-staging and use the patchinstall.sh script, it will automatically resolve dependencies between patchsets. Just run from the wine source tree:
.../path/to/patches/patchinstall.sh --backend=git server-Shared_Memory
This function will also run ./tools/make_requests since various updates to the wineserver protocol are required. Afterwards, as soon as the patched version is compiled, run it with STAGING_SHARED_MEMORY=1 set (and probably also WINEDEBUG=+winediag to see if its actually used).