[LTP] [PATCH v2 0/3] hugemmap10: Add NUMA hugetlb regression test

Huaisheng Ye yehuaisheng@open-hieco.net
Mon Nov 23 09:05:34 CET 2026


The existing hugemmap10 counter test does not reliably exercise the
hugetlb NUMA regression fixed by Linux commit
21f514ad520459fbfa58ccdf171bb68148c2f5aa. Free hugepages may be
available globally but located outside the nodes allowed by the task's
memory policy, so the test needs to establish this state explicitly.

Add a NUMA subtest which binds the task to the second memory node, keeps
free hugepages on the first node, and reuses the existing counter-test
sequence for base pool sizes from zero through three. The original test
continues to run unchanged as the default subtest.

Changes since v1:

  - Move the regression description and reproduction command into the
    existing LTP documentation comment so they are exported properly.
  - Add a separate NUMA subtest instead of relying on an externally
    configured numactl environment.
  - Reuse the original five mapping scenarios and base pool sizes 0-3,
    while skipping only the NUMA subtest when its prerequisites cannot
    be established.
  - Save and restore the inherited memory policy and the affected
    per-node persistent hugepage pools.
  - Split the NUMA test implementation and its diagnostic logging into
    separate patches.

v1: https://lore.kernel.org/ltp/20261116101559.93229-1-yehuaisheng@open-hieco.net/

Tested on a NUMA system:

  make -C testcases/kernel/mem/hugetlb/hugemmap hugemmap10
  ./hugemmap10 -D2
  ./hugemmap10 -D2 -n

The test completed with two passing subtests.

Huaisheng Ye (3):
  hugemmap10: Add linux-git tag for NUMA fix
  hugemmap10: Reuse counter tests with a NUMA bind policy
  hugemmap10: Add NUMA counter test diagnostics

 .../kernel/mem/hugetlb/hugemmap/hugemmap10.c  | 251 +++++++++++++++++-
 1 file changed, 239 insertions(+), 12 deletions(-)

-- 
2.52.0


More information about the ltp mailing list