From: Roman Gushchin Date: Thu, 23 Aug 2018 17:46:20 +0000 (-0700) Subject: core: bump mlock ulimit to 64Mb X-Git-Tag: v240~589^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91cfdd8d29b353dc1fd825673c9a23e00c92a341;p=thirdparty%2Fsystemd.git core: bump mlock ulimit to 64Mb Bpf programs are charged against memlock ulimit, and the default value can be too tight on machines with many cgroups and attached bpf programs. Let's bump it to 64Mb. --- diff --git a/src/core/main.c b/src/core/main.c index ce45f2ded23..88656dcabf5 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1201,7 +1201,7 @@ static int bump_rlimit_memlock(struct rlimit *saved_rlimit) { if (getrlimit(RLIMIT_MEMLOCK, saved_rlimit) < 0) return log_warning_errno(errno, "Reading RLIMIT_MEMLOCK failed, ignoring: %m"); - r = setrlimit_closest(RLIMIT_MEMLOCK, &RLIMIT_MAKE_CONST(1024ULL*1024ULL*16ULL)); + r = setrlimit_closest(RLIMIT_MEMLOCK, &RLIMIT_MAKE_CONST(1024ULL*1024ULL*64ULL)); if (r < 0) return log_warning_errno(r, "Setting RLIMIT_MEMLOCK failed, ignoring: %m");