お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2010-01-14 02:20:18

maimi09
メンバ
From: キャリングハンドル付き都庁舎
登録日: 2007-06-13

edubuntu9.10amd64でAthlon64のクロックをondemandにしたい

IBM System X3105 にedubuntu9.10 amd64 DVDから、LTSP付きでインストールしました。

待機電力をできるだけ少なくしたいので

コード:

apt-get install lm-sensors cpufreqd cpufrequtils

とかしてみたのですが、パッケージを導入しただけだと、クロックは固定されたままの様子です。

$ cpufreq-info
maomao@ubuntu-edsrv Password:
Sorry, try again.
maomao@ubuntu-edsrv Password:
cpufrequtils 005: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to [email protected], please.
analyzing CPU 0:
  driver: powernow-k8
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 1000 MHz - 2.20 GHz
  available frequency steps: 2.20 GHz, 2.00 GHz, 1.80 GHz, 1000 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 2.20 GHz and 2.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.20 GHz (asserted by call to hardware).
  cpufreq stats: 2.20 GHz:100.00%, 2.00 GHz:0.00%, 1.80 GHz:0.00%, 1000 MHz:0.00%  (20)

何か(cpufreqd.confなどの、)設定などをする必要があると思いますが、具体的に何をすればよいか今ひとつ咀嚼できていないので...お知恵を拝借したい次第です。

またubuntu9.10むけ省電力お作法のドキュメントとかありましたら、併せて紹介していただければ有り難いと思います。

オフライン

 

#2 2010-01-14 03:35:43

si
メンバ
From: hokkaido kitami, jp
登録日: 2007-01-15

Re: edubuntu9.10amd64でAthlon64のクロックをondemandにしたい

今まで、AMD Athlon64 を、普通のPC(Win向けマザーボード)で使っている分には、マザーのBios設定で、Cool'n'Quietl? を有効にするだけで、CPUの動作クロックは変化していました。
IBM System X3105 だと、サーバー/ワークステーション仕様の作りの様なので、同じか分かりませんが、設定は{確認しましたか|変更できますか}?

オフライン

 

#3 2010-01-14 09:59:40

hito
管理者
登録日: 2007-03-18

Re: edubuntu9.10amd64でAthlon64のクロックをondemandにしたい

とりあえずちゃんと動いているかどうかを最初に調べたいと思います。

current policy: frequency should be within 2.20 GHz and 2.20 GHz.
                      The governor "ondemand" may decide which speed to use
                      within this range.

と言われているので、スケーリングに対応しているものの、スケーリング範囲が2.2GHzオンリーになっているのでクロック変動が行われない気配がします。

2コアなら、

コード:

$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver
acpi-cpufreq
acpi-cpufreq
$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
ondemand
ondemand

といった出力が返ってくるでしょうか。scaling_governorがondemand以外になっている場合は、

echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

としてやるとcpu0だけは周波数スケールしてくれないかなぁ、と期待しています。
良さそうな資料はちょっと分かりません。

オフライン

 

#4 2010-01-18 05:25:29

maimi09
メンバ
From: キャリングハンドル付き都庁舎
登録日: 2007-06-13

Re: edubuntu9.10amd64でAthlon64のクロックをondemandにしたい

$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver
powernow-k8
$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
ondemand

ということでcpufreq-infoの出力と同じ内容を示しているようです。

$ sudo find /lib /var /usr /boot /opt -name *-k8*

/usr/share/kernel-package/Config/config.amd64-k8
/usr/share/kernel-package/Config/config.amd64-k8-smp

$ sudo find /lib /boot /usr /opt -name *freq* |grep acpi
/usr/lib/cpufreqd/cpufreqd_acpi.la
/usr/lib/cpufreqd/cpufreqd_acpi.so
/usr/src/linux-headers-2.6.31-16-generic/include/config/x86/acpi/cpufreq.h
/usr/src/linux-headers-2.6.31-17-generic/include/config/x86/acpi/cpufreq.h
/usr/src/linux-headers-2.6.31-18-generic/include/config/x86/acpi/cpufreq.h

ということで、powernow-k8とかacpi-cpufreqが存在しないように思えるだけど、いいのかなぁ。

$ ls /lib/modules/2.6.31-18-generic/kernel/arch/x86/kernel/cpu/cpufreq
p4-clockmod.ko  speedstep-lib.ko

オフライン

 

#5 2010-02-10 03:36:45

maimi09
メンバ
From: キャリングハンドル付き都庁舎
登録日: 2007-06-13

Re: edubuntu9.10amd64でAthlon64のクロックをondemandにしたい

カーネルのアップグレードがかかってリブートして、

$ uname -a
Linux hostname 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux

になったら、なぜか動き出しました。

$ cpufreq-info
cpufrequtils 005: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to [email protected], please.
analyzing CPU 0:
  driver: powernow-k8
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 1000 MHz - 2.20 GHz
  available frequency steps: 2.20 GHz, 2.00 GHz, 1.80 GHz, 1000 MHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 1000 MHz and 2.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 1000 MHz.
  cpufreq stats: 2.20 GHz:4.58%, 2.00 GHz:0.18%, 1.80 GHz:0.98%, 1000 MHz:94.26%  (491)

どうして動くようになったかの詳細について調べてませんが、たぶんカーネルビルドのオプションや、ハード依存関係のスクリプトなどに変更があったのだろうとおもわれます。

回答いただいた皆様にこの場でお礼申し上げます。ありがとうございました。

オフライン

 

Board footer

Powered by FluxBB