none
windows server 2016 WMI获取LoadPercentage=100 RRS feed

  • 问题

  • 有几台windows server2016的系统,现在使用WMI工具查询CPU使用情况,结果如下

    CPU0
    instance of Win32_Processor
    {
     AddressWidth = 64;
     Architecture = 9;
     AssetTag = "UNKNOWN";
     Availability = 3;
     Caption = "Intel64 Family 6 Model 85 Stepping 4";
     Characteristics = 252;
     CpuStatus = 1;
     CreationClassName = "Win32_Processor";
     CurrentClockSpeed = 2195;
     CurrentVoltage = 16;
     DataWidth = 64;
     Description = "Intel64 Family 6 Model 85 Stepping 4";
     DeviceID = "CPU0";
     ExtClock = 100;
     Family = 179;
     L2CacheSize = 14336;
     L3CacheSize = 19712;
     L3CacheSpeed = 0;
     Level = 6;
     LoadPercentage = 1;
     Manufacturer = "GenuineIntel";
     MaxClockSpeed = 2195;
     Name = "Intel(R) Xeon(R) Gold 5120 CPU @ 2.20GHz";
     NumberOfCores = 14;
     NumberOfEnabledCore = 14;
     NumberOfLogicalProcessors = 28;
     PartNumber = "";
     PowerManagementSupported = FALSE;
     ProcessorId = "BFEBFBFF00050654";
     ProcessorType = 3;
     Revision = 21764;
     Role = "CPU";
     SecondLevelAddressTranslationExtensions = TRUE;
     SerialNumber = "";
     SocketDesignation = "Proc 1";
     Status = "OK";
     StatusInfo = 3;
     SystemCreationClassName = "Win32_ComputerSystem";
     SystemName = "F5FDCPA10";
     ThreadCount = 28;
     UpgradeMethod = 54;
     Version = "";
     VirtualizationFirmwareEnabled = TRUE;
     VMMonitorModeExtensions = TRUE;
    };
    ====================================================================================================
    CPU1
    instance of Win32_Processor
    {
     AddressWidth = 64;
     Architecture = 9;
     AssetTag = "UNKNOWN";
     Availability = 3;
     Caption = "Intel64 Family 6 Model 85 Stepping 4";
     Characteristics = 252;
     CpuStatus = 1;
     CreationClassName = "Win32_Processor";
     CurrentClockSpeed = 2195;
     CurrentVoltage = 16;
     DataWidth = 64;
     Description = "Intel64 Family 6 Model 85 Stepping 4";
     DeviceID = "CPU1";
     ExtClock = 100;
     Family = 179;
     L2CacheSize = 14336;
     L3CacheSize = 19712;
     L3CacheSpeed = 0;
     Level = 6;
     LoadPercentage = 100;
     Manufacturer = "GenuineIntel";
     MaxClockSpeed = 2195;
     Name = "Intel(R) Xeon(R) Gold 5120 CPU @ 2.20GHz";
     NumberOfCores = 14;
     NumberOfEnabledCore = 14;
     NumberOfLogicalProcessors = 28;
     PartNumber = "";
     PowerManagementSupported = FALSE;
     ProcessorId = "BFEBFBFF00050654";
     ProcessorType = 3;
     Revision = 21764;
     Role = "CPU";
     SecondLevelAddressTranslationExtensions = TRUE;
     SerialNumber = "";
     SocketDesignation = "Proc 2";
     Status = "OK";
     StatusInfo = 3;
     SystemCreationClassName = "Win32_ComputerSystem";
     SystemName = "F5FDCPA10";
     ThreadCount = 28;
     UpgradeMethod = 54;
     Version = "";
     VirtualizationFirmwareEnabled = TRUE;
     VMMonitorModeExtensions = TRUE;
    };

    其中CPU0 中的LoadPercentage=1,而CPU1中的LoadPercentage=100

    请问LoadPercentage这个值的意思是什么呢,并且我在任务管理器中查看CPU使用率只有1%

    2021年3月4日 8:48

全部回复

  • 你好,

    CPU负载率(loadpercentage)和CPU利用率是两个概念。

    CPU负载率:显示的是一段时间内正在使用和等待使用CPU的平均任务数。CPU利用率高,并不意味着负载就一定大。举例来说:如果我有一个程序它需要一直使用CPU的运算功能,那么此时CPU的使用率可能达到100%,但是CPU的工作负载则是趋近于“1”,因为CPU仅负责一个工作。如果同时执行这样的程序两个呢?CPU的使用率还是100%,但是工作负载则变成2了。所以也就是说,当CPU的工作负载越大,代表CPU必须要在不同的工作之间进行频繁的工作切换。

    CPU利用率:显示的是程序在运行期间实时占用的CPU百分比。

    以下相关文章供您参考:

    https://blog.51cto.com/wks97/2073217

    (Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.)

    如果上述回复对您有帮助的话,请将回复标记为答案。感谢您!

    Best Regards,

    Anne


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    2021年3月5日 8:00
  • 你好,
    请问上述回复对您有帮助吗,如果有,请将有用的回复标记为答案。 这样可以帮助其他用户更快找到有用的信息,同时也可以提高大家回复您帖子的积极性。感谢您!

    Best Regards,
    Anne

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    2021年3月15日 3:15