rgw2qe 发表于 2015-4-8 08:55:53

查看Windows服务器的CPU详细信息

查看Windows服务器的CPU详细信息

让我们来看看Win32_Processor类的几个关键属性:

[*] AddressWidth On a 32-bit operating system, the value is 32 and on a 64-bit operating system it is 64.

[*] Architecture Processor architecture used by the platform.



Value
Meaning

0 (0x0)
x86

1 (0x1)
MIPS

2 (0x2)
Alpha

3 (0x3)
PowerPC

5 (0x5)
ARM

6 (0x6)
Itanium-based systems

9 (0x9)
x64



[*] NumberOfCores Number of cores for the current instance of the processor. A core is a physical processor on the integrated circuit. For example, in a dual-core processor this property has a value of 2.

[*] NumberOfLogicalProcessors Number of logical processors for the current instance of the processor. For processors capable of hyperthreading, this value includes only the processors which have hyperthreading enabled.


DOS命令查看
C:\Users\xucy>wmic cpu get addresswidth,architecture,deviceid,name,numberofcores,numberoflogicalprocessors

AddressWidth Architecture DeviceID Name NumberOfCores NumberOfLogicalProcessors
64 9 CPU0 Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz 6 12
64 9 CPU1 Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz 6 12

PowerShell查看
PS C:\Users\xucy> Get-WmiObject -Class Win32_Processor | Format-Table -AutoSize AddressWidth,Architecture,DeviceId,Name,NumberOfCores,NumberOfLogicalProcessors

AddressWidth Architecture DeviceID Name NumberOfCores NumberOfLogicalProcessors
64 9 CPU0 Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz 6 12
64 9 CPU1 Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz 6 12

综上所述,我的CPU是双路六核开启超线程。

参考:
Win32_Processor class https://msdn.microsoft.com/en-us/library/aa394373%28VS.85%29.aspx

页: [1]
查看完整版本: 查看Windows服务器的CPU详细信息