main: bump RLIMIT_NOFILE for the root user substantially
authorLennart Poettering <lennart@poettering.net>
Thu, 21 Sep 2017 17:43:07 +0000 (19:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Sep 2017 13:28:05 +0000 (15:28 +0200)
commitfb3ae275cbd6bc17444e0816ee4c7496f2750209
treeaf16df5a4cd424d9f9343e56df4dc4d49a5382b0
parentc4ad3f43ef4cbe73d7d2c4516ab17f0e907dfe16
main: bump RLIMIT_NOFILE for the root user substantially

On current kernels BPF_MAP_TYPE_LPM_TRIE bpf maps are charged against
RLIMIT_MEMLOCK even for privileged users that have CAP_IPC_LOCK. Given
that mlock() generally ignores RLIMIT_MEMLOCK if CAP_IPC_LOCK is set
this appears to be an oversight in the kernel. Either way, until that's
fixed, let's just bump RLIMIT_MEMLOCK for the root user considerably, as
the default is quite limiting, and doesn't permit us to create more than
a few TRIE maps.
src/core/main.c