Re: [PATCH mm-unstable v2 0/3] mm/hugetlb: alloc/free gigantic folios

From: jane . chu
Date: Fri Aug 30 2024 - 13:55:44 EST


On 8/13/2024 8:54 PM, Yu Zhao wrote:

Use __GFP_COMP for gigantic folios can greatly reduce not only the
amount of code but also the allocation and free time.

Approximate LOC to mm/hugetlb.c: +60, -240

Allocate and free 500 1GB hugeTLB memory without HVO by:

Do you also have numbers with HVO enabled ?

time echo 500 >/sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages
time echo 0 >/sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages

Before After
Alloc ~13s ~10s
Free ~15s <1s

Thanks,

-jane