linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] support shmem mTHP collapse
@ 2024-08-20  9:49 Baolin Wang
  2024-08-20  9:49 ` [PATCH v2 1/5] mm: khugepaged: expand the is_refcount_suitable() to support file folios Baolin Wang
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Baolin Wang @ 2024-08-20  9:49 UTC (permalink / raw)
  To: akpm
  Cc: hughd, willy, david, 21cnbao, ryan.roberts, shy828301, ziy,
	baolin.wang, linux-mm, linux-kernel

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/cover.1718090413.git.baolin.wang@linux.alibaba.com/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(-)

-- 
2.39.3



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

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-20  9:49 [PATCH v2 0/5] support shmem mTHP collapse Baolin Wang
2024-08-20  9:49 ` [PATCH v2 1/5] mm: khugepaged: expand the is_refcount_suitable() to support file folios Baolin Wang
2024-08-26 17:18   ` David Hildenbrand
2024-08-20  9:49 ` [PATCH v2 2/5] mm: khugepaged: use the number of pages in the folio to check the reference count Baolin Wang
2024-08-20  9:49 ` [PATCH v2 3/5] mm: khugepaged: support shmem mTHP copy Baolin Wang
2024-08-20  9:49 ` [PATCH v2 4/5] mm: khugepaged: support shmem mTHP collapse Baolin Wang
2024-08-20  9:49 ` [PATCH v2 5/5] selftests: mm: support shmem mTHP collapse testing Baolin Wang

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).