A THP allocation attempt on a non-local NUMA node with MPOL_PREFERRED policy does not work as expected

Solution In Progress - Updated -

Issue

  • A THP allocation attempt on the preferred node i.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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content