linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] hugetlb: speed up linear address scanning
@ 2022-06-16 21:05 Mike Kravetz
  2022-06-16 21:05 ` [PATCH 1/4] hugetlb: skip to end of PT page mapping when pte not present Mike Kravetz
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Mike Kravetz @ 2022-06-16 21:05 UTC (permalink / raw)
  To: linux-kernel, linux-mm, linux-arm-kernel, linux-s390, linux-sh,
	sparclinux, linux-ia64, linux-mips, linux-parisc, linuxppc-dev
  Cc: Mina Almasry, James Houghton, will, Anshuman Khandual,
	catalin.marinas, Paul Walmsley, Peter Xu, Michal Hocko,
	Aneesh Kumar K . V, Baolin Wang, Muchun Song, Andrew Morton,
	Christian Borntraeger, Naoya Horiguchi, Mike Kravetz

At unmap, fork and remap time hugetlb address ranges are linearly
scanned.  We can optimize these scans if the ranges are sparsely
populated.

Also, enable page table "Lazy copy" for hugetlb at fork.

NOTE: Architectures not defining CONFIG_ARCH_WANT_GENERAL_HUGETLB
need to add an arch specific version hugetlb_mask_last_page() to
take advantage of sparse address scanning improvements.  Baolin Wang
added the routine for arm64.  Other architectures which could be
optimized are: ia64, mips, parisc, powerpc, s390, sh and sparc.

Baolin Wang (1):
  arm64/hugetlb: Implement arm64 specific hugetlb_mask_last_page

Mike Kravetz (3):
  hugetlb: skip to end of PT page mapping when pte not present
  hugetlb: do not update address in huge_pmd_unshare
  hugetlb: Lazy page table copies in fork()

 arch/arm64/mm/hugetlbpage.c |  20 +++++++
 include/linux/hugetlb.h     |   5 +-
 mm/hugetlb.c                | 109 +++++++++++++++++++++++++-----------
 mm/memory.c                 |   2 +-
 mm/rmap.c                   |   4 +-
 5 files changed, 103 insertions(+), 37 deletions(-)

-- 
2.35.3


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-06-18  3:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-16 21:05 [PATCH 0/4] hugetlb: speed up linear address scanning Mike Kravetz
2022-06-16 21:05 ` [PATCH 1/4] hugetlb: skip to end of PT page mapping when pte not present Mike Kravetz
2022-06-17  8:13   ` Muchun Song
2022-06-17 11:26   ` kernel test robot
2022-06-17 21:09     ` Mike Kravetz
2022-06-17 14:15   ` Peter Xu
2022-06-17 15:26     ` Geert Uytterhoeven
2022-06-17 17:17     ` Mike Kravetz
2022-06-18  3:27       ` Baolin Wang
2022-06-17 17:06   ` kernel test robot
2022-06-16 21:05 ` [PATCH 2/4] arm64/hugetlb: Implement arm64 specific hugetlb_mask_last_page Mike Kravetz
2022-06-17  8:26   ` Muchun Song
2022-06-16 21:05 ` [PATCH 3/4] hugetlb: do not update address in huge_pmd_unshare Mike Kravetz
2022-06-16 21:05 ` [PATCH 4/4] hugetlb: Lazy page table copies in fork() Mike Kravetz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).