On 2010-12-24 20:34, Arjan van de Ven wrote:
> On 12/24/2010 10:27 AM, Török Edwin wrote:
>> Thanks, it works now.
> 
> thanks for the feedback! really appreciated; comments below
>> The per-process power usage tracking, and the new tunables tab looks
>> great.
>>
>> See below for some small issues I've noticed.
>> What information do you need to track down what is wrong? Will powertop
>> --html output suffice, or do you need a strace of powertop?
> 
> lets try the html output.... if the html output is not enough I need to
> enhance it ;-)

Attached.

> (the idea of the html output is that it should contain all the
> information needed to diagnose power issues... making it easy for
> reporters and easy for the support guys (or developers) because all the
> information is easy to get, and just there)
> 
> 
>>   - powertop only shows power drain, no longer shows how many hours of
>> battery I have left
> 
> is this feature appreciated? I can add it back quite easily....

What else is there that prints this info? The gnome power manager thingy
only shows percentage, and not estimated time lately :(
Maybe I should just switch to KDE on my laptop too (I only use gnome on
my laptop because it is quicker to log in).

> 
>>   - tunables tab doesn't show that 'enter' is a valid key that can be
>> used to toggle
> 
> good point; will fix.

Are there any other hidden keys? :)

> 
>>   - HDA-intel audio is shown as 100% used, no music is playing, tunable
>> shows as good and '/sys/module/snd_hda_intel/parameters/power_save' has
>> the value 1. Kernel bug?
> 
> I think you actually have something keeping the device busy!
> lsof should show which one
> 

Nasty.
timidity++  was holding it open, but even after stopping it, it still
shows up as used 100%.
'lsof | grep snd' and 'lsof | grep pcm' come up empty now. Any other
device they may keep open?

> (and I should make PowerTOP just print this information suppose)

Good idea.

> 
>>   - the power saving tunable for wlan0 is not working, pressing enter
>> keeps it in the bad state, also that tunable shows up even if rfkill
>> is on
> 
> interesting; hopefully powertop.html will show which wireless LAN device
> you have ;-)

Intel 4965 AG, I toggle the switch on the back and turned off the radio.

> 
> 
>>   - powertop can't make up its mind how much power my CPU fan is using,
>> it has shown 0 W (and system base estimate of 5W), then a bit later it
>> has shown the fan using 8W (and entire system using 8.x W, system base
>> estimate of 0W). I guess this is because fan can't be turned off to
>> measure its usage, but it still is confusing
> 
> the measurement/estimation is constantly evaluated. I take it you have a
> thinkpad?

The X300, yes.

> If the estimate is unstable maybe I need to "dampen" the estimator a bit
> more for it.
> (fan's have been the hardest to get working well.. their power is a 3rd
> order polynomal with the RPMs,
> due to the physics of moving air with a rotating thing. 3rd order
> polynomals suck for least-square estimators
> since they're not always very stable)

When the fan is running at around 1800 rpm it shows as 0, when it is
something high (as 5000) it shows as taking up close to 8 W.

> 
> 
> 
>>   - I don't see per-process GPU ops as on the screenshot in your blog, I
>> only see GPU ops on the device tab. Is this because of some missing
>> kernel feature?
> 
> which graphics do you have?

Intel GM965/GL960.

> also, the HTML might give more detail
> 
>>   - gnome-terminal shows up sometimes towards the top, I guess its due to
>> the blinking cursor. How do I turn that off? They seem to have removed
>> that config option in latest version :(
> 
> DOH.
> 

Best regards,
--Edwin

PowerTOP report

System information

PowerTOP version1.95 alpha 1
Kernel versionLinux version 2.6.37-rc7+ (ed...@thunder) (gcc version 4.4.5 20100824 (prerelease) (Debian 4.4.4-11) ) #26 SMP Fri Dec 24 13:58:37 EET 2010
System nameLENOVO 647814G ThinkPad X300
CPU information2x Intel(R) Core(TM)2 Duo CPU L7100 @ 1.20GHz
OS information

Power consumption summary

Power est.UsageEvents/sCategoryDescription
20.9 W 5031 rpmDeviceLaptop fan
3.20 W 30.0%DeviceDisplay backlight
600 mW 100.0%DeviceSATA disk: SAMSUNG MCCOE64G
119 mW 0.0 pkts/sDeviceNetwork interface: eth0 (e1000e)
93.8 mW 332.8 µs/s 9.3Timertick_sched_timer
85.7 mW 0.1% 6.3Processgnome-terminal
83.3 mW 100.0%DeviceAudio codec hwC0D0: Analog Devices
59.7 mW 0.2% 4.6Process/usr/bin/python -O /usr/share/wicd/daemon/wicd-daemon.py
58.3 mW 0.4% 2.7Process/usr/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
56.8 mW 399.9 µs/s 5.4Interrupt[14] ide0

Processor Idle state report

Package   CPU 0
C0 polling 0.0%  C0 polling 0.0% 0.0 ms
C1 0.1%  C1 0.0% 0.0 ms
C2 0.1%  C2 0.1% 0.1 ms
C3 98.9%  C3 98.9% 30.6 ms
    CPU 1
   C0 polling 0.0% 0.0 ms
   C1 0.2% 1.2 ms
   C2 0.1% 0.1 ms
   C3 98.8% 29.2 ms

Processor frequency report

Package   CPU 0
Turbo Mode 0.1%   Turbo Mode 0.1%
1200 Mhz 0.0%   1200 Mhz 0.0%
800 Mhz 0.6%    800 Mhz 0.2%
Idle 99.2%   Idle 99.7%
    CPU 1
   Turbo Mode 0.1%
   1200 Mhz 0.0%
    800 Mhz 0.6%
   Idle 99.2%

Overview of software power consumers

Power est.UsageWakeups/sGPU ops/sDisk IO/sCategoryDescription
93.8 mW 332.8 µs/s 9.3Timertick_sched_timer
85.7 mW 1.1 ms/s 4.6 1.7Processgnome-terminal
59.7 mW 1.6 ms/s 4.6Process/usr/bin/python -O /usr/share/wicd/daemon/wicd-daemon.py
58.3 mW 3.5 ms/s 2.7Process/usr/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
56.8 mW 399.9 µs/s 5.4Interrupt[14] ide0
55.4 mW 1.0 ms/s 4.7Process/usr/bin/dbus-daemon --system
41.0 mW 429.6 µs/s 3.8Processudisks-daemon: polling /dev/hda
40.7 mW 559.0 µs/s 3.6Process/usr/bin/python -O /usr/share/wicd/daemon/monitor.py
39.6 mW 59.5 µs/s 4.0Timerhrtimer_wakeup
27.5 mW 184.8 µs/s 2.6Processgnome-power-manager
25.6 mW 184.6 µs/s 2.4kWorkblk_unplug_work
22.8 mW 143.8 µs/s 2.2Processupdate-notifier
20.2 mW 1.5 ms/s 0.6Processwicd
20.0 mW 214.7 µs/s 1.8Interrupt[9] acpi
17.6 mW 111.4 µs/s 1.7Processgnome-panel
16.2 mW 13.5 µs/s 1.6kWorkintel_idle_update
15.0 mW 98.5 µs/s 1.4Process/usr/lib/gnome-settings-daemon/gnome-settings-daemon
14.7 mW 61.8 µs/s 1.4Processnautilus
14.2 mW 58.8 µs/s 1.4Processnm-applet --sm-disable
14.1 mW 51.0 µs/s 1.4Processbluetooth-applet
14.1 mW 47.0 µs/s 1.4Process/usr/lib/evolution/2.30/evolution-alarm-notify
13.6 mW 45.3 µs/s 1.3Process/usr/bin/python /usr/bin/system-config-printer-applet
13.6 mW 44.9 µs/s 1.3Processgnome-screensaver
13.6 mW 41.9 µs/s 1.3Process/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
13.5 mW 91.2 µs/s 1.3Processgnome-session
13.1 mW 47.4 µs/s 1.3Process/usr/bin/seahorse-agent --execute gnome-session
13.1 mW 43.5 µs/s 1.3Process/usr/lib/gnome-disk-utility/gdu-notification-daemon
12.6 mW 43.6 µs/s 1.2Processkerneloops-applet
12.2 mW 48.7 µs/s 1.2Process/usr/bin/python -O /usr/share/wicd/gtk/wicd-client.py
11.9 mW 182.6 µs/s 1.0Process/usr/sbin/hald
11.7 mW 54.1 µs/s 1.1Process/usr/bin/metacity
11.3 mW 166.7 µs/s 1.0Process/usr/lib/upower/upowerd
10.2 mW 47.4 µs/s 1.0Process/usr/lib/gvfs/gvfs-afc-volume-monitor
9.26 mW 158.9 µs/s 0.8Processudevd --daemon
7.94 mW 14.3 µs/s 0.8kWorki915_gem_retire_work_handler
7.42 mW 11.7 µs/s 0.7Process[ksoftirqd/0]
5.47 mW 64.7 µs/s 0.5kWorke1000_watchdog_task
5.13 mW 508.4 µs/s 0.0Processpowertop --html
4.67 mW 30.5 µs/s 0.4Interrupt[43] i915
4.65 mW 28.2 µs/s 0.4Processhald-addon-storage: no polling on /dev/hda because it is explicitly disabled
2.97 mW 5.1 µs/s 0.3Interrupt[3] net_rx(softirq)
2.06 mW 11.6 µs/s 0.2Processinit [2]
1.34 mW 147.2 µs/skWorkdo_dbs_timer
1.30 mW 142.9 µs/sProcessifconfig
1.20 mW 131.3 µs/sInterrupt[0] timer/0
1.19 mW 23.6 µs/s 0.1Process/usr/sbin/console-kit-daemon --no-daemon
1.10 mW 121.0 µs/sInterrupt[0] timer/1
1.10 mW 120.9 µs/sInterrupt[9] RCU(softirq)
1.09 mW 66.0 µs/s 0.0Process/usr/sbin/kerneloops
1.02 mW 4.7 µs/s 0.1Process[ksoftirqd/1]
1.02 mW 4.4 µs/s 0.1Process/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/seahorse-agent --execute gnome-session
994 uW 2.0 µs/s 0.1Timerwatchdog_timer_fn
955 uW 104.6 µs/sTimerdelayed_work_timer_fn
856 uW 93.8 µs/sInterrupt[1] timer(softirq)
723 uW 79.2 µs/sProcess[kworker/0:2]
519 uW 3.4 µs/s 0.0Process[khungtaskd]
501 uW 1.4 µs/s 0.0Process/sbin/audispd
501 uW 1.4 µs/s 0.0kWorkrekey_seq_generator
495 uW 0.8 µs/s 0.0Process[watchdog/0]
494 uW 0.7 µs/s 0.0kWorkneigh_periodic_work
494 uW 0.7 µs/s 0.0Process[sync_supers]
494 uW 0.7 µs/s 0.0Process[watchdog/1]
492 uW 0.5 µs/s 0.0Timersched_rt_period_timer
441 uW 48.3 µs/sProcess/usr/sbin/libvirtd -d
392 uW 42.9 µs/sProcess[kworker/1:1]
354 uW 38.8 µs/sInterrupt[7] sched(softirq)
236 uW 25.8 µs/sProcess[kworker/u:2]
177 uW 19.4 µs/sTimerblk_unplug_timeout
104 uW 11.4 µs/sTimerintel_gpu_idle_timer
0 mW 9.3 µs/skWorkvmstat_update
0 mW 9.0 µs/sProcess/usr/bin/dbus-daemon --fork --print-pid 5 --print-address 8 --session
0 mW 7.7 µs/skWorkrt_worker_func
0 mW 6.7 µs/sTimeri915_hangcheck_elapsed
0 mW 3.7 µs/sInterrupt[45] eth0
0 mW 2.4 µs/sProcess[migration/1]
0 mW 2.3 µs/sProcess[migration/0]
0 mW 2.1 µs/sTimere1000_watchdog
0 mW 1.1 µs/sInterrupt[8] hrtimer(softirq)
0 mW 0.9 µs/sTimermce_start_timer
0 mW 0.6 µs/sTimerinet_frag_secret_rebuild
0 mW 0.6 µs/sTimerprocess_timeout
0 mW 0.3 µs/sTimersync_supers_timer_fn
0 mW 0.2 µs/sTimerflow_cache_new_hashrnd
0 mW 0.1 µs/sTimerlaptop_mode_timer_fn

Device power report

The battery reports a discharge rate of 7.99 W

System baseline power is estimated at 122 mW

Power est.UsageDevice name
20.9 W 5031 rpmLaptop fan
3.20 W 30.0%Display backlight
942 mW 1.5%CPU use
600 mW 100.0%SATA disk: SAMSUNG MCCOE64G
119 mW 0.0 pkts/sNetwork interface: eth0 (e1000e)
100.0%Audio codec hwC0D0: Analog Devices
31.1 mW 1.7 ops/sGPU
0 mW 0.0 pkts/sNetwork interface: wlan0 (iwlagn)
0 mW 0.0%USB device: EHCI Host Controller
0 mW 0.0%USB device: EHCI Host Controller
0 mW 0.0%Radio device: thinkpad_acpi
0 mW 0.0%Radio device: iwlagn
0 mW 0.0%USB device: UHCI Host Controller
0 mW 0.0%USB device: Biometric Coprocessor (STMicroelectronics)
0 mW 0.0%USB device: Chicony Electronics Co., Ltd.
0 mW 0.0%USB device: UHCI Host Controller
0 mW 0.0%USB device: UHCI Host Controller
0 mW 0.0%USB device: UHCI Host Controller
0 mW 0.0%USB device: UHCI Host Controller
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1
100.0%PCI Device: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller
100.0%PCI Device: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) SMBus Controller
100.0%PCI Device: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5
100.0%PCI Device: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4
100.0%PCI Device: Intel Corporation 82566MM Gigabit Network Connection
100.0%PCI Device: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller
100.0%PCI Device: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub
0.0%SATA link: host2
0.0%SATA link: host1

Software settings in need of tuning

Wireless Power Saving for interface wlan0

Untunable software issues

PCI Device Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller has no runtime power management
PCI Device Intel Corporation 82801 Mobile PCI Bridge has no runtime power management
PCI Device Intel Corporation 82801HBM (ICH8M-E) LPC Interface Controller has no runtime power management

Optimal tuned software settings

Enable Audio codec power management
Enable SATA link power management for /dev/sda
VM writeback timeout
Autosuspend for USB device EHCI Host Controller [usb1]
Autosuspend for USB device Chicony Electronics Co., Ltd. [2-5]
Autosuspend for USB device UHCI Host Controller [usb3]
Autosuspend for USB device UHCI Host Controller [usb4]
Autosuspend for USB device UHCI Host Controller [usb5]
Autosuspend for USB device UHCI Host Controller [usb6]
Autosuspend for USB device UHCI Host Controller [usb7]
Autosuspend for USB device Biometric Coprocessor (STMicroelectronics)
Autosuspend for USB device EHCI Host Controller [usb2]
Runtime PM for PCI Device Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub
Runtime PM for PCI Device Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller
Runtime PM for PCI Device Intel Corporation 82566MM Gigabit Network Connection
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) HD Audio Controller
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) PCI Express Port 1
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) PCI Express Port 2
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) PCI Express Port 3
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1
Runtime PM for PCI Device Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller
Runtime PM for PCI Device Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4
Runtime PM for PCI Device Intel Corporation 82801H (ICH8 Family) SMBus Controller
Runtime PM for PCI Device Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection
Wake-on-lan status for device eth0
Using 'ondemand' cpufreq governor

_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power

Reply via email to