Skip to content

Commit

Permalink
readme: only adjust hard limit in systemd (wine-mirror#20)
Browse files Browse the repository at this point in the history
Instead of increasing both soft and hard fileno limit in systemd
instructions, increase just the hard limit. Soft limit needs to stay at
1024 for compatibility with programs using select() instead of newer
poll()/epoll(), otherwise such programs might fail.
  • Loading branch information
kparal authored and aeikum committed Mar 17, 2021
1 parent 38fe0bb commit c2811ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.esync
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ On distributions using systemd, the settings in `/etc/security/limits.conf`
will be overridden by systemd's own settings. If you run `ulimit -Hn` and it
returns a lower number than the one you've previously set, then you can set

DefaultLimitNOFILE=1048576
DefaultLimitNOFILE=1024:1048576

in both `/etc/systemd/system.conf` and `/etc/systemd/user.conf`. You can then
execute `sudo systemctl daemon-reexec` and restart your session. Check again
Expand Down

0 comments on commit c2811ae

Please sign in to comment.