A THP allocation attempt on a non-local NUMA node with MPOL_PREFERRED policy does not work as expected
Issue
- A THP allocation attempt on the
preferred nodei.e. on a non-local NUMA node is not respected:
$ numactl -p 1 ./thp
Per-node process memory usage (in MBs) for PID 5631 (thp)
Node 0 Node 1 Total
--------------- --------------- ---------------
Huge 0.00 0.00 0.00
Heap 0.00 0.00 0.00
Stack 0.00 0.01 0.01
Private 10238.38 2.07 10240.45
---------------- --------------- --------------- ---------------
Total 10238.38 2.09 10240.46
Environment
- Red Hat Enterprise Linux 7.4
- kernel-3.10.0-693.el7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.