Re: [RFC] a question about mlockall() and mprotect()
From: Michal Hocko
Date: Tue Sep 26 2017 - 05:18:44 EST
On Tue 26-09-17 17:13:59, Xishi Qiu wrote:
> On 2017/9/26 17:02, Michal Hocko wrote:
[...]
> > This is still very fuzzy. What are you actually trying to achieve?
>
> I don't expect page fault any more after mlock.
This should be the case normally. Except when mm_populate fails which
can happen e.g. when running inside a memcg with the hard limit
configured. Is there any other unexpected failure scenario you are
seeing?
--
Michal Hocko
SUSE Labs