Comment 84 for bug 760131

Revision history for this message
Matthew Hessel (matt-hessel) wrote : Re: [Bug 760131] Re: Power consumption raised significantly in natty

Cjcolla - with over 1000 wakeups per second, I would not think there
is much chance of the processor entering a sleep state at all.

It looks to me like all of the wakeups are from your usb devices, were
you doing much with the mouse or anything like that while taking the
snapshot?

Earlier in the thread is a link for 2.6.38.9 kernel patched to fix the
kernel wakeup timer wrapping issue, on my laptop it doesn't seem to
change the maximum power draw in powertop, but when wakeup events are
triggered, the power draw doesn't seem to spike as bad.

With desktop effects on and I am running unity with the proprietary
nvidia driver, I idle at about 21-22 watts and about 100 wakeups per
second.

With gnome (no effects). That drops to around 20 watts.

Nouveau will kick it up to 26 watts at idle.

With the lucid kernel running on natty, I get idle down to about 18 -
19 watts and the nvidia driver. 24 watts with nouveau.

You might want to check into installing laptop-mode-tools and
verifying you have cpufrequtils installed.

My friend's eepc 1015 was upgraded to natty, and did not get those
installed by default, I added and enabled those and installed the
proprietary fglrx driver to drop him down from 16 watts to about 9 at
idle with unity running full effects.

I was running conky configured with conky-colors (mentioned at
webupd8) and found that the 1 second polling was eating up a lot of
power. Top wakeups were from the window manager and the kernel load
balancing process. Killing conky dropped both of those down again.

I changed conky to only poll every 5 seconds, now the draw isn't too
bad, maybe 1-2 watts additional.

On 6/9/11, cjcolella <email address hidden> wrote:
> @z06gal: Thank you for the suggestion, but unfortunately, 2.6.39.1 shows
> little improvement on this hardware (Toshiba laptop L305-S5937, Core 2
> Duo Intel processors, integrated Intel GM45, etc.).
>
> I would add, however, that I am using Kubuntu now, and have the same
> issue in Ubuntu. Even without compositing in each, the problem is still
> manifest.
>
> Here is a summary of Powertop using kernel 2.6.37 and Kwin effects:
>
> Wakeups-from-idle per second : 1122.8 interval: 15.0s
>
> no ACPI power usage estimate available
>
> Top causes for wakeups:
> 22.6% ( 77.1) [i915] <interrupt>
> 19.8% ( 67.5) USB device 5-1 : USB OPTICAL MOUSE (PIXART)
> 15.0% ( 51.0) [ehci_hcd:usb2, uhci_hcd:usb5] <interrupt>
> 5.9% ( 20.0) knotify4
> 5.0% ( 17.0) kworker/0:0
> 4.4% ( 15.0) USB device 1-4 : USB2.0-CRW (Generic)
> 4.2% ( 14.4) [ehci_hcd:usb1, uhci_hcd:usb6] <interrupt>
> 3.4% ( 11.7) [ath9k] <interrupt>
> 0.1% ( 0.4)D plasma-desktop
> 2.8% ( 9.5) kworker/u:0
> 2.8% ( 9.4) [kernel scheduler] Load balancing tick
>
>
> Now, i915 is the top cause here, though the "Load balancing tick" often tops
> at different intervals. Disabling desktop effects doesn't change the results
> much.
>
> So, disabling desktop effects and reverting to the 2.6.34 kernel results
> in the following:
>
> Wakeups-from-idle per second : 1182.8 interval: 3.0s
>
> no ACPI power usage estimate available
>
> Top causes for wakeups:
> 21.1% ( 44.3) [kernel scheduler] Load balancing tick
> 10.5% ( 22.0) [ehci_hcd:usb2, uhci_hcd:usb5] <interrupt>
> 9.5% ( 20.0) knotify4
> 8.7% ( 18.3) USB device 5-1 : USB OPTICAL MOUSE (PIXART)
> 8.6% ( 18.0) [ehci_hcd:usb1, uhci_hcd:usb6] <interrupt>
> 7.9% ( 16.7) USB device 1-4 : USB2.0-CRW (Generic)
> 4.8% ( 10.0) [kernel core] ath_ani_calibrate (ath_ani_calibrate)
> 4.6% ( 9.7) [ath9k] <interrupt>
> 4.3% ( 9.0) [kernel core] hrtimer_start (tick_sched_timer)
> 2.9% ( 6.0) [ahci] <interrupt>
> 2.1% ( 4.3) phy0
> 1.9% ( 4.0) [kernel core] usb_hcd_poll_rh_status (rh_timer_func)
> 1.9% ( 4.0) kwin
> 1.3% ( 2.7) [hda_intel] <interrupt>
> 1.3% ( 2.7) alsa-sink
> 1.3% ( 2.7) threaded-ml
> 1.3% ( 2.7) USB device 2-3 : My Passport 070A (Western Digital)
>
> So I found this other bug report about "[kernel scheduler] Load
> balancing tick" on Core 2 Duo. I wonder, as Mr. Hessel mentioned back in
> May, could this be a contributing factor?
>
> https://bugs.launchpad.net/debian/+source/linux-2.6/+bug/524281
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/760131
>
> Title:
> Power consumption raised significantly in natty
>
> Status in Release Notes for Ubuntu:
> Fix Released
> Status in “linux” package in Ubuntu:
> Triaged
> Status in “linux” source package in Natty:
> Incomplete
> Status in “linux” source package in Oneiric:
> Triaged
>
> Bug description:
> This is a regression moving from maverick->natty. With the same sort
> of light interactive usage, Battery life has gone from ~4 hours to
> 2:45 or so.
>
> Running powertop shows the system in P-state "Turbo mode" 10-15% of
> the time. Typically this was almost zero in maverick, 98+% of the
> time maverick was in the lowest state.
>
> wakeups reported in the 5-600/s range where previously (from memory)
> it was 200 ish. i915 driver is high on the list. This is
> irrespective of whether running unity or classic desktop.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 11.04
> Package: linux-image-2.6.38-8-generic 2.6.38-8.42
> Regression: Yes
> Reproducible: Yes
> ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
> Uname: Linux 2.6.38-8-generic x86_64
> AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
> Architecture: amd64
> ArecordDevices:
>  **** List of CAPTURE Hardware Devices ****
>  card 0: Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog]
>    Subdevices: 1/1
>    Subdevice #0: subdevice #0
> AudioDevicesInUse:
>  USER PID ACCESS COMMAND
>  /dev/snd/controlC0: james 2068 F.... pulseaudio
> CRDA: Error: [Errno 2] No such file or directory
> Card0.Amixer.info:
>  Card hw:0 'Intel'/'HDA Intel at 0xf2620000 irq 47'
>    Mixer name : 'Conexant CX20561 (Hermosa)'
>    Components : 'HDA:14f15051,17aa20ff,00100000'
>    Controls : 16
>    Simple ctrls : 8
> Card29.Amixer.info:
>  Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30,
> fw 7XHT24WW-1.06'
>    Mixer name : 'ThinkPad EC 7XHT24WW-1.06'
>    Components : ''
>    Controls : 1
>    Simple ctrls : 1
> Card29.Amixer.values:
>  Simple mixer control 'Console',0
>    Capabilities: pswitch pswitch-joined penum
>    Playback channels: Mono
>    Mono: Playback [on]
> Date: Wed Apr 13 15:03:35 2011
> EcryptfsInUse: Yes
> HibernationDevice: RESUME=UUID=bb479652-f524-4abe-b1b0-27646d6deebc
> InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release Candidate
> amd64 (20100928)
> MachineType: LENOVO 7465CTO
> ProcEnviron:
>  LANGUAGE=en_US:en_GB:en
>  PATH=(custom, user)
>  LANG=en_US.UTF-8
>  SHELL=/bin/bash
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-8-generic
> root=UUID=266abe9a-19c2-4cc3-9ef7-238b729b6044 ro quiet splash
> libata.force=noncq vt.handoff=7
> RelatedPackageVersions:
>  linux-restricted-modules-2.6.38-8-generic N/A
>  linux-backports-modules-2.6.38-8-generic N/A
>  linux-firmware 1.50
> RfKill:
>  0: phy0: Wireless LAN
>   Soft blocked: no
>   Hard blocked: no
> SourcePackage: linux
> UpgradeStatus: Upgraded to natty on 2011-04-06 (7 days ago)
> dmi.bios.date: 11/10/2009
> dmi.bios.vendor: LENOVO
> dmi.bios.version: 6DET61WW (3.11 )
> dmi.board.name: 7465CTO
> dmi.board.vendor: LENOVO
> dmi.board.version: Not Available
> dmi.chassis.asset.tag: No Asset Information
> dmi.chassis.type: 10
> dmi.chassis.vendor: LENOVO
> dmi.chassis.version: Not Available
> dmi.modalias:
> dmi:bvnLENOVO:bvr6DET61WW(3.11):bd11/10/2009:svnLENOVO:pn7465CTO:pvrThinkPadX200s:rvnLENOVO:rn7465CTO:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
> dmi.product.name: 7465CTO
> dmi.product.version: ThinkPad X200s
> dmi.sys.vendor: LENOVO
>
> === Release Notes ===
>
> Due to a regression inherited from the upstream linux kernel, Natty 11.04
> can exhibit a 10-30% increase in power consumption. This is a known issue
> which is actively being investigated. A SRU will be released onced a viable
> solution is found. For more information, please see
>
> http://www.phoronix.com/scan.php?page=article&item=linux_mobile_uffda&num=1
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu-release-notes/+bug/760131/+subscriptions
>

--
Sent from my mobile device