手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

新Ubuntu Linux内核耗电量显著增加

[日期:2011-04-24] 来源:solidot  作者:solidot [字体:大 中 小]

Phoroni在笔记本上测试了不同版本Ubuntu的总体系统性能、耗电量、启动性能,注意到最近推出的新版内核在某些工作负荷下消耗了更多电量,平均增加了10%,最高达到了30%。对Linux 2.6.35, 2.6.36, 2.6.37, 2.6.38和2.6.39(开发版本)内核的测试显示,2.6.38内核的耗电量显著增加,而2.6.39版本存在同样的问题,尚未被修复。在Ubuntu的bug报告系统,有用户反映,运行Ubuntu 11.04的笔记本电池续航力比10.10大幅减少,从4小时减少至2:45左右。

测试:

For those that follow my personal Twitter feed will know that for the past week I've been closely testing Ubuntu 11.04 and all Ubuntu releases going back to Ubuntu 8.04 on many mobile devices in the office. The overall system performance, power consumption, and boot performance have been the principal targets. However, late this week I discovered a glaring regression: Ubuntu 11.04 is viciously going through power. Compared to Ubuntu 10.10, the power consumption on Ubuntu 11.04 for mobile devices is up about 10% on average but under some workloads, I am seeing the power consumption up by nearly 30%. This is happening on many mobile systems spanning multiple generations of Intel CPUs and with Intel / ATI / NVIDIA graphics. This issue has been tracked down to a frightening kernel regression in the mainline tree that is still not addressed.

In the publishing queue for Monday morning is the main article for the full power consumption results with all of the tested mobile devices, more details, and of the Ubuntu releases going back to 8.04 Hardy. However, due to the severity of the regression, this afternoon I am putting out the key bits of information that illustrate the regression. During the Linux 2.6.38 kernel development, a regression was introduced causing systems to burn through significantly more power. The below graph shows the battery power consumption of one of the Lenovo ThinkPad notebooks under the Linux 2.6.35, 2.6.36, 2.6.37, 2.6.38, and 2.6.39 (Git code as of 19 April 2011) kernels. Unlike some of the other regressions to have been highlighted on Phoronix, this regression is still unfixed in Linux 2.6.39. On the particular system being talked about in the article today is the power consumption going up by 14%, which would lead to a noticeably shorter battery life.

This particular result is for the ThinkPad T60 with an Intel Core Duo and ATI Mobility Radeon graphics, but the power regression as spotted by the original Ubuntu 11.04 tests has been found on hardware going back to a vintage Pentium M notebook and also under Atom netbooks to a lesser extent. As far as what the above graph illustrates, it is a composite overview showing the battery power consumption when the Ubuntu Linux system was idling followed by running the OpenArena game, and then running the OpenSSL benchmark to show a variety of workloads. The Linux 2.6.35/2.6.36/2.6.37 results are virtually identical, but with 2.6.38 is where the regression strikes. As far as the Linux 2.6.39 results, it shows the regression still present. The Linux 2.6.39 results are slightly different from the 2.6.38 results likely because the Intel 3945ABG WiFi adapter separately regressed and is currently borked/non-functional in this kernel on the ThinkPad T60. Below are the results broken down by test profile.

The above graph shows each of the kernel's power consumption when the system was doing nothing but idling in the GNOME desktop. Between the Linux 2.6.37 and 2.6.38 vanilla kernels, the power consumption goes up by an average of 18% when just idling.

用户反映:

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

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款