On 10/5/18 11:55 AM, Michael Cronenworth wrote:
First off, thanks, Kamil, for starting this discussion. I've
been
meaning to bring it up.
On 10/5/18 1:03 PM, Lennart Poettering wrote:
[snip]
> This is not quite the 1M you appear to ask for though… I picked 256K
> mostly because I wanted to stay lower than the kernel built-in max
> (which is 1M, i.e. /proc/sys/fs/nr_open), and needed to pick
> something. Do you have any particular reason to prefer 1M over 256K? I
> am completely open to suggestions there...
The upstream esync branch requests setting the hard limit to 1M.
https://github.com/zfigura/wine/blob/esync/README.esync
I haven't torn apart the project to see if 1M is really necessary so a
different limit may be up for discussion.
esync uses eventfd to reduce IPC to wineserver when emulating Windows
kernel objects, the exact number of eventfds needed depends entirely on
the behavior of the Windows application you are running.