Hi all,
This series fixes issues in the hugetlb and KSM MM selftest categories
that can report failures when the prerequisites for the tests are not
satisfied.
Patch 1 updates the hugetlb selftest helpers to handle -EINVAL when
attempting to configure gigantic HugeTLB pages via nr_hugepages.
PowerPC hash MMU pSeries systems expose gigantic hugepage sizes
but do not allow runtime allocation of such pages,
causing the sysfs write to fail. Handle this case gracefully and
continue running the test instead of aborting.
Patch 2 fixes the KSM NUMA merge test on systems with memoryless NUMA
nodes. The test currently relies on the number of configured NUMA nodes
and may attempt allocations on nodes that have no memory, resulting in
spurious failures. Count only NUMA nodes that contain memory and skip
the test when fewer than two such nodes are available.
These changes improve handling of unsupported test configurations and
unmet test prerequisites, avoiding spurious failures.
Thanks,
Sayali
Sayali Patil (2):
selftests/mm: handle EINVAL when configuring gigantic hugepages
selftests/mm: fix ksm NUMA merge test for systems with memoryless NUMA
nodes
tools/testing/selftests/mm/ksm_tests.c | 26 ++++++++++++++++++--------
tools/testing/selftests/mm/vm_util.c | 7 +++++++
2 files changed, 25 insertions(+), 8 deletions(-)
--
2.52.0