Частота процессора Intel Core i7-8550U падает при высоких нагрузках на Ubuntu 20.04

Я установил Ubuntu 20.04 и имеют следующий процессор:

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

Текущая частота находится в указанном диапазоне, это верно в условиях холостого хода .

Однако после запуска программы (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 я запускаю то же приложение и добиваюсь гораздо более высокой производительности. В условиях холостого хода частота составляет около 1 ГГц, а под нагрузкой частота увеличивается до 2,6 ГГц. Так что я не думаю, что это проблема, связанная с оборудованием или BIOS.

Я перезагрузил Ubuntu, чтобы отменить изменения частоты процессора (так что они снова являются значениями по умолчанию). Я буду отслеживать частоту процессора и другую важную информацию с помощью утилиты turbostat .

Вот выходные данные турбостата:

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 снижает энергопотребление процессора. . Поскольку невозможно оставаться при высокой нагрузке и в заданном частотном диапазоне (при снижении энергопотребления), частота падает, чтобы удовлетворить ограничение по мощности.

Теперь я снова перезагружаю Ubuntu, поэтому частота процессора возвращается к значениям по умолчанию.

Я действительно запускал 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

Поэтому я остановил его (это не решило проблему с дросселированием процессора):

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

Я написал следующий скрипт ( collect_cpu_info.sh ):

#!/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

Запустим его (полный журнал не предоставляется из-за его размера, я просто покажу точки перехода load - no_load ):

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

Мой ноутбук постоянно подключен к розетке, поэтому ограничений по мощности, связанных с питанием от аккумулятора, возникать не должно.

Вы знаете, как отключить ограничение мощности процессора в Ubuntu? Таким образом, процессор будет потреблять максимальное количество энергии, необходимое для работы на высокой частоте. Будем признательны за любые комментарии. Спасибо.

0
задан 9 April 2021 в 21:18

3 ответа

Также я нашел bluetooth erros в выводе dmesg:

[    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)

Я вижу, что включен тепловой мониторинг процессора:

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

и эта странная строка:

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

версия микрокода процессора на Ubuntu:

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:

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

Update Revision             REG_BINARY    00000000B4000000
Previous Update Revision    REG_BINARY    0000000084000000

Update Revision является текущей версией микрокода. Предыдущая версия является микрокодовой версией в BIOS.

Утилита Intel Processor Identification Utility на Windows показывает, что Версия процессора действительно B4. Так что на самом деле Windows работала со старой версией микрокода.

Однако, дросселирование мощности все еще происходит, после понижения микрокода на Ubuntu с E0 до B4. Таким образом, багги микрокод здесь не является проблемой.

Я удалил intel_powerclamp модуль (на всякий случай):

sudo rmmod intel_powerclamp

В выводе top я вижу idle_inject процессы для каждого ядра процессора:

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

Это Idle Injection Framework (CONFIG_IDLE_INJECT), который был представлен в ядре linux 4. 19

Оно предназначено для питания системы, так что, возможно, оно дает такое падение мощности?

0
ответ дан 23 April 2021 в 23:26

Читатели: проявите терпение, мы надеемся, что в конечном итоге вопрос и ответ будут сведены к краткому содержанию.

Из всей предоставленной информации это наиболее актуально:

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, по крайней мере, если мы верим тому, что говорит нам турбостат.

При ручном декодировании MSR 0x64F, помимо прочего, устанавливается бит 10. Из 64-ia-32-architecture-software-developer-manual-325462:

Состояние PL1 ограничения мощности на уровне платформы / пакета (R0) Когда установлено, частота снижается до уровня ниже запрашиваемой операционной системы. к PL1 с ограничением мощности на уровне пакета / платформы.

Все остальные биты - это биты журнала с фиксацией, которые сейчас не актуальны.

RAPL_POWER_UNIT MSR (0x606) дал 0x000a0e03, что означает правильное декодирование до 0,125 Вт на бит.

MSR PKG_POWER_LIMIT (0x610) дал 0x42016000dc8090. Давайте вручную расшифруем ограничение мощности 1 часть. Биты 14: 0 определяют предел, или 90h или 144 десятичных знаков. Раз .125 = 18 Вт, как и ожидалось. Бит 15 равен 1, поэтому он включен.

Итак, что-то не так, и процессор, похоже, ведет себя не так, как должен.

Может ли это быть как-то связано с необычно высоким пределом пакета процессора №2? Обычно он устанавливается примерно в 1,25 раза превышающем предел мощности №1. такое высокое значение, скорее всего, вызовет проблемы.

РЕДАКТИРОВАТЬ 1: возврат к MSR 0x64F, другие зафиксированные биты указывают на температуру, ПРОХОТ (всегда плохой) и «ДРУГИЕ» условия, которые имели место ранее.Я бы снизил предел мощности 2 с 44 до примерно 22 или 23 Вт. Также предлагаем внимательно посмотреть на это, исходя из низкой частоты процессора. Например, установите очень низкую максимальную частоту процессора:

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

, а затем примените большую нагрузку, все время наблюдая с помощью турбостата и наблюдая MSR 0x64f одновременно в двух окнах терминала. Постепенно увеличивайте частоту процессора:

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

Ожидаемый вопрос: Тогда почему он не исправляется до тех пор, пока не будет снята нагрузка.
Ответ: Из-за суровых условий, в которых в первую очередь потребовалась Модуляция часов, она не удаляется, пока все не станет действительно спокойным и крутым. На некоторых компьютерах он никогда не сбрасывается.

0
ответ дан 23 April 2021 в 23:26

Краткий журнал (полный журнал не предоставляется из-за его размера, я просто покажу точки перехода load - no_load ):

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 <lenb@kernel.org>
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 <lenb@kernel.org>
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 <lenb@kernel.org>
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 <lenb@kernel.org>
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

Первые строки dmesg output:

[    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 в выводе dmesg , вот первая из них:

[    3.055366] ACPI BIOS Error (bug): AE_AML_PACKAGE_LIMIT, Index (0x000000005) is beyond end of object (length 0x5) (20200528/exoparg2-393)
0
ответ дан 23 April 2021 в 23:26

Другие вопросы по тегам:

Похожие вопросы: