Skip to content

support shmem mTHP collapse

Baolin Wang linux-mm lkml 2 versions – Applied

Status from this message: [merged mm-stable] selftests-mm-support-shmem-mthp-collapse-testing.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyApplied 5/5
  2. v15 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Simplify is_refcount_suitable(), per David.
- Add reviewed tag from David. Thanks.
- Update some comments.

Patches in v2 All 5 applied

#Subject and filesSizeRepliesApplied
1/5mm: khugepaged: expand the is_refcount_suitable() to support file foliosmm/khugepaged.c+6 -51 replyApplied
2/5mm: khugepaged: use the number of pages in the folio to check the reference countmm/khugepaged.c+4 -40 repliesApplied
3/5mm: khugepaged: support shmem mTHP copymm/khugepaged.c+10 -50 repliesApplied
4/5mm: khugepaged: support shmem mTHP collapsemm/khugepaged.c+11 -170 repliesApplied
5/5selftests: mm: support shmem mTHP collapse testingtools/testing/selftests/mm/khugepaged.c tools/testing/selftests/mm/thp_settings.c tools/testing/selftests/mm/thp_settings.h+51 -80 repliesApplied

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchDavid Hildenbrand
1/5A-b
2/5A-b
3/5
4/5
5/5

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

Read the v2 thread

Cover letter [PATCH v2 0/5] support shmem mTHP collapse

Hi,

Shmem already supports mTHP allocation[1], and this patch set adds support for shmem mTHP collapse, as well as adding relevant test cases. Please help to review. Thanks.

Note: all khugepaged selftests have passed.

[1] https://lore.kernel.org/all/[email protected]/T/#m4bd7e701c7b5f36f712055e4360cad593a22b3bf

Changes from v1:
- Simplify is_refcount_suitable(), per David.
- Add reviewed tag from David. Thanks.
- Update some comments.

Baolin Wang (5):
mm: khugepaged: expand the is_refcount_suitable() to support file
folios
mm: khugepaged: use the number of pages in the folio to check the
reference count
mm: khugepaged: support shmem mTHP copy
mm: khugepaged: support shmem mTHP collapse
selftests: mm: support shmem mTHP collapse testing

 mm/khugepaged.c                           | 62 +++++++++++------------
 tools/testing/selftests/mm/khugepaged.c   |  4 +-
 tools/testing/selftests/mm/thp_settings.c | 46 ++++++++++++++---
 tools/testing/selftests/mm/thp_settings.h |  9 +++-
 4 files changed, 82 insertions(+), 39 deletions(-)
Signature · 1 line
2.39.3