main: bump RLIMIT_MEMLOCK by physical RAM size
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Apr 2020 20:49:02 +0000 (22:49 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 Apr 2020 17:54:21 +0000 (19:54 +0200)
commit04d1ee0f7ec7a280136ddf5f3f34d6282a50846d
tree7689f3e992eadebef6d6677ff0dfb691589b993b
parentdcff2fa5d16f01edd774cd9dbc21fa4385af65bb
main: bump RLIMIT_MEMLOCK by physical RAM size

Let's allow more memory to be locked on beefy machines than on small
ones. The previous limit of 64M is the lower bound still. This
effectively means on a 4GB machine we can lock 512M, which should be
more than enough, but still not lock up the machine entirely under
pressure.

Fixes: #15053
src/core/main.c