[PATCH v2 0/4] malloc: Improve Huge Page support
Siddhesh Poyarekar
siddhesh@sourceware.org
Thu Aug 19 12:26:17 GMT 2021
On 8/19/21 5:34 PM, Adhemerval Zanella wrote:
> I think this would be an additional tunable, we still need to handle
> the case where mmap() fails either in default path (due maximum number
> of mmap() per process by kernel or when the poll is exhausted for
> MAP_HUGETLB).
>
> So for sbrk() call, should we align the increment to huge page and
> issue the madvise() if the tunable is set to use huge pages?
Yeah it's a reasonable compromise. I've been thinking about getting rid
of max_mmaps too; I don't see much use for it anymore.
Siddhesh
More information about the Libc-alpha
mailing list