Skip to contentSkip to conversation

hugetlb-parallelize-1g-hugetlb-initialization.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Mar 6, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: hugetlb: parallelize 1G hugetlb initialization
has been removed from the -mm tree. Its filename was
hugetlb-parallelize-1g-hugetlb-initialization.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: Gang Li <[email protected]>
Subject: hugetlb: parallelize 1G hugetlb initialization
Date: Thu, 22 Feb 2024 22:04:21 +0800

Optimizing the initialization speed of 1G huge pages through parallelization.

1G hugetlbs are allocated from bootmem, a process that is already very fast and does not currently require optimization. Therefore, we focus on parallelizing only the initialization phase in gather_bootmem_prealloc.

Here are some test results:
test case no patch(ms) patched(ms) saved
------------------- -------------- ------------- --------

  256c2T(4 node) 1G           4745          2024   57.34%
  128c1T(2 node) 1G           3358          1712   49.02%
     12T         1G          77000         18300   76.23%
[[email protected]: s/initialied/initialized/, per Alexey]
Cc Alexey Dobriyan <[email protected]>
Cc Daniel Jordan <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Jane Chu <[email protected]>
Cc Mike Kravetz <[email protected]>
Cc Paul E. McKenney <[email protected]>
Cc Randy Dunlap <[email protected]>
Cc Steffen Klassert <[email protected]>
Cc Tim Chen <[email protected]>

---

 arch/powerpc/mm/hugetlbpage.c |    2 -
 include/linux/hugetlb.h       |    2 -
 mm/hugetlb.c                  |   51 ++++++++++++++++++++++++++------
 3 files changed, 45 insertions(+), 10 deletions(-)
arch/powerpc/mm/hugetlbpage.c renamed from arch/powerpc/mm/hugetlbpage.c~hugetlb-parallelize-1g-hugetlb-initialization +1 -1
@@ -226,7 +226,7 @@ static int __init pseries_alloc_bootmem_
 		return 0;
 	m = phys_to_virt(gpage_freearray[--nr_gpages]);
 	gpage_freearray[nr_gpages] = 0;
-	list_add(&m->list, &huge_boot_pages);
+	list_add(&m->list, &huge_boot_pages[0]);
 	m->hstate = hstate;
 	return 1;
 }
include/linux/hugetlb.h renamed from include/linux/hugetlb.h~hugetlb-parallelize-1g-hugetlb-initialization +1 -1
@@ -178,7 +178,7 @@ pte_t *huge_pmd_share(struct mm_struct *
 struct address_space *hugetlb_page_mapping_lock_write(struct page *hpage);
 
 extern int sysctl_hugetlb_shm_group;
-extern struct list_head huge_boot_pages;
+extern struct list_head huge_boot_pages[MAX_NUMNODES];
 
 /* arch callbacks */
 
mm/hugetlb.c renamed from mm/hugetlb.c~hugetlb-parallelize-1g-hugetlb-initialization +43 -8

113 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are