powertop | ぼぶろぐ

ぼぶろぐ

以前は、あいらぶLinux♪というタイトルでしたが、
最近はLinux以外のことも書いているので、タイトルを変更しました。
ぼぶちゃんのぶろぐでぼぶろぐです。

◆powertop
消費電力を悪化させる非効率なソフトウェアを探すツール

OS:Fedora10
[root@localhost ~]# yum -y install powertop
Loaded plugins: downloadonly, fastestmirror, refresh-packagekit
Determining fastest mirrors
* fedora: www.ftp.ne.jp
* updates: ftp.dti.ad.jp
fedora | 2.8 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 4.3 MB 00:15
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package powertop.i386 0:1.10-1.fc10 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================
Package Arch Version Repository Size
=========================================================================================
Installing:
powertop i386 1.10-1.fc10 updates 79 k

Transaction Summary
=========================================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 79 k
Downloading Packages:
powertop-1.10-1.fc10.i386.rpm | 79 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : powertop-1.10-1.fc10.i386 1/1

Installed:
powertop.i386 0:1.10-1.fc10

Complete!
[root@localhost ~]# powertop
PowerTOP 1.10 (C) 2007, 2008 Intel Corporation

5秒間データを取得します。



PowerTOP version 1.10 (C) 2007 Intel Corporation

< 詳細なCステイト情報が取得できません Pステイト (周波数)






1秒あたりのCPU割り当て回数 : 103.8 時間間隔: 5.0秒
ACPIの消費電力見積り機能が有効ではありません。

CPU割り当て回数上位一覧:
74.3% ( 36.4) <割り込み> : ata_piix
4.5% ( 2.2) <カーネルコア> : mod_timer (cfq_idle_slice_timer)
4.1% ( 2.0) <カーネルコア> : add_timer_on (clocksource_watchdog)
4.1% ( 2.0) mysqld : __mod_timer (process_timeout)
2.9% ( 1.4) <割り込み> : eth0
2.0% ( 1.0) snmpd : __mod_timer (process_timeout)
1.2% ( 0.6) <カーネルコア> : __mod_timer (neigh_periodic_timer)
0.8% ( 0.4) ip : mod_timer (pcnet32_watchdog)
0.4% ( 0.2) sshd : mod_timer (tcp_write_timer)
0.4% ( 0.2) <カーネルコア> : __enqueue_rt_entity (sched_rt_period_timer)
0.4% ( 0.2) kerneloops : __mod_timer (process_timeout)
0.4% ( 0.2) <カーネルコア> : mod_timer (neigh_timer_handler)
0.4% ( 0.2) ip : mod_timer (dev_watchdog)
0.4% ( 0.2) nmbd : __mod_timer (process_timeout)
0.4% ( 0.2) packagekitd : __mod_timer (process_timeout)
0.4% ( 0.2) <モジュール> : __mod_timer (neigh_periodic_timer)
0.4% ( 0.2) crond : do_nanosleep (hrtimer_wakeup)

提案: 以下のコマンドでVMの遅延書き戻し間隔を4.99秒から15秒に延長できます。
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
この設定はVMのバックグラウンド動作によるディスクアクセスの頻度が低くなります。
Q - 終了 R - 更新 W - 書き戻し間隔を延長


ここでWキーを押すと消費電力を抑えるカスタマイズ設定が
適用されるようです。

ですが、powertopで変更しても再起動すると元に戻ってしまうので、
BIOSやら起動スクリプトに追加して変更状態を保つことが必要となります。