[LTP] [PATCH] hugemmap10: Add linux-git tag for NUMA fix
Cyril Hrubis
chrubis@suse.cz
Mon Nov 16 13:52:11 CET 2026
Hi!
> +/*
> + * This test also covers the NUMA regression fixed by Linux commit
> + * 21f514ad520459fbfa58ccdf171bb68148c2f5aa. If free huge pages are outside
> + * the nodes allowed by the task's cpuset or MPOL_BIND policy, hugetlb must
> + * account for the allowed-node shortfall when gathering surplus pages.
> + * Otherwise mmap() may fail with ENOMEM even when nr_overcommit_hugepages
> + * permits allocating surplus pages on the allowed nodes.
> + *
> + * The issue can be exercised on a system with two or more NUMA nodes, for
> + * example with:
> + *
> + * numactl --cpunodebind=0 --membind=1 ./hugemmap10
If nothing else, this text should be part of the doc comment just above
it so that it's properly exported to documentation.
Also if the test needs to be bind to specific nodes to reproduce the
problem, it would make sense (in a separate patch) to add a subtest to
the test so that we can test it properly.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list