2012-06-20 122 views

回答

22

我在這裏不是什麼專家,但這裏的東西:

箱1,無NUMA:

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

盒2,一些NUMA:

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

煤礦甚至沒有說 「不NUMA配置」,在所有(的Linux 2.6.18/CentOS的)匹配... – Kevin

+2

dmesg的' '對我來說也缺乏任何關於「NUMA」的提及,因爲這太早了。而不是使用'grep/var/log/dmesg',因爲它更有可能擁有完整的日誌。 (「NUMA關閉」是什麼意思?) – Thanatos

+0

對我來說,'dmesg'也沒有提到「NUMA」,但我無法訪問需要root權限的/ var/log/dmesg。我運行'find/proc | grep -i numa'並看到一些'numa_maps'文件。我想這也是NUMA啓用的一個標誌。 – Roun

13

我覺得這先前的問題是類似的: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 
4

紅帽4,5和6個系統,可以試試以確定是否禁用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的--hardware不會列出多個節點

# 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 
相關問題