我怎么知道我的服务器是否有NUMA?

问题描述 投票:18回答:3

从Java垃圾收集中跳出来,我遇到了JVM settings for NUMA。奇怪的是我想检查我的CentOS服务器是否具有NUMA功能。是否有可以获取此信息的* ix命令或实用程序?

linux jvm kernel processor numa
3个回答
25
投票

我不是这里的专家,但这里有一些东西:

Bo x 1,Nouma:

~$ dmesg | grep -i numa
[    0.000000] No NUMA configuration found

方框2,添加一个:

~$ dmesg | grep -i numa
[    0.000000] NUMA: Initialized distance table, cnt=8
[    0.000000] NUMA: Node 4 [0,80000000) + [100000000,280000000) -> [0,280000000)

17
投票

我认为前一个问题是类似的:How to confirm NUMA?

特别是,您可以在这里查看NUMA手册页:http://man7.org/linux/man-pages/man7/numa.7.html

从那里你会看到:

$ find /proc -name numa_maps
/proc/1/task/1/numa_maps
/proc/1/numa_maps
/proc/2/task/2/numa_maps
/proc/2/numa_maps
/proc/3/task/3/numa_maps
[etc if you have numa]

你可以得到更多细节:

$ grep NUMA=y /boot/config-`uname -r`
CONFIG_NUMA=y
CONFIG_K8_NUMA=y
CONFIG_X86_64_ACPI_NUMA=y
CONFIG_ACPI_NUMA=y

$ numactl --hardware
available: 2 nodes (0-1)
node 0 size: 18156 MB
node 0 free: 9053 MB
node 1 size: 18180 MB
node 1 free: 6853 MB
node distances:
node   0   1
  0:  10  20
  1:  20  10

8
投票

对于Redhat 4,5,6和7系统,可以尝试以下操作来确定是否禁用NUMA配置:

numactl --show不显示多个节点

# 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

或numactl - 硬件不列出多个节点

# 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
© www.soinside.com 2019 - 2024. All rights reserved.