答案是未必:
numa node 的个数不一定等于物理cpu的个数。
需要具体看cpu的厂商与型号,比如下图,socket只有2个,但是numa node一共有8个.
上图出自:
在帖子(https://superuser.com/questions/916516/is-the-amount-of-numa-nodes-always-equal-to-sockets)中,也有人说numa node的数量未必物理cpu的个数:.
The number of NUMA nodes does not always equal the number of sockets.
For example, an AMD Threadripper 1950X has 1 socket and 2 NUMA nodes
while a dual Intel Xeon E5310 system can show 2 sockets and 1 NUMA node.