def: add a "high" limit for RLIMIT_NOFILE
authorLennart Poettering <lennart@poettering.net>
Mon, 1 Oct 2018 15:37:01 +0000 (17:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Oct 2018 14:33:55 +0000 (16:33 +0200)
commitd6e069f412edc02a0f2130fa47955d02e378d5f5
treefaaa7bd78044b9a0063a8bd0cade2ffc034382f0
parentd3aeddb8d19b9bb992ffea6f7a514d90ba697bb9
def: add a "high" limit for RLIMIT_NOFILE

This simply adds a new constant we can use for bumping RLIMIT_NOFILE to
a "high" value. It default to 256K for now, which is pretty high, but
smaller than the kernel built-in limit of 1M.

Previously, some tools that needed a higher RLIMIT_NOFILE bumped it to
16K. This new define goes substantially higher than this, following the
discussion with the kernel folks.
src/basic/def.h