2012-06-20 34 views

risposta

22

Non sono un esperto qui, ma qui c'è qualcosa:

Box 1, No Numa:

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

Box 2, un po 'di 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

mia non dice nemmeno "Nessuna configurazione NUMA", corrisponde a tutti (Linux 2.6.18/CentOS) ... – Kevin

+2

'dmesg 'Anche a me manca la menzione di" NUMA ", perché è troppo presto. 'grep/var/log/dmesg', poiché è più probabile che abbia il registro completo. (E cosa significa "NUMA disattivato"?) – Thanatos

+0

Per me, 'dmesg' manca anche di menzione di" NUMA ", ma non ho accesso a/var/log/dmesg che richiede il privilegio di root. Eseguo 'find/proc | grep -i numa' e ho visto alcuni file' numa_maps'. Immagino che questo sia anche un simbolo che NUMA è abilitato. – Roun

13

penso che questa domanda precedente è simile: How to confirm NUMA?

In particolare, è possibile rivedere la pagina di manuale NUMA qui: http://man7.org/linux/man-pages/man7/numa.7.html

E da lì vedrete:

$ 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] 

E si può ottenere più in dettaglio in questo modo:

$ 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

per RedHat 4,5 e 6 sistemi, si può provare il di seguito per determinare se la configurazione NUMA è disabilitata:

numactl --show non mostra più nodi

# 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 

o numactl --hardware non elenca più nodi

# 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 
Problemi correlati