diff options
| author | Yu Zhao <[email protected]> | 2024-08-13 21:54:51 -0600 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-09-03 21:15:36 -0700 |
| commit | cf54f310d0d313bce6505d010a555948b0ae0e2a (patch) | |
| tree | 783b84a5ea87574202c90dfe4281470191fa690c /tools/perf/scripts/python | |
| parent | 463586e9ff398f951a9a63d98a3b93f44434d20c (diff) | |
mm/hugetlb: use __GFP_COMP for gigantic folios
Use __GFP_COMP for gigantic folios to greatly reduce not only the amount
of code but also the allocation and free time.
LOC (approximately): +60, -240
Allocate and free 500 1GB hugeTLB memory without HVO by:
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
The above magnitude generally holds for multiple x86 and arm64 CPU models.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Yu Zhao <[email protected]>
Reported-by: Frank van der Linden <[email protected]>
Acked-by: Zi Yan <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Muchun Song <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions