Skip to contentSkip to conversation

selftests-mm-dont-fail-testsuite-due-to-a-lack-of-hugepages.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Mar 12, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: selftests/mm: dont fail testsuite due to a lack of hugepages
has been removed from the -mm tree. Its filename was
selftests-mm-dont-fail-testsuite-due-to-a-lack-of-hugepages.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Nico Pache <[email protected]>
Subject: selftests/mm: dont fail testsuite due to a lack of hugepages
Date: Wed, 6 Mar 2024 15:37:12 -0700

Patch series "selftests/mm: Improve Hugepage Test Handling in MM Selftests", v2.

This series addresses issues related to hugepage requirements in the MM selftests, ensuring tests are skipped rather than failing when the necessary hugepage count is not met.

This adjustment allows for a more graceful handling for systems with insufficient hugepages, preventing unnecessary test failures and improving the overall robustness of the test suite.

This patch (of 3):

On systems that have large core counts and large page sizes, but limited memory, the userfaultfd test hugepage requirement is too large.

Exiting early due to missing one test's requirements is a rather aggressive strategy, and prevents a lot of other tests from running. Remove the early exit to prevent this.

Fixes ee00479d6702 ("selftests: vm: Try harder to allocate huge pages")
Cc Ben Hutchings <[email protected]>
Cc Muhammad Usama Anjum <[email protected]>
Cc Shuah Khan <[email protected]>
Cc Muchun Song <[email protected]>

---

 tools/testing/selftests/mm/run_vmtests.sh |    1 -
 1 file changed, 1 deletion(-)
tools/testing/selftests/mm/run_vmtests.sh renamed from tools/testing/selftests/mm/run_vmtests.sh~selftests-mm-dont-fail-testsuite-due-to-a-lack-of-hugepages +0 -1
@@ -175,7 +175,6 @@ if [ -n "$freepgs" ] && [ -n "$hpgsize_K
 	if [ "$freepgs" -lt "$needpgs" ]; then
 		printf "Not enough huge pages available (%d < %d)\n" \
 		       "$freepgs" "$needpgs"
-		exit 1
 	fi
 else
 	echo "no hugetlbfs support in kernel?"

_

Patches currently in -mm which might be from [email protected] are