Регулировка температуры процессора при помощи cpufreqd

Добрый день,

Хочу поделиться опытом настройки cpufreqd.conf.

  1. Убедиться, что подгружен модуль процессора
    cpufreq-info
    cpufrequtils 007: cpufreq-info © Dominik Brodowski 2004-2009
    Report errors and bugs to cpufreq@vger.kernel.org, please.
    analyzing CPU 0:
    driver: powernow-k8
    CPUs which run at the same hardware frequency: 0 1
    CPUs which need to have their frequency coordinated by software: 0 1
    maximum transition latency: 107 us.
    hardware limits: 800 MHz - 1.60 GHz
    available frequency steps: 1.60 GHz, 800 MHz
    available cpufreq governors: userspace, powersave, ondemand, conservative, performance
    current policy: frequency should be within 800 MHz and 1.60 GHz.
    The governor “performance” may decide which speed to use
    within this range.
    current CPU frequency is 1.60 GHz (asserted by call to hardware).
    cpufreq stats: 1.60 GHz:99.06, 800 MHz:0.94 (220)
    analyzing CPU 1:
    driver: powernow-k8
    CPUs which run at the same hardware frequency: 0 1
    CPUs which need to have their frequency coordinated by software: 0 1
    maximum transition latency: 107 us.
    hardware limits: 800 MHz - 1.60 GHz
    available frequency steps: 1.60 GHz, 800 MHz
    available cpufreq governors: userspace, powersave, ondemand, conservative, performance
    current policy: frequency should be within 800 MHz and 1.60 GHz.
    The governor “performance” may decide which speed to use
    within this range.
    current CPU frequency is 1.60 GHz (asserted by call to hardware).
    cpufreq stats: 1.60 GHz:99.06, 800 MHz:0.94 (220)

Если не наблюдаем похожую информацию, пробуем подгружать модули вручную modprobe powernow-k8 p4-clockmod powernow-k6 powernow-k7

Если помогло, и появилась информация о возможностях процессора, то вбиваем модуль в автозаргузку (в моём случае так):
cat /etc/conf.d/modules
modules_2_6_36_2_calculate=“vboxdrv vboxnetflt vboxnetadp mperf powernow-k8 speedstep-lib cpufreq_conservative cpufreq_ondemand cpufreq_powersave cpufreq_userspace”

2. Редактируем файл /etc/cpufreqd.conf
Наверняка там есть какие-то настройки по умолчанию, но в моём случае они не регулировали температуру процессора нужным образом.
Важных момента тут 2 - профили:

[Profile] name=Performance Low minfreq=20% maxfreq=80% policy=powersave # В этом месте было performance, поэтому и не работало [/Profile]

Возможные policy искать тут - /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
и правила:

[Rule] name=CPU Too Hot acpi_temperature=80-90 # Тут задаём температурные пределы cpu_interval=50-100 profile=Performance Low [/Rule]

cpufreqd.conf (2.45 KB)