numactl
numactl -H 可以显示numa 拓扑信息, 从一下命令可以看出,这个服务器有两个节点。 node0拥有32个逻辑cpu, 128G内存。
$numactl -H
available: 2 nodes (0-1)
node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
node 0 size: 128228 MB
node 0 free: 25526 MB
node 1 cpus: 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
node 1 size: 129011 MB
node 1 free: 62602 MB
node distances:
node 0 1
0: 10 20
1: 20 10
lscpu 结果如下:总共有2个物理CPU(Socket(s)), 每一个物理cpu 有16个物理核(core), 每个物理核2个逻辑线程。 所以总共有2 * 16 * 2 个逻辑cpu,
结合以上的结果, 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 是cpu0的主线程, 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47是cpu0虚拟出来的超线程
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31是cpu1的主线程,48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63是cpu1虚拟出来的超线程
$lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 46 bits physical, 57 bits virtual
Byte Order: Little Endian
CPU(s): 64
On-line CPU(s) list: 0-63
Vendor ID: GenuineIntel
BIOS Vendor ID: Intel(R) Corporation
Model name: Intel(R) Xeon(R) Silver 4314 CPU @ 2.40GHz
BIOS Model name: Intel(R) Xeon(R) Silver 4314 CPU @ 2.40GHz CPU @ 2.4GHz
BIOS CPU family: 179
CPU family: 6
Model: 106
Thread(s) per core: 2
Core(s) per socket: 16
Socket(s): 2
Stepping: 6

浙公网安备 33010602011771号