Skip to content

Commit 2fd570c

Browse files
PacheNicoakpm00
authored andcommitted
selftests/mm: dont fail testsuite due to a lack of hugepages
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. Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Fixes: ee00479 ("selftests: vm: Try harder to allocate huge pages") Signed-off-by: Nico Pache <[email protected]> Cc: Ben Hutchings <[email protected]> Cc: Muhammad Usama Anjum <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Muchun Song <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 2394aef commit 2fd570c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tools/testing/selftests/mm/run_vmtests.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ if [ -n "$freepgs" ] && [ -n "$hpgsize_KB" ]; then
175175
if [ "$freepgs" -lt "$needpgs" ]; then
176176
printf "Not enough huge pages available (%d < %d)\n" \
177177
"$freepgs" "$needpgs"
178-
exit 1
179178
fi
180179
else
181180
echo "no hugetlbfs support in kernel?"

0 commit comments

Comments
 (0)