Re: [PATCH 0/4] hugetlbfs: optionally reserve all fs pages at mount time

From: Andi Kleen
Date: Fri Mar 06 2015 - 17:13:49 EST


Mike Kravetz <mike.kravetz@xxxxxxxxxx> writes:

> hugetlbfs allocates huge pages from the global pool as needed. Even if
> the global pool contains a sufficient number pages for the filesystem
> size at mount time, those global pages could be grabbed for some other
> use. As a result, filesystem huge page allocations may fail due to lack
> of pages.


What's the difference of this new option to simply doing

mount -t hugetlbfs none /huge
echo XXX > /proc/sys/vm/nr_hugepages

?

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/