Re: [PATCH 2/2] selftests: mm: add shmem collpase as a default test item

From: Baolin Wang
Date: Thu Jun 12 2025 - 01:33:25 EST




On 2025/6/12 12:20, Bird, Tim wrote:
collpase in the subject line should be collapse

Good catch. Will fix the typo. Thanks.

-----Original Message-----
From: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
Subject: [PATCH 2/2] selftests: mm: add shmem collpase as a default test item

Currently, we only test anonymous memory collapse by default. We should also add shmem collapse as a default test item to catch issues that
could break the test cases. Signed-off-by: Baolin Wang <baolin. wang@ linux. alibaba. com> --- tools/testing/selftests/mm/run_vmtests. sh

Currently, we only test anonymous memory collapse by default. We should also
add shmem collapse as a default test item to catch issues that could break
the test cases.

Signed-off-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
---
tools/testing/selftests/mm/run_vmtests.sh | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh
index 33fc7fafa8f9..a38c984103ce 100755
--- a/tools/testing/selftests/mm/run_vmtests.sh
+++ b/tools/testing/selftests/mm/run_vmtests.sh
@@ -485,6 +485,10 @@ CATEGORY="thp" run_test ./khugepaged

CATEGORY="thp" run_test ./khugepaged -s 2

+CATEGORY="thp" run_test ./khugepaged all:shmem
+
+CATEGORY="thp" run_test ./khugepaged -s 4 all:shmem
+
CATEGORY="thp" run_test ./transhuge-stress -d 20

# Try to create XFS if not provided
--
2.43.5