mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mm: batch free swaps for zap_pte_range()
@ 2024-08-07  8:25 Barry Song
  2024-08-07  8:25 ` [PATCH v2 1/2] mm: rename instances of swap_info_struct to meaningful 'si' Barry Song
  2024-08-07  8:25 ` [PATCH v2 2/2] mm: attempt to batch free swap entries for zap_pte_range() Barry Song
  0 siblings, 2 replies; 9+ messages in thread
From: Barry Song @ 2024-08-07  8:25 UTC (permalink / raw)
  To: akpm, linux-mm
  Cc: justinjiang, chrisl, david, hughd, kaleshsingh, kasong,
	linux-kernel, ryan.roberts, v-songbaohua, ying.huang

From: Barry Song <v-songbaohua@oppo.com>

Batch free swap slots for zap_pte_range(), making munmap three times
faster when the page table entries are filled with swap entries to
be freed. This is likely another advantage of using mTHP.

-v2:
  * cleanup the name of the instances of swap_info_struct, per
    Andrew, David;
  * refine the code to add fallback in the batch free function,
    Thanks for David's suggestion.
-v1:
  https://lore.kernel.org/all/20240806012409.61962-1-21cnbao@gmail.com/

Barry Song (2):
  mm: rename instances of swap_info_struct to meaningful 'si'
  mm: attempt to batch free swap entries for zap_pte_range()

 mm/swapfile.c | 412 ++++++++++++++++++++++++++++----------------------
 1 file changed, 234 insertions(+), 178 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2024-08-07 19:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-07  8:25 [PATCH v2 0/2] mm: batch free swaps for zap_pte_range() Barry Song
2024-08-07  8:25 ` [PATCH v2 1/2] mm: rename instances of swap_info_struct to meaningful 'si' Barry Song
2024-08-07  9:11   ` David Hildenbrand
2024-08-07  8:25 ` [PATCH v2 2/2] mm: attempt to batch free swap entries for zap_pte_range() Barry Song
2024-08-07  9:28   ` David Hildenbrand
2024-08-07  9:48     ` Barry Song
2024-08-07 10:19       ` David Hildenbrand
2024-08-07 16:16   ` Kairui Song
2024-08-07 19:14     ` Barry Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®