On 18/06/11 08:41, Peter Hüwe wrote:
Am Donnerstag 16 Juni 2011, 09:56:20 schrieb Brad Campbell:
On 14/06/11 22:22, Brad Campbell wrote:
So it turns out that there is no direct way to enable CONFIG_TRACING. If
you have perf enabled then powertop won't spit out the diagnostic message
telling you to enable both perf and trace. After an hour of rooting
through Kconfig files, I finally figured out the quickest way to enable
TRACING was in the Kernel hacking menu ; Tracers (CONFIG_FTRACE) ; Kernel
Function Tracer (CONFIG_FUNCTION_TRACER), which selects GENERIC_TRACER
which in turn selects CONFIG_TRACING.

Did I miss something obvious in the docs?

Regards,
Brad

Yeah it seems you have to enable CONFIG_FTRACE.
So maybe powertop should suggest this one in the first place?

@Edwin and Brad: Thanks for finding this out - I'll send a patch that spits
out the message if access to /sys/kernel/debug/tracing/events fails.

Now I've attached my powertop.html file so you can see what I'm on about.

The old powertop used to identify wakeups to processes. Mine just gives me loads of timers with no process data attached. Is there some other config entry I was supposed to enable for it to output meaningful data?

Just in case it's important, I'm using a 32bit userspace on a 64bit kernel.

Regards,
Brad
--
Dolphins are so intelligent that within a few weeks they can
train Americans to stand at the edge of the pool and throw them
fish.

PowerTOP report

System information

PowerTOP version1.98 beta 1
Kernel versionLinux version 3.0.0-rc3-64+ (brad@bklaptop) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #2 SMP Fri Jun 17 20:10:10 WST 2011
System nameSony Corporation VAIO J003FD3S
CPU information2x Intel(R) Core(TM)2 Duo CPU U9300 @ 1.20GHz
OS information

Power consumption summary

376.9 wakeups/second, 0.0 GPU ops/second, 0.0 VFS ops/sec, 67.0 GFX wakes/sec and 1372682.5% CPU use

UsageEvents/sCategoryDescription
215152% 0.00Timer
85485% 0.00Timer
42820% 0.00Timer
42807% 0.00Timer
42799% 0.00Timer
42799% 0.00Timer
42793% 0.00Timer
42789% 0.00Timer
42779% 0.00Timer
42775% 0.00Timer

Processor Idle state report

Package   CPU 0
POLL 0.0%  POLL 0.0% 0.2 ms
C1 58.7%  C1 59.6% 1.5 ms
C2 1.7%  C2 1.3% 1.4 ms
C3 22.1%  C3 20.5% 1.6 ms
    CPU 1
   POLL 0.0% 1.8 ms
   C1 57.9% 1.8 ms
   C2 2.2% 2.3 ms
   C3 23.6% 1.9 ms

Processor frequency report

Package   CPU 0
Turbo Mode 0.0%   Turbo Mode 0.0%
1200 Mhz 0.0%   1200 Mhz 0.0%
800 Mhz 0.0%    800 Mhz 0.0%
Idle 100.0%   Idle 100.0%
    CPU 1
   Turbo Mode 0.0%
   1200 Mhz 0.0%
    800 Mhz 0.0%
   Idle 100.0%

Overview of software power consumers

UsageWakeups/sGPU ops/sDisk IO/sGFX Wakeups/sCategoryDescription
2151528 ms/sTimer
854855 ms/sTimer
428203 ms/sTimer
428077 ms/sTimer
427991 ms/sTimer
427991 ms/sTimer
427934 ms/sTimer
427898 ms/sTimer
427798 ms/sTimer
427752 ms/sTimer
427698 ms/s 0.05Timer
427598 ms/s 0.05Timer
427550 ms/s 0.05Timer
427537 ms/s 0.05Timer
427492 ms/s 0.05Timer
427481 ms/s 0.05Timer
427436 ms/sTimer
427398 ms/s 0.05Timer
427398 ms/sTimer
427376 ms/s 0.05Timer
427351 ms/s 0.05Timer
427343 ms/s 0.05Timer
427310 ms/s 0.05Timer
427305 ms/sTimer
427272 ms/s 0.05Timer
427260 ms/sTimer
427216 ms/s 0.05Timer
1044 ms/sTimer
805.4 ms/s 0.4kWork
599.7 ms/sTimer
549.7 ms/s 0.05Timer
499.8 ms/sTimer
499.5 ms/sTimer
400.4 ms/sTimer
399.9 ms/sTimer
399.8 ms/sTimer
399.7 ms/sTimer
399.5 ms/sTimer
53.2 ms/s126.2 14.3Process
343.9 ms/sTimer
299.9 ms/sTimer
299.9 ms/sTimer
299.7 ms/sTimer
299.6 ms/sTimer
251.9 ms/sTimer
249.8 ms/s 0.05Timer
249.9 ms/sTimer
249.8 ms/sTimer
249.8 ms/sTimer
249.2 ms/sTimer
245.5 ms/s 0.05Timer
222.7 ms/sTimer
200.3 ms/sTimer
200.0 ms/s 0.05Timer
199.9 ms/s 0.05Timer
199.8 ms/s 0.05Timer
199.9 ms/sTimer
199.8 ms/sTimer
199.7 ms/sTimer
199.6 ms/sTimer
186.5 ms/s 0.05Timer
160.0 ms/sTimer
150.0 ms/s 0.05Timer
150.0 ms/sTimer
149.9 ms/sTimer
149.9 ms/sTimer
149.9 ms/sTimer
149.8 ms/sTimer
149.8 ms/sTimer
149.1 ms/sTimer
25.3 ms/s 35.0 52.6Process
138.7 ms/sTimer
122.6 ms/s 0.05Timer
101.3 ms/s 0.05Timer
100.8 ms/sTimer
100.3 ms/sTimer
100.3 ms/sTimer
100.0 ms/s 0.05Timer
99.9 ms/s 0.05Timer
99.9 ms/s 0.05Timer
100.0 ms/sTimer
99.9 ms/s 0.05Timer
99.9 ms/s 0.05Timer
100.0 ms/sTimer
99.8 ms/s 0.05Timer
100.0 ms/sTimer
99.8 ms/s 0.05Timer
99.9 ms/sTimer
99.9 ms/sTimer
99.9 ms/sTimer
99.9 ms/sTimer
99.9 ms/sTimer
99.9 ms/sTimer
99.9 ms/sTimer
99.9 ms/sTimer
99.7 ms/s 0.05Timer
99.9 ms/sTimer
99.8 ms/sTimer
99.8 ms/sTimer
99.8 ms/sTimer

Process device activity

ProcessDevice
init/dev/null (deleted)
/dev/null (deleted)
/dev/null (deleted)
acpid/dev/input/event7
/dev/input/event1
/dev/input/event0
openvpn/dev/net/tun
/dev/net/tun
/dev/net/tun
Xorg/dev/input/event5
/dev/input/event2
/dev/input/event8
/dev/input/event0
/dev/input/event3
/dev/input/event7
/dev/input/event6
/dev/dri/card0
/dev/vga_arbiter
upowerd/dev/input/event1
/dev/network_latency
/dev/cpu_dma_latency
sonypid/dev/sonypi
pulseaudio/dev/snd/pcmC0D0p
/dev/snd/controlC0
/dev/snd/controlC0
/dev/snd/controlC0
blueman-applet/dev/rfkill
hald-addon-inpu/dev/input/event11
/dev/input/event1
/dev/input/event7
/dev/input/event3
/dev/input/event0
/dev/input/event8
/dev/input/event2
/dev/input/event4

Device power report

UsageDevice name
1372682%CPU use
27.9%Audio codec hwC0D0: Realtek (pulseaudio )
0.0 pkts/snic:tun1
0.0 pkts/snic:tun0
0.0 pkts/snic:tun2
100.0%USB device: UHCI Host Controller
87.5%Display backlight
0.0%USB device: UHCI Host Controller
0.0%USB device: UHCI Host Controller
0.0%USB device: UHCI Host Controller
0.0%Audio codec hwC0D2: Intel
0.0 pkts/sNetwork interface: eth0 (e1000e)
182.7 pkts/sNetwork interface: wlan0 (iwlagn)
100.0%PCI Device: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5
100.0%PCI Device: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6
100.0%PCI Device: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2
100.0%PCI Device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller
100.0%PCI Device: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1
100.0%PCI Device: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2
100.0%PCI Device: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4
100.0%PCI Device: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1
100.0%PCI Device: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2
100.0%PCI Device: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3
100.0%PCI Device: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1
100.0%PCI Device: Intel Corporation ICH9M/M-E SATA AHCI Controller
100.0%PCI Device: Intel Corporation Wireless WiFi Link 5100
100.0%PCI Device: Ricoh Co Ltd RL5c476 II
100.0%PCI Device: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter
100.0%PCI Device: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter
100.0%PCI Device: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4
100.0%PCI Device: Intel Corporation 82567LM Gigabit Network Connection
100.0%PCI Device: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller
100.0%PCI Device: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub
100.0%USB device: EHCI Host Controller
100.0%Radio device: iwlagn
100.0%Radio device: Sony Notebook Control Driver
100.0%USB device: Fingerprint Sensor (TouchStrip )
100.0%USB device: Ricoh co. Ltd.
0.0 pkts/snic:tun3
0.0%USB device: EHCI Host Controller
0.0 pkts/snic:dummy0
0.0%Radio device: Sony Notebook Control Driver
0.0%Audio codec hwC0D1: Conexant
0.0%USB device: UHCI Host Controller
0.0%USB device: UHCI Host Controller

Software settings in need of tuning

Wireless Power Saving for interface wlan0
Enable Audio codec power management
Enable SATA link power management for /dev/sda
Power Aware CPU scheduler
Autosuspend for USB device Fingerprint Sensor [TouchStrip ]
Runtime PM for PCI Device Intel Corporation Mobile 4 Series Chipset Memory Controller Hub
Runtime PM for PCI Device Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller
Runtime PM for PCI Device Intel Corporation 82567LM Gigabit Network Connection
Runtime PM for PCI Device Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4
Runtime PM for PCI Device Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6
Runtime PM for PCI Device Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2
Runtime PM for PCI Device Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3
Runtime PM for PCI Device Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter
Runtime PM for PCI Device Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter
Runtime PM for PCI Device Ricoh Co Ltd RL5c476 II
Runtime PM for PCI Device Intel Corporation Wireless WiFi Link 5100
Runtime PM for PCI Device Intel Corporation ICH9M/M-E SATA AHCI Controller
Runtime PM for PCI Device Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1
Runtime PM for PCI Device Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2
Runtime PM for PCI Device Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5
Runtime PM for PCI Device Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1
Runtime PM for PCI Device Intel Corporation 82801I (ICH9 Family) PCI Express Port 4
Runtime PM for PCI Device Intel Corporation 82801I (ICH9 Family) PCI Express Port 1
Runtime PM for PCI Device Intel Corporation 82801I (ICH9 Family) PCI Express Port 2
Runtime PM for PCI Device Intel Corporation 82801I (ICH9 Family) HD Audio Controller
Wake-on-lan status for device eth0

Untunable software issues

PCI Device Intel Corporation Mobile 4 Series Chipset 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 ICH9M-E LPC Interface Controller has no runtime power management
PCI Device Intel Corporation 82801I (ICH9 Family) SMBus Controller has no runtime power management
PCI Device Ricoh Co Ltd R5C832 IEEE 1394 Controller has no runtime power management

Optimal tuned software settings

VM writeback timeout
Autosuspend for USB device Ricoh co. Ltd. [1-2]
Autosuspend for USB device UHCI Host Controller [usb7]
Autosuspend for USB device UHCI Host Controller [usb8]
Autosuspend for USB device UHCI Host Controller [usb5]
Autosuspend for USB device UHCI Host Controller [usb6]
Autosuspend for USB device UHCI Host Controller [usb3]
Autosuspend for USB device UHCI Host Controller [usb4]
Autosuspend for USB device EHCI Host Controller [usb1]
Autosuspend for USB device EHCI Host Controller [usb2]
Wake-on-lan status for device dummy0
Wake-on-lan status for device tun2
Wake-on-lan status for device tun0
Wake-on-lan status for device tun1
Wake-on-lan status for device wlan0
Wake-on-lan status for device tun3
Using 'ondemand' cpufreq governor

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

Reply via email to