tech_memo / linux / NUMA


tech_memo/linux

numactl

  • numaパラメータ情報
    [root@racserver1 ~]# 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 1
    nodebind: 0 1
    membind: 0 1
  • node(socket)ごとの情報
    [root@racserver1 ~]# numactl --hardware
    available: 2 nodes (0-1)
    node 0 cpus: 0 1 2 3 4 5 12 13 14 15 16 17
    node 0 size: 49138 MB
    node 0 free: 29173 MB
    node 1 cpus: 6 7 8 9 10 11 18 19 20 21 22 23
    node 1 size: 49152 MB
    node 1 free: 30394 MB
    node distances:
    node   0   1
      0:  10  20
      1:  20  10

interleave option

  • interleave=default
    • http://jcole.us/blog/files/numa-imbalanced-allocation.png
  • interleave=all
    • http://jcole.us/blog/files/numa-balanced-allocation.png

swap insanity problem