Add instructions for setting the file limit

This commit is contained in:
the-sane 2020-08-23 21:25:49 -04:00 committed by GitHub
parent 7aa701a69d
commit 2b5cdbb56b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -447,7 +447,7 @@ check_filelimit() {
if [ "$filelimit" -ge 524288 ]; then if [ "$filelimit" -ge 524288 ]; then
message 1 "Your open files limit is already set to the optimal value.\nYou're all set!" message 1 "Your open files limit is already set to the optimal value.\nYou're all set!"
else else
message 2 "We recommend setting the hard open\nfile descriptors limit to at least 524288.\nThe current value on your system appears to be $filelimit.\n\nA future version of this helper will help you increase this value." message 2 "We recommend setting the hard open\nfile descriptors limit to at least 524288.\n\nThe current value on your system appears to be $filelimit.\n\nTo increase this value, edit the file\n/etc/systemd/system.conf\n\nUncomment the following line, adjust its value, and reboot:\nDefaultLimitNOFILE=524288"
fi fi
} }