Ubuntu 20.04 高负载下 Intel Core i7-8550U CPU 频率下降

Ubuntu 20.04 高负载下 Intel Core i7-8550U CPU 频率下降

我安装了 Ubuntu 20.04,并且具有以下 CPU:

grep -E '^model name|^cpu MHz' /proc/cpuinfo

model name  : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
cpu MHz     : 3000.025
model name  : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
cpu MHz     : 2721.680
model name  : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
cpu MHz     : 2999.579
model name  : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
cpu MHz     : 3000.027
model name  : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
cpu MHz     : 2993.468
model name  : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
cpu MHz     : 3000.568
model name  : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
cpu MHz     : 2989.114
model name  : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
cpu MHz     : 3001.278

我使用以下命令来设置调速器和频率范围:

sudo cpupower frequency-set --governor performance --min 2600000 --max 3000000

并使用以下命令来验证:

cpupower frequency-info

analyzing CPU 0:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 400 MHz - 4.00 GHz
  available cpufreq governors: performance powersave
  current policy: frequency should be within 2.60 GHz and 3.00 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 3.00 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes

电流频率在指定范围内,在空载条件下是正确的。

然而,在我启动加载 CPU 的程序(gmic)后,当前频率降至指定范围以下:

cpupower frequency-info

analyzing CPU 0:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 400 MHz - 4.00 GHz
  available cpufreq governors: performance powersave
  current policy: frequency should be within 2.60 GHz and 3.00 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 1.80 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes

在 Windows 下,我运行相同的应用程序,并实现了更高的性能。在无负载条件下,频率约为 1GHz,而在负载下,频率跳升至 2.6GHz。因此,我认为这不是硬件或 BIOS 相关的问题。

我重启了 Ubuntu 以放弃我的 CPU 频率更改(因此它们再次恢复为默认值)。我将使用以下命令监控 CPU 频率和其他重要信息涡轮增压器公用事业。

以下是涡轮增压器输出:

sudo turbostat --Summary --quiet --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt --interval 5

Busy%  Bzy_MHz    IRQ   PkgTmp PkgWatt GFXWatt RAMWatt
0.85     703     1663     45    1.22    0.00    0.00
0.81     654     1565     46    1.22    0.00    0.00
0.63     656     1338     45    1.19    0.00    0.00
0.74     664     1440     45    1.20    0.00    0.00
2.71     1650    2587     46    1.76    0.00    0.00
4.44     842     4362     46    1.53    0.00    0.00
5.35     1667    4806     46    2.45    0.00    0.00
5.47     831     4510     46    1.53    0.00    0.00
5.50     991     5130     47    1.68    0.00    0.00
2.73     1093    3055     48    1.48    0.00    0.00
2.49     1025    2780     57    1.47    0.00    0.00
2.28     2651    2098     47    2.53    0.00    0.00
1.35     1908    1685     47    1.63    0.00    0.00
1.03     1063    1823     47    1.29    0.00    0.00
1.41     995     2057     47    1.37    0.00    0.00
1.00     1003    1628     46    1.29    0.00    0.00
1.48     1132    1946     46    1.36    0.00    0.00
0.88     935     1488     46    1.25    0.00    0.00
1.13     957     1740     46    1.30    0.00    0.00
1.07     904     1660     46    1.28    0.00    0.00
2.85     895     3249     46    1.52    0.00    0.00
1.19     755     1686     46    1.25    0.00    0.00
2.25     1224    2992     70    1.57    0.00    0.00

# the moment program that loads cpu started

82.89    3703    13909    71    23.55   0.00    0.00
99.70    2589    11348    54    14.88   0.00    0.00
99.64    1960    11179    53    6.04    0.00    0.00
99.67    2122    11149    53    6.37    0.00    0.00
98.61    1851    11558    54    6.59    0.00    0.00
99.71    1577    11087    53    6.38    0.00    0.00
99.72    1546    11028    54    6.37    0.00    0.00
99.70    1740    11231    54    6.28    0.00    0.00
99.63    1945    11376    54    6.45    0.00    0.00
99.56    1939    11804    52    6.51    0.00    0.00
99.60    1949    11816    52    6.46    0.00    0.00
99.63    1971    11599    54    6.49    0.00    0.00
99.74    1833    11475    52    6.51    0.00    0.00
99.76    1711    11436    53    6.45    0.00    0.00
99.74    1800    11383    52    6.28    0.00    0.00
99.71    2117    11446    53    6.45    0.00    0.00
99.45    2031    11728    55    6.64    0.00    0.00
99.61    1646    11629    53    6.54    0.00    0.00
99.74    1562    11550    53    6.37    0.00    0.00
99.74    1599    11559    53    6.45    0.00    0.00
99.69    1670    11379    52    6.37    0.00    0.00
99.67    1866    11664    52    6.40    0.00    0.00
99.62    1963    11871    53    6.44    0.00    0.00
99.60    1961    11956    54    6.53    0.00    0.00
99.64    1919    11791    52    6.41    0.00    0.00
99.72    1831    11575    54    6.54    0.00    0.00
99.74    1794    11408    54    6.40    0.00    0.00
99.74    1802    11737    53    6.44    0.00    0.00
99.71    1991    11491    52    6.38    0.00    0.00
99.70    2005    11542    53    6.61    0.00    0.00
97.88    1706    11697    53    6.51    0.00    0.00
99.73    1571    12302    53    6.38    0.00    0.00
99.72    1550    12159    54    6.47    0.00    0.00
94.27    1650    12576    50    6.04    0.00    0.00

# the moment program that loads cpu terminated

3.03     827     3706     48    1.49    0.00    0.00
1.73     789     2349     47    1.32    0.00    0.00
2.88     818     3389     47    1.38    0.00    0.00
1.82     777     2359     46    1.27    0.00    0.00
1.74     730     2233     47    1.25    0.00    0.00
2.28     756     2906     46    1.31    0.00    0.00
2.59     813     2916     45    1.34    0.00    0.00
2.59     909     3089     46    1.39    0.00    0.00
2.32     752     3077     46    1.33    0.00    0.00
2.09     899     2738     45    1.31    0.00    0.00
1.79     808     2245     45    1.27    0.00    0.00
1.73     818     2126     44    1.26    0.00    0.00
1.78     808     2231     44    1.26    0.00    0.00
1.88     870     2320     45    1.31    0.00    0.00

现在我将再次执行以下命令:

sudo cpupower frequency-set --governor performance --min 2600000 --max 3000000

让我们来看看涡轮增压器这些条件下的输出:

sudo turbostat --Summary --quiet --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt --interval 5

Busy%   Bzy_MHz  IRQ    PkgTmp PkgWatt GFXWatt RAMWatt
0.67     2999    2148     45    1.44    0.00    0.00
0.74     2999    2251     45    1.44    0.00    0.00
0.69     2999    2130     45    1.42    0.00    0.00
1.81     2998    3719     45    2.01    0.00    0.00
2.76     2993    5245     45    2.49    0.00    0.00
0.96     2997    3300     45    1.62    0.00    0.00
0.99     2996    3248     45    1.63    0.00    0.00
1.56     2988    4440     46    1.93    0.00    0.00
0.61     2999    2106     45    1.41    0.00    0.00
0.60     2998    2200     45    1.40    0.00    0.00
0.60     2974    2105     45    1.42    0.00    0.00
0.69     2958    2280     45    1.45    0.00    0.00
0.73     2976    2829     45    1.46    0.00    0.00
0.69     3000    2127     45    1.43    0.00    0.00
0.67     2998    2071     45    1.43    0.00    0.00
0.89     3000    2709     45    1.61    0.00    0.00
1.27     2997    3685     45    1.85    0.00    0.00

# the moment program that loads cpu started

11.67    3000    4679     58    3.48    0.00    0.00
99.74    3000    12823    70    14.83   0.00    0.00
99.69    3000    11618    64    16.38   0.00    0.00
99.69    2623    11406    54    9.63    0.00    0.00
95.83    1975    11912    56    6.35    0.00    0.00
99.02    1650    11763    53    6.36    0.00    0.00
99.73    1525    11397    54    6.34    0.00    0.00
99.73    1593    12664    53    6.32    0.00    0.00
99.67    1812    13476    52    6.40    0.00    0.00
99.63    1913    13013    53    6.39    0.00    0.00
99.51    1934    11901    54    6.48    0.00    0.00
99.62    1973    11892    52    6.44    0.00    0.00
99.70    1899    11586    54    6.59    0.00    0.00
99.76    1775    11497    54    6.45    0.00    0.00
99.76    1702    11638    54    6.40    0.00    0.00
99.71    1975    11709    53    6.28    0.00    0.00
99.69    2134    11636    53    6.52    0.00    0.00
99.37    1841    11991    53    6.66    0.00    0.00
99.66    1577    11541    53    6.43    0.00    0.00
99.69    1580    11430    53    6.38    0.00    0.00
99.73    1576    11357    53    6.43    0.00    0.00
99.69    1759    11356    52    6.34    0.00    0.00
99.62    1934    11787    53    6.46    0.00    0.00
99.49    1955    11894    52    6.50    0.00    0.00
99.63    1939    11815    52    6.48    0.00    0.00
99.70    1938    11668    53    6.48    0.00    0.00
99.75    1751    11530    54    6.47    0.00    0.00
99.75    1734    11578    53    6.45    0.00    0.00
44.89    1778    8422     49    3.88    0.00    0.00

# the moment program that loads cpu terminated

0.61     2997    2309     48    1.49    0.00    0.00
0.88     2999    4576     47    1.54    0.00    0.00
0.68     3000    1906     47    1.43    0.00    0.00
0.85     2995    2237     46    1.54    0.00    0.00
0.89     2987    2430     46    1.53    0.00    0.00
0.61     2989    2091     46    1.41    0.00    0.00
0.66     2934    1990     46    1.46    0.00    0.00
1.58     2980    4030     46    2.05    0.00    0.00
1.49     2995    4678     46    2.01    0.00    0.00
1.46     2991    4713     45    1.97    0.00    0.00
0.74     2994    2481     46    1.49    0.00    0.00
0.82     2999    3804     45    1.48    0.00    0.00
0.69     2997    2095     45    1.44    0.00    0.00
0.75     2997    2688     45    1.49    0.00    0.00
0.59     3000    1957     45    1.39    0.00    0.00
0.67     2996    2041     45    1.43    0.00    0.00
1.11     2999    3236     45    1.68    0.00    0.00
1.31     2997    3892     46    1.79    0.00    0.00

因此,Ubuntu 似乎正在限制 CPU 功耗。由于不可能保持在高负载下并保持在指定的频率范围内(当功耗降低时),因此频率会下降以满足功率限制。

现在我再次重新启动 Ubuntu,因此 CPU 频率恢复到默认值。

我确实正在运行thermald:

sudo service thermald status

● thermald.service - Thermal Daemon Service
     Loaded: loaded (/lib/systemd/system/thermald.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2021-04-09 09:11:43 EEST; 9h ago
   Main PID: 889 (thermald)
      Tasks: 2 (limit: 19017)
     Memory: 6.7M
     CGroup: /system.slice/thermald.service
             └─889 /usr/sbin/thermald --no-daemon --dbus-enable

кві 09 09:11:43 igor-HP-ProBook-450-G5 thermald[889]: [WARN]sensor id 16 : No temp sysfs for reading raw temp
кві 09 09:11:43 igor-HP-ProBook-450-G5 systemd[1]: Started Thermal Daemon Service.
кві 09 09:11:43 igor-HP-ProBook-450-G5 thermald[889]: [WARN]sensor id 16 : No temp sysfs for reading raw temp
кві 09 09:11:43 igor-HP-ProBook-450-G5 thermald[889]: I/O warning : failed to load external entity "/etc/thermald/thermal-conf.xml"
кві 09 09:11:43 igor-HP-ProBook-450-G5 thermald[889]: [WARN]error: could not parse file /etc/thermald/thermal-conf.xml
кві 09 09:11:43 igor-HP-ProBook-450-G5 thermald[889]: [WARN]sysfs open failed
кві 09 09:11:43 igor-HP-ProBook-450-G5 thermald[889]: I/O warning : failed to load external entity "/etc/thermald/thermal-conf.xml"
кві 09 09:11:43 igor-HP-ProBook-450-G5 thermald[889]: [WARN]error: could not parse file /etc/thermald/thermal-conf.xml
кві 09 09:11:43 igor-HP-ProBook-450-G5 thermald[889]: I/O warning : failed to load external entity "/etc/thermald/thermal-conf.xml"
кві 09 09:11:43 igor-HP-ProBook-450-G5 thermald[889]: [WARN]error: could not parse file /etc/thermald/thermal-conf.xml

所以我停止了它(它并没有解决 CPU 限制问题):

sudo service thermald stop

并确认它不再处于活动状态:

sudo service thermald status

● thermald.service - Thermal Daemon Service
     Loaded: loaded (/lib/systemd/system/thermald.service; enabled; vendor preset: enabled)
     Active: inactive (dead) since Fri 2021-04-09 18:37:15 EEST; 2s ago
    Process: 889 ExecStart=/usr/sbin/thermald --no-daemon --dbus-enable (code=exited, status=0/SUCCESS)
   Main PID: 889 (code=exited, status=0/SUCCESS)

кві 09 09:11:43 igor-HP-ProBook-450-G5 thermald[889]: [WARN]sysfs open failed
кві 09 09:11:43 igor-HP-ProBook-450-G5 thermald[889]: I/O warning : failed to load external entity "/etc/thermald/thermal-conf.xml"
кві 09 09:11:43 igor-HP-ProBook-450-G5 thermald[889]: [WARN]error: could not parse file /etc/thermald/thermal-conf.xml
кві 09 09:11:43 igor-HP-ProBook-450-G5 thermald[889]: I/O warning : failed to load external entity "/etc/thermald/thermal-conf.xml"
кві 09 09:11:43 igor-HP-ProBook-450-G5 thermald[889]: [WARN]error: could not parse file /etc/thermald/thermal-conf.xml
кві 09 18:37:13 igor-HP-ProBook-450-G5 systemd[1]: Stopping Thermal Daemon Service...
кві 09 18:37:13 igor-HP-ProBook-450-G5 thermald[889]: [WARN]Terminating ...
кві 09 18:37:14 igor-HP-ProBook-450-G5 thermald[889]: [WARN]terminating on user request ..
кві 09 18:37:15 igor-HP-ProBook-450-G5 systemd[1]: thermald.service: Succeeded.
кві 09 18:37:15 igor-HP-ProBook-450-G5 systemd[1]: Stopped Thermal Daemon Service.

收集以下数据:

1. turbostat header
2. rdmsr (MSR_CORE_PERF_LIMIT_REASONS)
3. params in /sys/devices/system/cpu/intel_pstate directory
4. params in /sys/class/powercap/intel-rapl/intel-rapl:0 directory
5. scaling limits in /sys/devices/system/cpu/cpu*/cpufreq directory

我写了以下脚本(收集CPU信息):

#!/bin/bash

exec_turbostat()
{
    echo "turbostat --Summary --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt --interval 0.001 --num_iterations 1"
    turbostat --Summary --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt --interval 0.001 --num_iterations 1
}

exec_rdmsr()
{
    echo "rdmsr 0x64f"
    rdmsr 0x64f
}

watch_intel_pstate()
{
    echo "grep . /sys/devices/system/cpu/intel_pstate/*"
    grep . /sys/devices/system/cpu/intel_pstate/*
}

watch_intel_rapl()
{
    echo "grep . /sys/class/powercap/intel-rapl/intel-rapl:0/*"
    grep . /sys/class/powercap/intel-rapl/intel-rapl:0/*
}

watch_cpufreq()
{
    echo "grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_m*"
    grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_m*
}

while sleep 5
do
    echo "------------------------------------------------------------------------------------------------"
    exec_turbostat
    echo ""
    exec_rdmsr
    echo ""
    watch_intel_pstate
    echo ""
    watch_intel_rapl
    echo ""
    watch_cpufreq
done

让我们运行它(由于日志太大,所以不提供完整日志,我只会显示负载 - 无负载转捩點):

<<< see log below in my next post, because post size is limited >>>

我的笔记本电脑一直处于插入状态,因此不会出现与电池相关的电源限制问题。

你知道如何在 Ubuntu 上关闭 CPU 功率限制吗?这样 CPU 将消耗保持高频率所需的最大功率。任何评论都将受到赞赏。谢谢。

答案1

读者们:请大家耐心等待,最终问题和答案有望缩减为一些简洁的内容。

在提供的所有信息中,这是最相关的:

cpu0: MSR_RAPL_POWER_UNIT: 0x000a0e03 (0.125000 Watts, 0.000061 Joules, 0.000977 sec.)
cpu0: MSR_PKG_POWER_INFO: 0x00000078 (15 W TDP, RAPL 0 - 0 W, 0.000000 sec.)
cpu0: MSR_PKG_POWER_LIMIT: 0x42016000dc8090 (UNlocked)
cpu0: PKG Limit #1: ENabled (18.000000 Watts, 28.000000 sec, clamp DISabled)
cpu0: PKG Limit #2: DISabled (44.000000 Watts, 0.002441* sec, clamp DISabled)
...
Busy%  Bzy_MHz   IRQ  PkgTmp  PkgWatt  GFXWatt   RAMWatt
99.77   1700     17    55      7.24     0.00      0.00

rdmsr 0x64f
3d030400

表明处理器目前由于处理器封装功率限制 #1 而受到限制,但与此同时处理器还远未达到封装功率限制 #1,至少如果我们相信 turbostat 告诉我们的话。

手动解码 MSR 0x64F 可得出,除其他外,位 10 被设置。来自 64-ia-32-architectures-software-developer-manual-325462:

封装/平台级功率限制 PL1 状态(R0)设置时,由于封装/平台级功率限制 PL1,频率会降低到操作系统要求以下。

其余位均为锁存日志位,目前不相关。

RAPL_POWER_UNIT MSR(0x606)给出 0x000a0e03,它正确解码为每比特 0.125 瓦。

PKG_POWER_LIMIT MSR (0x610) 给出 0x42016000dc8090。让我们手动解码功率限制 1 部分。位 14:0 定义限制,或十进制的 90h 或 144。乘以 .125 = 18 瓦,正如预期的那样。位 15 为 1,因此已启用。

因此,似乎出现了问题,处理器的运行似乎没有正常进行。

这可能与异常高的处理器封装限制 #2 有关吗?通常,它会被设置为功率限制 #1 的 1.25 倍左右。如此高的值可能会产生问题。

编辑 1:返回 MSR 0x64F,其他锁存位指示温度、PROCHOT(始终不好)和“其他”情况之前已经发生过。我自己会将功率限制 2 从 44 瓦调低到大约 22 或 23 瓦。还建议从 CPU 频率的低端开始,慢慢地观察这一点。例如,设置一个非常低的 CPU 最大频率:

echo 10 | sudo tee /sys/devices/system/cpu/intel_pstate/max_perf_pct

然后施加重负载,同时在两个终端窗口中同时使用 turbostat 和 MSR 0x64f 进行观察。逐渐增加 CPU 频率:

echo 15 | sudo tee /sys/devices/system/cpu/intel_pstate/max_perf_pct
echo 20 | sudo tee /sys/devices/system/cpu/intel_pstate/max_perf_pct
echo 25 | sudo tee /sys/devices/system/cpu/intel_pstate/max_perf_pct
...

直至其节流。

编辑 2:时钟调制可能与此有关,如果是的话,可能是来自 BIOS,也可能是由于功率限制 #2 的设置过高。要知道这一点,可以在奇数节流事件期间读取 MSR 0x19A。执行sudo rdmsr -a 0x19a。示例:

doug@s19:~$ sudo /home/doug/temp-k-git/linux/tools/power/x86/turbostat/turbostat --Summary --quiet --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt --interval 6
Busy%   Bzy_MHz IRQ     PkgTmp  PkgWatt GFXWatt RAMWatt
99.76   1246    72344   60      60.43   0.00    0.89
99.76   1246    72144   61      60.40   0.00    0.89  <<< Why is the CPU frequency so low at 100% load?
99.76   1246    72147   61      60.43   0.00    0.89
99.76   1246    72145   60      60.05   0.00    0.89
99.04   2931    72183   80      98.51   0.00    0.89
98.41   4507    72132   80      133.71  0.00    0.89  <<< O.K. that is more like it. Clock Modulation removed.
98.43   4509    72135   80      133.79  0.00    0.89
99.25   4483    72147   77      127.63  0.00    0.89
99.57   4466    72127   75      124.90  0.00    0.89 <<< And power limit #1 kicks in.
99.56   4461    72158   75      124.91  0.00    0.89
99.56   4463    72211   76      124.91  0.00    0.89

同时:

root@s19:/home/doug# wrmsr -a 0x19a 0x14  <<< enable CM at 25%
... apply load and start turbstat ...
root@s19:/home/doug# wrmsr -a 0x19a 0     <<< disable CM

预期问题:那么为什么直到负载移除后它才会自行纠正。
答案:由于恶劣的条件导致首先需要时钟调制,因此直到情况真正平静和凉爽时才会将其移除。在某些计算机上,它永远不会重置。

答案2

短日志(由于日志太大,所以不提供完整日志,我只会显示负载 - 无负载转捩點):

sudo ./collect_cpu_info.sh

------------------------------------------------------------------------------------------------
turbostat --Summary --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt --interval 0.001 --num_iterations 1
turbostat version 20.03.20 - Len Brown <[email protected]>
CPUID(0): GenuineIntel 0x16 CPUID levels; 0x80000008 xlevels; family:model:stepping 0x6:8e:a (6:142:10)
CPUID(1): SSE3 MONITOR - EIST TM2 TSC MSR ACPI-TM HT TM
CPUID(6): APERF, TURBO, DTS, PTM, HWP, HWPnotify, HWPwindow, HWPepp, No-HWPpkg, EPB
cpu7: MSR_IA32_MISC_ENABLE: 0x00850089 (TCC EIST MWAIT PREFETCH TURBO)
CPUID(7): SGX
cpu7: MSR_IA32_FEATURE_CONTROL: 0x00000005 (Locked )
CPUID(0x15): eax_crystal: 2 ebx_tsc: 166 ecx_crystal_hz: 0
TSC: 1992 MHz (24000000 Hz * 166 / 2 / 1000000)
CPUID(0x16): base_mhz: 2000 max_mhz: 4000 bus_mhz: 100
cpu7: MSR_MISC_PWR_MGMT: 0x00401cc0 (ENable-EIST_Coordination DISable-EPB DISable-OOB)
RAPL: 17476 sec. Joule Counter Range, at 15 Watts
cpu7: MSR_PLATFORM_INFO: 0x4043df1011400
4 * 100.0 = 400.0 MHz max efficiency frequency
20 * 100.0 = 2000.0 MHz base frequency
cpu7: MSR_IA32_POWER_CTL: 0x0024005d (C1E auto-promotion: DISabled)
cpu7: MSR_TURBO_RATIO_LIMIT: 0x25252828
37 * 100.0 = 3700.0 MHz max turbo 4 active cores
37 * 100.0 = 3700.0 MHz max turbo 3 active cores
40 * 100.0 = 4000.0 MHz max turbo 2 active cores
40 * 100.0 = 4000.0 MHz max turbo 1 active cores
cpu7: MSR_CONFIG_TDP_NOMINAL: 0x00000012 (base_ratio=18)
cpu7: MSR_CONFIG_TDP_LEVEL_1: 0x00080050 (PKG_MIN_PWR_LVL1=0 PKG_MAX_PWR_LVL1=0 LVL1_RATIO=8 PKG_TDP_LVL1=80)
cpu7: MSR_CONFIG_TDP_LEVEL_2: 0x001400c8 (PKG_MIN_PWR_LVL2=0 PKG_MAX_PWR_LVL2=0 LVL2_RATIO=20 PKG_TDP_LVL2=200)
cpu7: MSR_CONFIG_TDP_CONTROL: 0x00000000 ( lock=0)
cpu7: MSR_TURBO_ACTIVATION_RATIO: 0x00000011 (MAX_NON_TURBO_RATIO=17 lock=0)
cpu7: MSR_PKG_CST_CONFIG_CONTROL: 0x1e008008 (UNdemote-C3, UNdemote-C1, demote-C3, demote-C1, locked, pkg-cstate-limit=8 (unlimited))
cpu7: cpufreq driver: intel_pstate
cpu7: cpufreq governor: powersave
cpufreq intel_pstate no_turbo: 0
cpu7: MSR_MISC_FEATURE_CONTROL: 0x00000000 (L2-Prefetch L2-Prefetch-pair L1-Prefetch L1-IP-Prefetch)
cpu0: MSR_PM_ENABLE: 0x00000001 (HWP)
cpu0: MSR_HWP_CAPABILITIES: 0x01081228 (high 40 guar 18 eff 8 low 1)
cpu0: MSR_HWP_REQUEST: 0x80002804 (min 4 max 40 des 0 epp 0x80 window 0x0 pkg 0x0)
cpu0: MSR_HWP_INTERRUPT: 0x00000000 (Dis_Guaranteed_Perf_Change, Dis_Excursion_Min)
cpu0: MSR_HWP_STATUS: 0x00000000 (No-Guaranteed_Perf_Change, No-Excursion_Min)
cpu0: MSR_IA32_ENERGY_PERF_BIAS: 0x00000006 (balanced)
cpu0: MSR_RAPL_POWER_UNIT: 0x000a0e03 (0.125000 Watts, 0.000061 Joules, 0.000977 sec.)
cpu0: MSR_PKG_POWER_INFO: 0x00000078 (15 W TDP, RAPL 0 - 0 W, 0.000000 sec.)
cpu0: MSR_PKG_POWER_LIMIT: 0x42016000dc8090 (UNlocked)
cpu0: PKG Limit #1: ENabled (18.000000 Watts, 28.000000 sec, clamp DISabled)
cpu0: PKG Limit #2: DISabled (44.000000 Watts, 0.002441* sec, clamp DISabled)
cpu0: MSR_DRAM_POWER_LIMIT: 0x5400de00000000 (UNlocked)
cpu0: DRAM Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_PP0_POLICY: 0
cpu0: MSR_PP0_POWER_LIMIT: 0x00000000 (UNlocked)
cpu0: Cores Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_PP1_POLICY: 0
cpu0: MSR_PP1_POWER_LIMIT: 0x00000000 (UNlocked)
cpu0: GFX Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_IA32_TEMPERATURE_TARGET: 0x02640000 (100 C)
cpu0: MSR_IA32_PACKAGE_THERM_STATUS: 0x88370808 (45 C)
cpu0: MSR_IA32_PACKAGE_THERM_INTERRUPT: 0x00000003 (100 C, 100 C)
cpu7: MSR_PKGC3_IRTL: 0x0000884e (valid, 79872 ns)
cpu7: MSR_PKGC6_IRTL: 0x00008876 (valid, 120832 ns)
cpu7: MSR_PKGC7_IRTL: 0x00008894 (valid, 151552 ns)
cpu7: MSR_PKGC8_IRTL: 0x000088fa (valid, 256000 ns)
cpu7: MSR_PKGC9_IRTL: 0x0000894c (valid, 339968 ns)
cpu7: MSR_PKGC10_IRTL: 0x00008bf2 (valid, 1034240 ns)
Busy%   Bzy_MHz IRQ   PkgTmp  PkgWatt  GFXWatt  RAMWatt
7.41     2176    17    46      16.54    0.00       0.00

rdmsr 0x64f
3d010000

grep . /sys/devices/system/cpu/intel_pstate/*
/sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost:0
/sys/devices/system/cpu/intel_pstate/max_perf_pct:100
/sys/devices/system/cpu/intel_pstate/min_perf_pct:10
/sys/devices/system/cpu/intel_pstate/no_turbo:0
/sys/devices/system/cpu/intel_pstate/num_pstates:37
/sys/devices/system/cpu/intel_pstate/status:active
/sys/devices/system/cpu/intel_pstate/turbo_pct:60

grep . /sys/class/powercap/intel-rapl/intel-rapl:0/*
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_max_power_uw:15000000
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_name:long_term
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw:18000000
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_time_window_us:27983872
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_max_power_uw:0
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_name:short_term
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_power_limit_uw:44000000
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_time_window_us:2440
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/device: Is a directory
/sys/class/powercap/intel-rapl/intel-rapl:0/enabled:1
/sys/class/powercap/intel-rapl/intel-rapl:0/energy_uj:31842193630
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:0: Is a directory
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:1: Is a directory
/sys/class/powercap/intel-rapl/intel-rapl:0/max_energy_range_uj:262143328850
/sys/class/powercap/intel-rapl/intel-rapl:0/name:package-0
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/power: Is a directory
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/subsystem: Is a directory

grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_m*
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu5/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu7/cpufreq/scaling_min_freq:400000
------------------------------------------------------------------------------------------------
turbostat --Summary --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt --interval 0.001 --num_iterations 1
turbostat version 20.03.20 - Len Brown <[email protected]>
CPUID(0): GenuineIntel 0x16 CPUID levels; 0x80000008 xlevels; family:model:stepping 0x6:8e:a (6:142:10)
CPUID(1): SSE3 MONITOR - EIST TM2 TSC MSR ACPI-TM HT TM
CPUID(6): APERF, TURBO, DTS, PTM, HWP, HWPnotify, HWPwindow, HWPepp, No-HWPpkg, EPB
cpu6: MSR_IA32_MISC_ENABLE: 0x00850089 (TCC EIST MWAIT PREFETCH TURBO)
CPUID(7): SGX
cpu6: MSR_IA32_FEATURE_CONTROL: 0x00000005 (Locked )
CPUID(0x15): eax_crystal: 2 ebx_tsc: 166 ecx_crystal_hz: 0
TSC: 1992 MHz (24000000 Hz * 166 / 2 / 1000000)
CPUID(0x16): base_mhz: 2000 max_mhz: 4000 bus_mhz: 100
cpu6: MSR_MISC_PWR_MGMT: 0x00401cc0 (ENable-EIST_Coordination DISable-EPB DISable-OOB)
RAPL: 17476 sec. Joule Counter Range, at 15 Watts
cpu6: MSR_PLATFORM_INFO: 0x4043df1011400
4 * 100.0 = 400.0 MHz max efficiency frequency
20 * 100.0 = 2000.0 MHz base frequency
cpu6: MSR_IA32_POWER_CTL: 0x0024005d (C1E auto-promotion: DISabled)
cpu6: MSR_TURBO_RATIO_LIMIT: 0x25252828
37 * 100.0 = 3700.0 MHz max turbo 4 active cores
37 * 100.0 = 3700.0 MHz max turbo 3 active cores
40 * 100.0 = 4000.0 MHz max turbo 2 active cores
40 * 100.0 = 4000.0 MHz max turbo 1 active cores
cpu6: MSR_CONFIG_TDP_NOMINAL: 0x00000012 (base_ratio=18)
cpu6: MSR_CONFIG_TDP_LEVEL_1: 0x00080050 (PKG_MIN_PWR_LVL1=0 PKG_MAX_PWR_LVL1=0 LVL1_RATIO=8 PKG_TDP_LVL1=80)
cpu6: MSR_CONFIG_TDP_LEVEL_2: 0x001400c8 (PKG_MIN_PWR_LVL2=0 PKG_MAX_PWR_LVL2=0 LVL2_RATIO=20 PKG_TDP_LVL2=200)
cpu6: MSR_CONFIG_TDP_CONTROL: 0x00000000 ( lock=0)
cpu6: MSR_TURBO_ACTIVATION_RATIO: 0x00000011 (MAX_NON_TURBO_RATIO=17 lock=0)
cpu6: MSR_PKG_CST_CONFIG_CONTROL: 0x1e008008 (UNdemote-C3, UNdemote-C1, demote-C3, demote-C1, locked, pkg-cstate-limit=8 (unlimited))
cpu6: cpufreq driver: intel_pstate
cpu6: cpufreq governor: powersave
cpufreq intel_pstate no_turbo: 0
cpu6: MSR_MISC_FEATURE_CONTROL: 0x00000000 (L2-Prefetch L2-Prefetch-pair L1-Prefetch L1-IP-Prefetch)
cpu0: MSR_PM_ENABLE: 0x00000001 (HWP)
cpu0: MSR_HWP_CAPABILITIES: 0x01091228 (high 40 guar 18 eff 9 low 1)
cpu0: MSR_HWP_REQUEST: 0x80002804 (min 4 max 40 des 0 epp 0x80 window 0x0 pkg 0x0)
cpu0: MSR_HWP_INTERRUPT: 0x00000000 (Dis_Guaranteed_Perf_Change, Dis_Excursion_Min)
cpu0: MSR_HWP_STATUS: 0x00000000 (No-Guaranteed_Perf_Change, No-Excursion_Min)
cpu0: MSR_IA32_ENERGY_PERF_BIAS: 0x00000006 (balanced)
cpu0: MSR_RAPL_POWER_UNIT: 0x000a0e03 (0.125000 Watts, 0.000061 Joules, 0.000977 sec.)
cpu0: MSR_PKG_POWER_INFO: 0x00000078 (15 W TDP, RAPL 0 - 0 W, 0.000000 sec.)
cpu0: MSR_PKG_POWER_LIMIT: 0x42016000dc8090 (UNlocked)
cpu0: PKG Limit #1: ENabled (18.000000 Watts, 28.000000 sec, clamp DISabled)
cpu0: PKG Limit #2: DISabled (44.000000 Watts, 0.002441* sec, clamp DISabled)
cpu0: MSR_DRAM_POWER_LIMIT: 0x5400de00000000 (UNlocked)
cpu0: DRAM Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_PP0_POLICY: 0
cpu0: MSR_PP0_POWER_LIMIT: 0x00000000 (UNlocked)
cpu0: Cores Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_PP1_POLICY: 0
cpu0: MSR_PP1_POWER_LIMIT: 0x00000000 (UNlocked)
cpu0: GFX Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_IA32_TEMPERATURE_TARGET: 0x02640000 (100 C)
cpu0: MSR_IA32_PACKAGE_THERM_STATUS: 0x88210808 (67 C)
cpu0: MSR_IA32_PACKAGE_THERM_INTERRUPT: 0x00000003 (100 C, 100 C)
cpu6: MSR_PKGC3_IRTL: 0x0000884e (valid, 79872 ns)
cpu6: MSR_PKGC6_IRTL: 0x00008876 (valid, 120832 ns)
cpu6: MSR_PKGC7_IRTL: 0x00008894 (valid, 151552 ns)
cpu6: MSR_PKGC8_IRTL: 0x000088fa (valid, 256000 ns)
cpu6: MSR_PKGC9_IRTL: 0x0000894c (valid, 339968 ns)
cpu6: MSR_PKGC10_IRTL: 0x00008bf2 (valid, 1034240 ns)
Busy%  Bzy_MHz  IRQ   PkgTmp  PkgWatt  GFXWatt   RAMWatt
97.55   3700     9     68      43.25    0.00      0.00

rdmsr 0x64f
3d011000

grep . /sys/devices/system/cpu/intel_pstate/*
/sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost:0
/sys/devices/system/cpu/intel_pstate/max_perf_pct:100
/sys/devices/system/cpu/intel_pstate/min_perf_pct:10
/sys/devices/system/cpu/intel_pstate/no_turbo:0
/sys/devices/system/cpu/intel_pstate/num_pstates:37
/sys/devices/system/cpu/intel_pstate/status:active
/sys/devices/system/cpu/intel_pstate/turbo_pct:60

grep . /sys/class/powercap/intel-rapl/intel-rapl:0/*
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_max_power_uw:15000000
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_name:long_term
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw:18000000
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_time_window_us:27983872
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_max_power_uw:0
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_name:short_term
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_power_limit_uw:44000000
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_time_window_us:2440
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/device: Is a directory
/sys/class/powercap/intel-rapl/intel-rapl:0/enabled:1
/sys/class/powercap/intel-rapl/intel-rapl:0/energy_uj:31914117396
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:0: Is a directory
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:1: Is a directory
/sys/class/powercap/intel-rapl/intel-rapl:0/max_energy_range_uj:262143328850
/sys/class/powercap/intel-rapl/intel-rapl:0/name:package-0
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/power: Is a directory
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/subsystem: Is a directory

grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_m*
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu5/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu7/cpufreq/scaling_min_freq:400000
------------------------------------------------------------------------------------------------
turbostat --Summary --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt --interval 0.001 --num_iterations 1
turbostat version 20.03.20 - Len Brown <[email protected]>
CPUID(0): GenuineIntel 0x16 CPUID levels; 0x80000008 xlevels; family:model:stepping 0x6:8e:a (6:142:10)
CPUID(1): SSE3 MONITOR - EIST TM2 TSC MSR ACPI-TM HT TM
CPUID(6): APERF, TURBO, DTS, PTM, HWP, HWPnotify, HWPwindow, HWPepp, No-HWPpkg, EPB
cpu6: MSR_IA32_MISC_ENABLE: 0x00850089 (TCC EIST MWAIT PREFETCH TURBO)
CPUID(7): SGX
cpu6: MSR_IA32_FEATURE_CONTROL: 0x00000005 (Locked )
CPUID(0x15): eax_crystal: 2 ebx_tsc: 166 ecx_crystal_hz: 0
TSC: 1992 MHz (24000000 Hz * 166 / 2 / 1000000)
CPUID(0x16): base_mhz: 2000 max_mhz: 4000 bus_mhz: 100
cpu6: MSR_MISC_PWR_MGMT: 0x00401cc0 (ENable-EIST_Coordination DISable-EPB DISable-OOB)
RAPL: 17476 sec. Joule Counter Range, at 15 Watts
cpu6: MSR_PLATFORM_INFO: 0x4043df1011400
4 * 100.0 = 400.0 MHz max efficiency frequency
20 * 100.0 = 2000.0 MHz base frequency
cpu6: MSR_IA32_POWER_CTL: 0x0024005d (C1E auto-promotion: DISabled)
cpu6: MSR_TURBO_RATIO_LIMIT: 0x25252828
37 * 100.0 = 3700.0 MHz max turbo 4 active cores
37 * 100.0 = 3700.0 MHz max turbo 3 active cores
40 * 100.0 = 4000.0 MHz max turbo 2 active cores
40 * 100.0 = 4000.0 MHz max turbo 1 active cores
cpu6: MSR_CONFIG_TDP_NOMINAL: 0x00000012 (base_ratio=18)
cpu6: MSR_CONFIG_TDP_LEVEL_1: 0x00080050 (PKG_MIN_PWR_LVL1=0 PKG_MAX_PWR_LVL1=0 LVL1_RATIO=8 PKG_TDP_LVL1=80)
cpu6: MSR_CONFIG_TDP_LEVEL_2: 0x001400c8 (PKG_MIN_PWR_LVL2=0 PKG_MAX_PWR_LVL2=0 LVL2_RATIO=20 PKG_TDP_LVL2=200)
cpu6: MSR_CONFIG_TDP_CONTROL: 0x00000000 ( lock=0)
cpu6: MSR_TURBO_ACTIVATION_RATIO: 0x00000011 (MAX_NON_TURBO_RATIO=17 lock=0)
cpu6: MSR_PKG_CST_CONFIG_CONTROL: 0x1e008008 (UNdemote-C3, UNdemote-C1, demote-C3, demote-C1, locked, pkg-cstate-limit=8 (unlimited))
cpu6: cpufreq driver: intel_pstate
cpu6: cpufreq governor: powersave
cpufreq intel_pstate no_turbo: 0
cpu6: MSR_MISC_FEATURE_CONTROL: 0x00000000 (L2-Prefetch L2-Prefetch-pair L1-Prefetch L1-IP-Prefetch)
cpu0: MSR_PM_ENABLE: 0x00000001 (HWP)
cpu0: MSR_HWP_CAPABILITIES: 0x01091228 (high 40 guar 18 eff 9 low 1)
cpu0: MSR_HWP_REQUEST: 0x80002804 (min 4 max 40 des 0 epp 0x80 window 0x0 pkg 0x0)
cpu0: MSR_HWP_INTERRUPT: 0x00000000 (Dis_Guaranteed_Perf_Change, Dis_Excursion_Min)
cpu0: MSR_HWP_STATUS: 0x00000000 (No-Guaranteed_Perf_Change, No-Excursion_Min)
cpu0: MSR_IA32_ENERGY_PERF_BIAS: 0x00000006 (balanced)
cpu0: MSR_RAPL_POWER_UNIT: 0x000a0e03 (0.125000 Watts, 0.000061 Joules, 0.000977 sec.)
cpu0: MSR_PKG_POWER_INFO: 0x00000078 (15 W TDP, RAPL 0 - 0 W, 0.000000 sec.)
cpu0: MSR_PKG_POWER_LIMIT: 0x42016000dc8090 (UNlocked)
cpu0: PKG Limit #1: ENabled (18.000000 Watts, 28.000000 sec, clamp DISabled)
cpu0: PKG Limit #2: DISabled (44.000000 Watts, 0.002441* sec, clamp DISabled)
cpu0: MSR_DRAM_POWER_LIMIT: 0x5400de00000000 (UNlocked)
cpu0: DRAM Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_PP0_POLICY: 0
cpu0: MSR_PP0_POWER_LIMIT: 0x00000000 (UNlocked)
cpu0: Cores Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_PP1_POLICY: 0
cpu0: MSR_PP1_POWER_LIMIT: 0x00000000 (UNlocked)
cpu0: GFX Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_IA32_TEMPERATURE_TARGET: 0x02640000 (100 C)
cpu0: MSR_IA32_PACKAGE_THERM_STATUS: 0x882d0e88 (55 C)
cpu0: MSR_IA32_PACKAGE_THERM_INTERRUPT: 0x00000003 (100 C, 100 C)
cpu6: MSR_PKGC3_IRTL: 0x0000884e (valid, 79872 ns)
cpu6: MSR_PKGC6_IRTL: 0x00008876 (valid, 120832 ns)
cpu6: MSR_PKGC7_IRTL: 0x00008894 (valid, 151552 ns)
cpu6: MSR_PKGC8_IRTL: 0x000088fa (valid, 256000 ns)
cpu6: MSR_PKGC9_IRTL: 0x0000894c (valid, 339968 ns)
cpu6: MSR_PKGC10_IRTL: 0x00008bf2 (valid, 1034240 ns)
Busy%  Bzy_MHz   IRQ  PkgTmp  PkgWatt  GFXWatt   RAMWatt
99.77   1700     17    55      7.24     0.00      0.00

rdmsr 0x64f
3d030400

grep . /sys/devices/system/cpu/intel_pstate/*
/sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost:0
/sys/devices/system/cpu/intel_pstate/max_perf_pct:100
/sys/devices/system/cpu/intel_pstate/min_perf_pct:10
/sys/devices/system/cpu/intel_pstate/no_turbo:0
/sys/devices/system/cpu/intel_pstate/num_pstates:37
/sys/devices/system/cpu/intel_pstate/status:active
/sys/devices/system/cpu/intel_pstate/turbo_pct:60

grep . /sys/class/powercap/intel-rapl/intel-rapl:0/*
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_max_power_uw:15000000
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_name:long_term
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw:18000000
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_time_window_us:27983872
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_max_power_uw:0
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_name:short_term
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_power_limit_uw:44000000
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_time_window_us:2440
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/device: Is a directory
/sys/class/powercap/intel-rapl/intel-rapl:0/enabled:1
/sys/class/powercap/intel-rapl/intel-rapl:0/energy_uj:32027108134
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:0: Is a directory
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:1: Is a directory
/sys/class/powercap/intel-rapl/intel-rapl:0/max_energy_range_uj:262143328850
/sys/class/powercap/intel-rapl/intel-rapl:0/name:package-0
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/power: Is a directory
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/subsystem: Is a directory

grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_m*
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu5/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu7/cpufreq/scaling_min_freq:400000
------------------------------------------------------------------------------------------------
turbostat --Summary --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt --interval 0.001 --num_iterations 1
turbostat version 20.03.20 - Len Brown <[email protected]>
CPUID(0): GenuineIntel 0x16 CPUID levels; 0x80000008 xlevels; family:model:stepping 0x6:8e:a (6:142:10)
CPUID(1): SSE3 MONITOR - EIST TM2 TSC MSR ACPI-TM HT TM
CPUID(6): APERF, TURBO, DTS, PTM, HWP, HWPnotify, HWPwindow, HWPepp, No-HWPpkg, EPB
cpu7: MSR_IA32_MISC_ENABLE: 0x00850089 (TCC EIST MWAIT PREFETCH TURBO)
CPUID(7): SGX
cpu7: MSR_IA32_FEATURE_CONTROL: 0x00000005 (Locked )
CPUID(0x15): eax_crystal: 2 ebx_tsc: 166 ecx_crystal_hz: 0
TSC: 1992 MHz (24000000 Hz * 166 / 2 / 1000000)
CPUID(0x16): base_mhz: 2000 max_mhz: 4000 bus_mhz: 100
cpu7: MSR_MISC_PWR_MGMT: 0x00401cc0 (ENable-EIST_Coordination DISable-EPB DISable-OOB)
RAPL: 17476 sec. Joule Counter Range, at 15 Watts
cpu7: MSR_PLATFORM_INFO: 0x4043df1011400
4 * 100.0 = 400.0 MHz max efficiency frequency
20 * 100.0 = 2000.0 MHz base frequency
cpu7: MSR_IA32_POWER_CTL: 0x0024005d (C1E auto-promotion: DISabled)
cpu7: MSR_TURBO_RATIO_LIMIT: 0x25252828
37 * 100.0 = 3700.0 MHz max turbo 4 active cores
37 * 100.0 = 3700.0 MHz max turbo 3 active cores
40 * 100.0 = 4000.0 MHz max turbo 2 active cores
40 * 100.0 = 4000.0 MHz max turbo 1 active cores
cpu7: MSR_CONFIG_TDP_NOMINAL: 0x00000012 (base_ratio=18)
cpu7: MSR_CONFIG_TDP_LEVEL_1: 0x00080050 (PKG_MIN_PWR_LVL1=0 PKG_MAX_PWR_LVL1=0 LVL1_RATIO=8 PKG_TDP_LVL1=80)
cpu7: MSR_CONFIG_TDP_LEVEL_2: 0x001400c8 (PKG_MIN_PWR_LVL2=0 PKG_MAX_PWR_LVL2=0 LVL2_RATIO=20 PKG_TDP_LVL2=200)
cpu7: MSR_CONFIG_TDP_CONTROL: 0x00000000 ( lock=0)
cpu7: MSR_TURBO_ACTIVATION_RATIO: 0x00000011 (MAX_NON_TURBO_RATIO=17 lock=0)
cpu7: MSR_PKG_CST_CONFIG_CONTROL: 0x1e008008 (UNdemote-C3, UNdemote-C1, demote-C3, demote-C1, locked, pkg-cstate-limit=8 (unlimited))
cpu7: cpufreq driver: intel_pstate
cpu7: cpufreq governor: powersave
cpufreq intel_pstate no_turbo: 0
cpu7: MSR_MISC_FEATURE_CONTROL: 0x00000000 (L2-Prefetch L2-Prefetch-pair L1-Prefetch L1-IP-Prefetch)
cpu0: MSR_PM_ENABLE: 0x00000001 (HWP)
cpu0: MSR_HWP_CAPABILITIES: 0x01081228 (high 40 guar 18 eff 8 low 1)
cpu0: MSR_HWP_REQUEST: 0x80002804 (min 4 max 40 des 0 epp 0x80 window 0x0 pkg 0x0)
cpu0: MSR_HWP_INTERRUPT: 0x00000000 (Dis_Guaranteed_Perf_Change, Dis_Excursion_Min)
cpu0: MSR_HWP_STATUS: 0x00000000 (No-Guaranteed_Perf_Change, No-Excursion_Min)
cpu0: MSR_IA32_ENERGY_PERF_BIAS: 0x00000006 (balanced)
cpu0: MSR_RAPL_POWER_UNIT: 0x000a0e03 (0.125000 Watts, 0.000061 Joules, 0.000977 sec.)
cpu0: MSR_PKG_POWER_INFO: 0x00000078 (15 W TDP, RAPL 0 - 0 W, 0.000000 sec.)
cpu0: MSR_PKG_POWER_LIMIT: 0x42016000dc8090 (UNlocked)
cpu0: PKG Limit #1: ENabled (18.000000 Watts, 28.000000 sec, clamp DISabled)
cpu0: PKG Limit #2: DISabled (44.000000 Watts, 0.002441* sec, clamp DISabled)
cpu0: MSR_DRAM_POWER_LIMIT: 0x5400de00000000 (UNlocked)
cpu0: DRAM Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_PP0_POLICY: 0
cpu0: MSR_PP0_POWER_LIMIT: 0x00000000 (UNlocked)
cpu0: Cores Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_PP1_POLICY: 0
cpu0: MSR_PP1_POWER_LIMIT: 0x00000000 (UNlocked)
cpu0: GFX Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_IA32_TEMPERATURE_TARGET: 0x02640000 (100 C)
cpu0: MSR_IA32_PACKAGE_THERM_STATUS: 0x88340808 (48 C)
cpu0: MSR_IA32_PACKAGE_THERM_INTERRUPT: 0x00000003 (100 C, 100 C)
cpu7: MSR_PKGC3_IRTL: 0x0000884e (valid, 79872 ns)
cpu7: MSR_PKGC6_IRTL: 0x00008876 (valid, 120832 ns)
cpu7: MSR_PKGC7_IRTL: 0x00008894 (valid, 151552 ns)
cpu7: MSR_PKGC8_IRTL: 0x000088fa (valid, 256000 ns)
cpu7: MSR_PKGC9_IRTL: 0x0000894c (valid, 339968 ns)
cpu7: MSR_PKGC10_IRTL: 0x00008bf2 (valid, 1034240 ns)
Busy%   Bzy_MHz  IRQ   PkgTmp  PkgWatt  GFXWatt   RAMWatt
17.53    2200     1     48      1.36     0.00      0.00

rdmsr 0x64f
3d030000

grep . /sys/devices/system/cpu/intel_pstate/*
/sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost:0
/sys/devices/system/cpu/intel_pstate/max_perf_pct:100
/sys/devices/system/cpu/intel_pstate/min_perf_pct:10
/sys/devices/system/cpu/intel_pstate/no_turbo:0
/sys/devices/system/cpu/intel_pstate/num_pstates:37
/sys/devices/system/cpu/intel_pstate/status:active
/sys/devices/system/cpu/intel_pstate/turbo_pct:60

grep . /sys/class/powercap/intel-rapl/intel-rapl:0/*
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_max_power_uw:15000000
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_name:long_term
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw:18000000
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_time_window_us:27983872
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_max_power_uw:0
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_name:short_term
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_power_limit_uw:44000000
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_time_window_us:2440
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/device: Is a directory
/sys/class/powercap/intel-rapl/intel-rapl:0/enabled:1
/sys/class/powercap/intel-rapl/intel-rapl:0/energy_uj:32210401183
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:0: Is a directory
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:1: Is a directory
/sys/class/powercap/intel-rapl/intel-rapl:0/max_energy_range_uj:262143328850
/sys/class/powercap/intel-rapl/intel-rapl:0/name:package-0
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/power: Is a directory
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/subsystem: Is a directory

grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_m*
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu5/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq:4000000
/sys/devices/system/cpu/cpu7/cpufreq/scaling_min_freq:400000

第一行消息输出:

[    0.000000] microcode: microcode updated early to revision 0xe0, date = 2020-06-17
[    0.000000] Linux version 5.8.0-48-generic (buildd@lgw01-amd64-008) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021 (Ubuntu 5.8.0-48.54~20.04.1-generic 5.8.18)
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.8.0-48-generic root=UUID=19c1475f-df39-48e7-947c-ace73270909e ro quiet splash vt.handoff=7

我还发现了很多 ACPI 错误消息输出,这是第一个:

[    3.055366] ACPI BIOS Error (bug): AE_AML_PACKAGE_LIMIT, Index (0x000000005) is beyond end of object (length 0x5) (20200528/exoparg2-393)

答案3

我还发现蓝牙错误消息输出:

[    7.747559] Bluetooth: hci0: command 0xfc05 tx timeout
[    7.747568] Bluetooth: hci0: Reading Intel version information failed (-110)
[    7.747569] Bluetooth: hci0: Intel Read version failed (-110)

我看到 CPU 热监控已启用:

[    0.165359] mce: CPU0: Thermal monitoring enabled (TM1)

还有这句奇怪的台词:

[    6.139480] thermal thermal_zone10: failed to read out thermal zone (-61)

Ubuntu 上的 CPU 微码版本:

grep 'model name\|microcode' /proc/cpuinfo

model name  : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
microcode   : 0xe0
model name  : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
microcode   : 0xe0
model name  : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
microcode   : 0xe0
model name  : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
microcode   : 0xe0
model name  : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
microcode   : 0xe0
model name  : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
microcode   : 0xe0
model name  : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
microcode   : 0xe0
model name  : Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
microcode   : 0xe0

Windows 上的 CPU 微码版本:

reg query HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\0 | find "Update Revision"

Update Revision             REG_BINARY    00000000B4000000
Previous Update Revision    REG_BINARY    0000000084000000

更新修订是当前的微码版本。 上一次更新修订是 BIOS 中硬编码的微码版本。

英特尔处理器识别实用程序在 Windows 上显示CPU 版本确实是B4。因此实际上 Windows 运行的是旧版本的微码。

然而,在将 Ubuntu 上的微码从E0B4. 因此有缺陷的微代码在这里不是问题。

我删除了intel_powerclamp模块(以防万一):

sudo rmmod intel_powerclamp

顶部我看到的输出空闲注入每个 CPU 核心的进程:

idle_inject/0
idle_inject/1
idle_inject/2
idle_inject/3

这是空闲注入框架(CONFIG_IDLE_INJECT)这是在 Linux 内核 4.19 中引入的

其目的是对系统进行功率钳位,所以可能会导致这样的功率下降?

答案4

Ubuntu 20.04 更新后一切似乎运行正常。

sudo stress --cpu 8

系统监视器显示 CPU 负载突然跳升至 100%,并且一直保持在 100%,直到我终止压力应用程序。

uname -r
5.11.0-25-generic

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.2 LTS
Release:    20.04
Codename:   focal

相关内容