在英特尔系统上> 64个处理器将处理器拆分为Group以便于寻址。例如,具有72个处理器的系统将具有组0和组1,每组具有36个处理器。以下内容为我提供了处理器组计数。
pGetMaximumProcessorGroupCount = (PROC_ADDR_GMPGC) GetProcAddress(hmod, "GetMaximumProcessorGroupCount")
如何使用wmic.exe获取组计数和组号?
最初我想从wmic命令行获取处理器数量,因此我输入了cpu get -?
但它没有列出任何有用的选项。然而另一个Stack Over答案提到:
wmic:root\cli>cpu get NumberOfCores NumberOfLogicalProcessors/Format:List
它工作正常。
如何找到不公开选项NumberOfCores
和NumberOfLogicalProcessors
?请指出可能回答我的第一个问题的文档网址。
回答我的第二个问题:
wmic:root\cli>cpu get
AddressWidth Architecture Availability Caption
64 9 3 Intel64 Family 6 Model 26 Stepping 5
64 9 3 Intel64 Family 6 Model 26 Stepping 5
ConfigManagerErrorCode ConfigManagerUserConfig CpuStatus CreationClassName
1 Win32_Processor
1 Win32_Processor
CurrentClockSpeed CurrentVoltage DataWidth Description
3193 12 64 Intel64 Family 6 Model 26 Stepping 5
3193 12 64 Intel64 Family 6 Model 26 Stepping 5
DeviceID ErrorCleared ErrorDescription ExtClock Family InstallDate L2CacheSize
CPU0 133 179 1024
CPU1 133 179 1024
L2CacheSpeed L3CacheSize L3CacheSpeed LastErrorCode Level LoadPercentage
8192 0 6 96
8192 0 6 12
Manufacturer MaxClockSpeed Name
GenuineIntel 3193 Intel(R) Xeon(R) CPU W5580 @ 3.20GHz
GenuineIntel 3193 Intel(R) Xeon(R) CPU W5580 @ 3.20GHz
NumberOfCores NumberOfLogicalProcessors OtherFamilyDescription PNPDeviceID
4 8
4 8
PowerManagementCapabilities PowerManagementSupported ProcessorId ProcessorType
FALSE BFEBFBFF000106A5 3
FALSE BFEBFBFF000106A5 3
Revision Role SocketDesignation Status StatusInfo Stepping
6661 CPU CPU1 OK 3
6661 CPU CPU2 OK 3
SystemCreationClassName SystemName UniqueId UpgradeMethod Version VoltageCaps
Win32_ComputerSystem AGVARDHA-DESK2 25
Win32_ComputerSystem AGVARDHA-DESK2 25