Skip to content

mm: batch free swaps for zap_pte_range()

Barry Song linux-mm lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 8 repliesIn review 1 of 2 applied
  2. v22 patches 6 repliesSuperseded

Patches in v3 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2mm: rename instances of swap_info_struct to meaningful 'si'mm/swapfile.c+167 -1673 repliesApplied
2/2mm: attempt to batch free swap entries for zap_pte_range()mm/swapfile.c+65 -115 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDavid HildenbrandBarry Song
1/2A-b
2/2A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] mm: batch free swaps for zap_pte_range()

From: Barry Song <[email protected]>

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.

-v3:
* collect David's acked-by for patch1/2
* further refine the code per David;
* fix a corner case which might leak swap slots, thanks for Kairui's comment.
-v2:
https://lore.kernel.org/all/[email protected]/
* 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/[email protected]/

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 | 410 ++++++++++++++++++++++++++++----------------------
 1 file changed, 232 insertions(+), 178 deletions(-)
Signature · 1 line
2.34.1