aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/err.h
diff options
context:
space:
mode:
authorYu Zhao <yuzhao@google.com>2024-08-13 21:54:51 -0600
committerAndrew Morton <akpm@linux-foundation.org>2024-09-03 21:15:36 -0700
commitcf54f310d0d313bce6505d010a555948b0ae0e2a (patch)
tree783b84a5ea87574202c90dfe4281470191fa690c /include/linux/err.h
parentmm/cma: add cma_{alloc,free}_folio() (diff)
downloadwireguard-linux-cf54f310d0d313bce6505d010a555948b0ae0e2a.tar.xz
wireguard-linux-cf54f310d0d313bce6505d010a555948b0ae0e2a.zip
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/20240814035451.773331-4-yuzhao@google.com Signed-off-by: Yu Zhao <yuzhao@google.com> Reported-by: Frank van der Linden <fvdl@google.com> Acked-by: Zi Yan <ziy@nvidia.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Muchun Song <muchun.song@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/err.h')
0 files changed, 0 insertions, 0 deletions