How do I know if my server has NUMA?

后端 未结 5 1110
失恋的感觉
失恋的感觉 2021-02-01 19:03

Hopping from Java Garbage Collection, I came across JVM settings for NUMA. Curiously I wanted to check if my CentOS server has NUMA capabilities or not. Is there a *ix command o

5条回答
  •  天命终不由人
    2021-02-01 19:47

    For Redhat 4,5,6 and 7 systems, one can try the following to determine if NUMA configuration is disabled:

    numactl --show does not show multiple nodes

    # numactl --show
    policy: default
    preferred node: current
    physcpubind: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
    cpubind: 0
    nodebind: 0
    membind: 0
    

    or numactl --hardware does not list multiple nodes

    # numactl --hardware
    available: 1 nodes (0)
    node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
    node 0 size: 524163 MB
    node 0 free: 505253 MB
    node distances:
    node   0
      0:  10
    

提交回复
热议问题