Re: mlock() confusing 1 half of system RAM limit

From: Michal Hocko
Date: Fri Jun 01 2018 - 09:42:02 EST


On Fri 01-06-18 14:24:23, Alex Richman wrote:
> Ah, that's it.  Increased the limit on the mount and it works fine now.

Well, it is hidden very well. It is not until the page fault time (or
get_user_pages aka __mm_populate) when the operation fails and remasks
ENOSPC -> VM_FAULT_SIGBUS -> EFAULT -> ENOMEM on the way.
--
Michal Hocko
SUSE Labs