Re: [PATCH RFC] hugetlbfs 'noautofill' mount option

From: Dave Hansen
Date: Tue May 02 2017 - 17:32:51 EST


On 05/01/2017 11:00 AM, Prakash Sangappa wrote:
> This patch adds a new hugetlbfs mount option 'noautofill', to indicate that
> pages should not be allocated at page fault time when accessed thru mmapped
> address.

I think the main argument against doing something like this is further
specializing hugetlbfs. I was really hoping that userfaultfd would be
usable for your needs here.

Could you elaborate on other options that you considered? Did you look
at userfaultfd? What about an madvise() option that disallows backing
allocations?