2009-07-22

speed step

ideapad S10e には Intel Atom N270 CPU が搭載されとります。
このCPU、Speed Step がついていて、CPU 周波数を任意に変更することが
できるので、今回はこれを試してみる。

インストールしたパッケージ

$ sudo apt-get install cpufreqd cpufrequtils


Speed Step の機能チェック

$ cpufreq-info

analyzing CPU 0:
driver: acpi-cpufreq
CPUs which need to switch frequency at the same time: 0
hardware limits: 800 MHz - 1.60 GHz
available frequency steps: 1.60 GHz, 1.33 GHz, 1.07 GHz, 800 MHz
available cpufreq governors: powersave, conservative, ondemand, userspace, performance
current policy: frequency should be within 800 MHz and 1.60 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 1.60 GHz.
cpufreq stats: 1.60 GHz:6.66%, 1.33 GHz:0.12%, 1.07 GHz:0.19%, 800 MHz:93.04% (6356)
analyzing CPU 1:
driver: acpi-cpufreq
CPUs which need to switch frequency at the same time: 1
hardware limits: 800 MHz - 1.60 GHz
available frequency steps: 1.60 GHz, 1.33 GHz, 1.07 GHz, 800 MHz
available cpufreq governors: powersave, conservative, ondemand, userspace, performance
current policy: frequency should be within 800 MHz and 1.60 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 1.60 GHz.
cpufreq stats: 1.60 GHz:53.76%, 1.33 GHz:1.55%, 1.07 GHz:1.57%, 800 MHz:43.12% (3309)

こんな感じ
800MHzから 1.6GHz の間で変更できる模様(400MHzまで変更できればもっと省電力にできるのに…)。

細かく動作を決める必要もないので、下記のような簡単なルールにしてみる
* AC on で CPU を使ってないときは 800MHz
* AC on で CPU を使っているときは 1.6GHz
* AC off のときは 800MHz

こういう振る舞いをさせるためには /etc/cpufreqd.conf にこう書き込む。

[Profile]
name=On Demand High
minfreq=50%
maxfreq=100%
policy=ondemand
[/Profile]

[Profile]
name=Conservative Low
minfreq=0%
maxfreq=66%
policy=conservative
[/Profile]

[Rule]
name=AC Rule
ac=on
profile=On Demand High
[/Rule]

[Rule]
name=AC Off - Low Battery
ac=off
profile=Conservative Low
[/Rule]


こんな感じ。
特定プロセスが動いている場合の振る舞いとかも定義できるみたい。

0 件のコメント:

コメントを投稿