[Ubuntu 22.04] CPUの周波数を制限する [N100ミニPC]

公開日:  

ubuntu


intel N100搭載のミニPCを使用していますが、排熱の問題もあると思うので、CPUの周波数制限をしたいと思い調べました。

変更前。最大3.4GHzまででるようになっています。

$ cpufreq-info 
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
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: 4294.55 ms.
  hardware limits: 700 MHz - 3.40 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 700 MHz and 3.40 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency is 842 MHz.

まず、/etc/default/cpufrequtilsを作成して、中身は下記とします。

ENABLE="true"
GOVERNOR="powersave"
MAX_SPEED=2.10GHz
MIN_SPEED=700MHz

その後サービスを再起動します。

sudo systemctl restart cpufrequtils

変更後。最大2.10GHzになりました。

$ cpufreq-info 
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
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: 4294.55 ms.
  hardware limits: 700 MHz - 3.40 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 700 MHz and 2.10 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency is 811 MHz.


関連記事