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

A Plethora Of Linux Power Tests Are On The Way

Hardware

Published on 18 June 2011 09:58 PM EDT
Written by Michael Larabel in Hardware
12 Comments

Nailing down the Linux kernel power regressions (see Linux Has Major Power Regression and Another Major Linux Power Regression Spotted) has made a big step forward this weekend. Not only to fix up these major kernel power regressions that are hitting many mobile Linux users, but to look further into the state of Linux power management is now possible and to closely analyze other areas of the Linux stack to find other areas for improvement.

As I've said since the beginning, what's taken so long -- for me at least -- in finding these regressions is that some manual intervention is required (switching the battery / AC power state by pulling the plug) and that testing was limited to mobile systems for easy monitoring of the power consumption. For several weeks, I've been looking for a USB-based power meter or UPS power supply that could monitor the AC power consumption connected to a desktop power supply. Ideally, I've been looking for such a solution that costs less than $100 USD.

This mission has now been accomplished with coming across the Watts Up Power Meter Pro, per a reader recommendation. The "Watts up? PRO" has a USB interface, provides an integrated LCD for also monitoring the power consumption and other data that can be toggled via two buttons, and accepts any US power connection. This power meter also supports logging the power data to the device itself and various other options from their software. The company only makes Windows software, but from their support page they reference a community-created open-source utility. For a little more than 1,000 lines of C code is this open-source utility that works under Linux with the "Watts Up" brand power adapters. It supports dumping various power metrics over USB, including the real-time Wattage.

The cost of the Watts Up Pro is $130 USD from the manufacturer web-page but can be found for as little as $110 from other Internet web-stores. I decided to buy one of these units after seeing the features, open-source Linux support (albeit spawned by the community), and the acceptable price.

The Watts Up Pro arrived today and soon as connecting it to Linux and compiling the small C program, the device was immediately working under Linux. Perfect. A few minutes later, the Phodevi power sensor module for the Phoronix Test Suite was extended to detect this "wattsup" Linux program and to automatically read the real-time Wattage information from it when requested. This power meter is working great and it's now supported under the Phoronix Test Suite in the latest Git code. The official support will land in Phoronix Test Suite 3.2.1 or 3.4.0. Here's an example on OpenBenchmarking.org.

A Plethora Of Linux Power Tests Are On The Way


With this being supported by the Phoronix Test Suite's Phodevi (Phoronix Device Interface) library, it can be used in the same way as the Linux battery monitoring support and can be tapped in the same way by all areas of the Phoronix Test Suite in a uniform manner. This means that the Linux kernel power regressions can be fully automated (assuming the powerful workstations exhibit this regressions) and can use this AC power meter to look at other interesting areas such as comparing the power consumption when using open vs. closed-source graphics drivers with desktop GPUs, how different operating systems compare power-wise, etc.

So far the Watts Up Pro is working great under Linux with the Phoronix Test Suite. My only complaint or feature request would just revolve around their Linux support as ideally I'd like to see an upstream Linux kernel module for the Watts Up devices that would expose the various power attributes via sysfs nodes. That way it'd be an out-of-the-box experience and not have to worry about fetching/building this small power utility. It would also be easier for the Phoronix Test Suite and other scripts to then just check these sysfs entries, similar to how many notebook batteries have their power information exposed. It should be relatively quick and easy to write a kernel driver for these devices by simply porting this simple utility's code, but alas I lack the time to do so myself. Look for interesting Linux power test results soon.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. SilverStone Precision PS10
  2. ASRock Z97 Extreme6
  3. Nouveau Re-Clocking Is Way Faster, Shows Much Progress For Open-Source NVIDIA
  4. NVIDIA Wins Over AMD For Linux Gaming Ultra HD 4K Performance
Latest Linux Articles
  1. Preview: Benchmarking CentOS 7.0 & Scientific Linux 7.0
  2. Linux 3.16 File-System Tests On A Hard Drive
  3. Benchmarking Deepin 2014 With DDE 2.0 Using Linux Games
  4. Testing Btrfs On The Linux 3.16 Kernel
Latest Linux News
  1. More "Mega Driver" Work Merged For Mesa
  2. The Beta To The Final Minor Release Of RHEL5 Is Out
  3. The Witcher 2 Works On Beta Improvements
  4. Fedora Gets A Kernel Playground Repository
  5. Firefox Might Finally Be Moving Closer To Better KDE Integration
  6. RealVNC Introduces VNC Wayland Developer Preview
  7. Looking Forward To The Future Of KDE Frameworks 5
  8. Mageia 5 Alpha Updates A Lot Of Software
  9. KDE 4.14 Branched, Mix-Release Planned For December
  10. The Exciting QEMU 2.1 Is Up To Its Release Candidate Phase
Latest Forum Discussions
  1. Using Udev Without Systemd Is Going To Become Harder
  2. Updated and Optimized Ubuntu Free Graphics Drivers
  3. Some shady script in Phoronix opening shady ad in new tab
  4. Advertisements On Phoronix
  5. Glamor now enabled in Debian radeonsi
  6. Qualcomm DMCA Notice Takes Down 100+ Git Repositories
  7. Lennart: The State & Future Of Systemd
  8. Maker3D - create your 3D RPG