Hüpfend von Java Garbage Collection stieß ich auf JVM settings for NUMA. Seltsamerweise wollte ich überprüfen, ob mein CentOS-Server NUMA-Fähigkeiten hat oder nicht. Gibt es einen * ix-Befehl oder ein Dienstprogramm, das diese Informationen erfassen kann?Woher weiß ich, ob mein Server NUMA hat?
15
A
Antwort
22
Ich bin kein Experte hier, aber hier ist etwas:
Box 1, Nr NUMA:
~$ dmesg | grep -i numa
[ 0.000000] No NUMA configuration found
Box 2, einige NUMA:
~$ dmesg | grep -i numa
[ 0.000000] NUMA: Initialized distance table, cnt=8
[ 0.000000] NUMA: Node 4 [0,80000000) + [100000000,280000000) -> [0,280000000)
13
ich denke, das vorherige Frage ist ähnlich: How to confirm NUMA?
Insbesondere können Sie die NUMA man-Seite hier überprüfen: http://man7.org/linux/man-pages/man7/numa.7.html
Und von dort werden Sie sehen:
$ 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]
Und Sie können wie so mehr Details erhalten:
$ 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
Für Redhat 4,5 und 6-Systemen kann man versuchen, die um festzustellen, ob die NUMA - Konfiguration deaktiviert ist:
numactl --show zeigt nicht mehrere Knoten an
# 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
oder numactl --hardware nicht mehrere Knoten auflistet
# 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
-Mine nicht einmal "Nein NUMA-Konfiguration" sagt, der bei allen Spielen (Linux 2.6.18/CentOS) ... – Kevin
'dmesg 'für mich fehlt auch jede Erwähnung von" NUMA ", weil es zu früh ist. 'grep/var/log/dmesg' stattdessen, da es wahrscheinlicher ist, das vollständige Protokoll zu haben. (Und was bedeutet "NUMA ausgeschaltet." Bedeutet?) – Thanatos
Für mich, 'dmesg' fehlt auch die Erwähnung von" NUMA ", aber ich habe keinen Zugriff auf/var/log/dmesg, die Root-Privilegien benötigen. Ich laufe 'find/proc | grep -i numa' und sehe einige' numa_maps' Dateien. Ich denke, das ist auch ein Symbol, dass NUMA aktiviert ist. – Roun