Re: [PATCH] Increase default MLOCK_LIMIT to 8 MiB

Andrew Morton
2021-11-16T19:47:31Z

On Tue, 16 Nov 2021 07:32:33 +0100 "Drew DeVault" <sir@cmpwn.com> wrote:

> > And a question: rather than messing around with a constant which will
> > need to be increased again in a couple of years, can we solve this one
> > and for all? For example, permit root to set the system-wide
> > per-process max mlock size and depend upon initscripts to do this
> > appropriately.
>
> Not sure I understand. Root and init scripts can already manage this
> number - the goal of this patch is just to provide a saner default.

Well, why change the default? Surely anyone who cares is altering it
at runtime anyway. And if they are not, we should encourage them to do
so?