1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

An Update On The Linux Power Situation In Ubuntu

Michael Larabel

Published on 7 October 2011
Written by Michael Larabel
Page 1 of 6 - 13 Comments

While I was away for three weeks, there was an update on LP bug #760131, the infamous bug report on the power consumption being raised significantly higher in Ubuntu Natty. This bug report of high importance now indicates a fix being committed to Natty and a fix being released for Oneiric, but what has changed? Here is an update.

As indicated on Phoronix back in April, there was a big kernel power regression in Linux 2.6.38, which showed up during some Ubuntu power testing. I ended up narrowing the biggest increase in power consumption down to a change in how PCI Express ASPM (Active State Power Management) is handled. ASPM used to be enabled on more systems, but with Linux 2.6.38 it's more conservative as otherwise problematic systems could hang. There is a workaround though and that is setting pcie_aspm=force at the kernel command line. It's worked for many users to increase their battery life, as indicated by many of the 189+ comments in the LaunchPad bug report, but it's still far from ideal. The proper solution though is for more Linux drivers to set the ASPM bits directly, for hardware where this PCI-E power management feature is properly supported. As of early October, no widespread work on this has been done upstream yet.

What changed in mid-September is that Tim Gardner, a Canonical employee part of the Ubuntu kernel team, requested an SRU (Stable Release Update) to get a commit from the upstream Linux kernel into Natty's 2.6.38 kernel. The commit in question is "abe48b108247e9b90b4c6739662a2e5c765ed114" from upstream, which is entitled "x86, intel, power: Initialize MSR_IA32_ENERGY_PERF_BIAS."

This is a patch that has been upstream in the mainline Linux kernel since the end of July, immediately following the Linux 3.0 kernel release and pushed during the Linux 3.1 kernel merge window. This patch was then sent to the stable tree as well, which was then released in the Linux 3.0.1 point release. This will be an SRU in Ubuntu 11.04 and is found in Ubuntu 11.10 since its kernel is based on Linux 3.0.1+, which has this stable back-port upstream.

What this patch does is initialize the MSR_IA32_ENERGY_PERF_BIAS machine state register to a value of "normal" by default. Most BIOS do not initialize that MSR, but when that does not happen, the default is to act as if MSR_IA32_ENERGY_PERF_BIAS is in its "performance" mode. When in the performance mode, the hardware will run at maximum performance, but not for maximum energy efficiency. What this patch does is just make sure the hardware starts out in the "normal" mode while later it can be switched to the "performance" mode.

<< Previous Page
1
Latest Linux Hardware Reviews
  1. Even With Re-Clocking, Nouveau Remains Behind NVIDIA's Proprietary Linux Driver
  2. The Power Consumption & Efficiency Of Open-Source GPU Drivers
  3. AMD R600g/RadeonSI Performance On Linux 3.16 With Mesa 10.3-devel
  4. Intel Pentium G3258 On Linux
Latest Linux Articles
  1. AMD Catalyst 14.6 Does Slightly Better With APITest OpenGL Tests
  2. Updated Source Engine Benchmarks On The Latest AMD/NVIDIA Linux Drivers
  3. Nouveau vs. Radeon vs. Intel Tests On Linux 3.16, Mesa 10.3-devel
  4. KVM Benchmarks On Ubuntu 14.10
Latest Linux News
  1. Builder: A New Development IDE Being Built For GNOME
  2. GDB 7.8 Betters Python Scripting, Adds Guile Support
  3. GNOME's GTK+ Is Still Striving For A Scene Graph, Canvas API
  4. Unreal Tournament Looks Great For Team Deathmatch
  5. LibreOffice 4.3 Released With Many Exciting Changes
  6. GNOME/GTK On Wayland Gains Focus At GUADEC
  7. GNOME Stakeholders Take Issue With Groupon Over their Gnome
  8. GStreamer VA-API Plug-In Update Adds New Features
  9. Qt 5.4 Going Into Feature Freeze Next Week With Exciting Changes
  10. OpenSUSE Factory Turns Into Rolling Release Distribution
Latest Forum Discussions
  1. Grand Theft Auto Running On Direct3D Natively On Linux Shows Gallium3D Potential
  2. Open-source drivers on ATI R7 260X
  3. AMD Athlon 5350 APU On Linux
  4. Debian + radeonsi
  5. Linus Torvalds On GCC 4.9: Pure & Utter Crap
  6. Updated and Optimized Ubuntu Free Graphics Drivers
  7. List of Linux friendly Kickstarter projects
  8. Porting Mesa to the Playstation 2