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. Intel Xeon E5-1680 v3 & E5-2687W v3 Compared To The Core i7 5960X On Linux
  2. Intel 120GB 530 Series SSD Linux Performance
  3. Btrfs/EXT4/XFS/F2FS RAID 0/1/5/6/10 Linux Benchmarks On Four SSDs
  4. AMD's Windows Catalyst Driver Remains Largely Faster Than Linux Drivers
Latest Linux Articles
  1. NVIDIA vs. Nouveau Drivers With Linux 3.18 + Mesa 10.4-devel
  2. Is The Open-Source NVIDIA Driver Fast Enough For Steam On Linux Gaming?
  3. Linux 3.18 File-System Performance Minimally Changed But Possible Regressions
  4. AMD Radeon Gallium3D Is Catching Up & Sometimes Beating Catalyst On Linux
Latest Linux News
  1. HandBrake 0.10 Brings H.265 & VP8 Encoders
  2. Gngr: A New Web Browser Focused On Privacy
  3. Linux 3.18 Kernel: Not Much Change With Intel Haswell Performance
  4. More File-System Tests Of The Linux 3.18 Kernel
  5. Using NVIDIA's NVENC On Linux With FFmpeg
  6. There's Talk Again About An "Open To The Core" Ubuntu Laptop
  7. PowerVR SGX Driver Code Gets Leaked
  8. V2 Of KDBUS Published For Linux Kernel Review
  9. VirtualBox 4.3.20 Arrives, Still No Sign Of VirtualBox 4.4
  10. Scientific Linux 6.6 vs. Scientific Linux 7.0 Benchmarks
Latest Forum Discussions
  1. PulseAudio 6.0 Is Coming & Other Linux Audio Plans For The Future
  2. Debian Developer Resigns From The Systemd Maintainership Team
  3. Roadmap to Catalyst 14.10 ?
  4. Updated and Optimized Ubuntu Free Graphics Drivers
  5. Cant get working Kaveri APU - A10-7850k
  6. Script for Fan Speed Control
  7. Debian Init System Coupling Vote Results
  8. The Slides Announcing The New "AMDGPU" Kernel Driver