mm-hugetlb-log-time-needed-to-allocate-hugepages.patch removed from -mm tree
The quilt patch titled
Subject: mm: hugetlb: log time needed to allocate hugepages
has been removed from the -mm tree. Its filename was
mm-hugetlb-log-time-needed-to-allocate-hugepages.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Thomas Prescher <[email protected]>
Subject: mm: hugetlb: log time needed to allocate hugepages
Date: Thu, 27 Feb 2025 23:45:07 +0100
Having this information allows users to easily tune the hugepages_node_threads parameter.
Link https://lkml.kernel.org/r/20250227-hugepage-parameter-v2-3-7db8c6dc0453@cyberus-technology.de open here
Signed-off-by Thomas Prescher <[email protected]>
Cc Jonathan Corbet <[email protected]>
Cc Muchun Song <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/hugetlb.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
mm/hugetlb.c renamed from mm/hugetlb.c~mm-hugetlb-log-time-needed-to-allocate-hugepages +10 -0
@@ -3608,6 +3608,9 @@ static unsigned long __init hugetlb_page .numa_aware = true }; +unsigned long jiffies_start; +unsigned long jiffies_end; + job.thread_fn = hugetlb_pages_alloc_boot_node; job.start =0 ; job.size = h->max_huge_pages;
@@ -3635,7 +3638,14 @@ static unsigned long __init hugetlb_page job.max_threads = hugepage_allocation_threads; job.min_chunk = h->max_huge_pages / hugepage_allocation_threads; + + jiffies_start = jiffies;padata_do_multithreaded (&job); + jiffies_end = jiffies; + +pr_info ("HugeTLB: allocation took %dms with hugepage_allocation_threads=%ld\n" , +jiffies_to_msecs (jiffies_end - jiffies_start), + hugepage_allocation_threads);return h->nr_huge_pages; }
_
Patches currently in -mm which might be from [email protected] are