Windows核实NUMA(node)

2024-03-08 16:51:07 浏览数 (1)

Socket/Node/Die/Core/Processor的区别

运行msinfo32,看右侧是几个处理器,1个就是单socket,2个就是双socket。

查看CPU个数:

代码语言:powershell复制
(Get-WmiObject -Class Win32_ComputerSystem).NumberOfProcessors

查看vCPU个数:

代码语言:powershell复制
(Get-WmiObject -Class Win32_ComputerSystem).NumberOfLogicalProcessors

除过msinfo32,还有其他命令。

1、https://live.sysinternals.com/coreinfo64.exe

命令用法:coreinfo64.exe -cgnsv

2、https://www.open-mpi.org/software/hwloc/v2.4/

命令用法:hwloc-info

可能有

2个node,双线程(这个我目前还没碰到,碰到了再补图)

2个node,单线程

1个node,双线程

1个node,单线程

举例:

2个node,单线程(注意看每行1个*)

coreinfo64.exe -cgnsv

Get-NetAdapterRss

1个node,双线程(注意看每行2个*)

coreinfo64.exe -cgnsv

Get-NetAdapterRss

1个node,单线程(注意看每行1个*)

coreinfo64.exe -cgnsv

Get-NetAdapterRss

前面说的"2个node,双线程(这个我目前还没碰到,碰到了再补图)"

现在遇到了

像这个就是,80核 机器,有2个CPU,每个CPU又是超线程,每个CPU有40个逻辑核

Get-NetAdapterRss

执行coreinfo64.exe -cgnsv的记录如下,

coreinfo64.exe -cgnsv

Coreinfo v3.52 - Dump information on system CPU and memory topology

Copyright (C) 2008-2021 Mark Russinovich

Sysinternals - www.sysinternals.com

Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz

Intel64 Family 6 Model 85 Stepping 4, GenuineIntel

Microcode signature: 02006A08

HYPERVISOR - Hypervisor is present

VMX * Supports Intel hardware-assisted virtualization

EPT * Supports Intel extended page tables (SLAT)

URG * Supports Intel unrestricted guest

Logical to Physical Processor Map:

Physical Processor 0 (Hyperthreaded):

**--------------------------------------

----------------------------------------

Physical Processor 1 (Hyperthreaded):

--**------------------------------------

----------------------------------------

Physical Processor 2 (Hyperthreaded):

----**----------------------------------

----------------------------------------

Physical Processor 3 (Hyperthreaded):

------**--------------------------------

----------------------------------------

Physical Processor 4 (Hyperthreaded):

--------**------------------------------

----------------------------------------

Physical Processor 5 (Hyperthreaded):

----------**----------------------------

----------------------------------------

Physical Processor 6 (Hyperthreaded):

------------**--------------------------

----------------------------------------

Physical Processor 7 (Hyperthreaded):

--------------**------------------------

----------------------------------------

Physical Processor 8 (Hyperthreaded):

----------------**----------------------

----------------------------------------

Physical Processor 9 (Hyperthreaded):

------------------**--------------------

----------------------------------------

Physical Processor 10 (Hyperthreaded):

--------------------**------------------

----------------------------------------

Physical Processor 11 (Hyperthreaded):

----------------------**----------------

----------------------------------------

Physical Processor 12 (Hyperthreaded):

------------------------**--------------

----------------------------------------

Physical Processor 13 (Hyperthreaded):

--------------------------**------------

----------------------------------------

Physical Processor 14 (Hyperthreaded):

----------------------------**----------

----------------------------------------

Physical Processor 15 (Hyperthreaded):

------------------------------**--------

----------------------------------------

Physical Processor 16 (Hyperthreaded):

--------------------------------**------

----------------------------------------

Physical Processor 17 (Hyperthreaded):

----------------------------------**----

----------------------------------------

Physical Processor 18 (Hyperthreaded):

------------------------------------**--

----------------------------------------

Physical Processor 19 (Hyperthreaded):

--------------------------------------**

----------------------------------------

Physical Processor 20 (Hyperthreaded):

----------------------------------------

**--------------------------------------

Physical Processor 21 (Hyperthreaded):

----------------------------------------

--**------------------------------------

Physical Processor 22 (Hyperthreaded):

----------------------------------------

----**----------------------------------

Physical Processor 23 (Hyperthreaded):

----------------------------------------

------**--------------------------------

Physical Processor 24 (Hyperthreaded):

----------------------------------------

--------**------------------------------

Physical Processor 25 (Hyperthreaded):

----------------------------------------

----------**----------------------------

Physical Processor 26 (Hyperthreaded):

----------------------------------------

------------**--------------------------

Physical Processor 27 (Hyperthreaded):

----------------------------------------

--------------**------------------------

Physical Processor 28 (Hyperthreaded):

----------------------------------------

----------------**----------------------

Physical Processor 29 (Hyperthreaded):

----------------------------------------

------------------**--------------------

Physical Processor 30 (Hyperthreaded):

----------------------------------------

--------------------**------------------

Physical Processor 31 (Hyperthreaded):

----------------------------------------

----------------------**----------------

Physical Processor 32 (Hyperthreaded):

----------------------------------------

------------------------**--------------

Physical Processor 33 (Hyperthreaded):

----------------------------------------

--------------------------**------------

Physical Processor 34 (Hyperthreaded):

----------------------------------------

----------------------------**----------

Physical Processor 35 (Hyperthreaded):

----------------------------------------

------------------------------**--------

Physical Processor 36 (Hyperthreaded):

----------------------------------------

--------------------------------**------

Physical Processor 37 (Hyperthreaded):

----------------------------------------

----------------------------------**----

Physical Processor 38 (Hyperthreaded):

----------------------------------------

------------------------------------**--

Physical Processor 39 (Hyperthreaded):

----------------------------------------

--------------------------------------**

Logical Processor to Socket Map:

Socket 0:

****************************************

----------------------------------------

Socket 1:

----------------------------------------

****************************************

Logical Processor to NUMA Node Map:

NUMA Node 0:

****************************************

----------------------------------------

NUMA Node 1:

----------------------------------------

****************************************

Logical Processor to Group Map:

Group 0:

****************************************

----------------------------------------

Group 1:

----------------------------------------

****************************************

PS C:UsersAdministrator>

执行hwloc-info的结果如下图

0 人点赞