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. Scythe Mugen MAX
  2. Intel Core i7 5960X Haswell-E On Linux
  3. Intel 80GB 530 Series M.2 SSD On Linux
  4. With A New Motherboard, The Core i7 5960X Haswell-E Lights Up
Latest Linux Articles
  1. Fedora 21 Alpha First Impressions: It's Great
  2. Counter-Strike: Global Offensive NVIDIA/AMD Benchmarks On Linux
  3. A Tour Of The New Phoronix Office
  4. 7-Way Linux Desktop Gaming Comparison On Ubuntu 14.10
Latest Linux News
  1. Oracle & Canonical Collaborate Over Their Competing Linux OSes On OpenStack
  2. Google Brings Coreboot To 64-bit ARM
  3. Debian Switches Back To GNOME As Its Default Desktop
  4. Fedora 21 Alpha Finally Sees The Light Of Day
  5. Qt 5.4 Will Support Applications Under A Wayland Compositor
  6. Valve Rolls Out A New Steam Storefront
  7. The Features Coming For Fedora 21
  8. Counter-Strike: Global Offensive Starts Rolling Out To Linux Users
  9. The Gestures Support Of GNOME 3.14
  10. Linux 3.17 Has Basic Support For The Xbox One Controller
Latest Forum Discussions
  1. Updated and Optimized Ubuntu Free Graphics Drivers
  2. Uselessd: A Stripped Down Version Of Systemd
  3. Wasteland 2 Officially Launched Today, Including For Linux Gamers
  4. X.Org Women Outreach Program Only Turns Up Two Applicants So Far
  5. NVIDIA GTX 770/780 -works ?
  6. State of Nouveau now and in the near future?
  7. New stress testing utility for GPU's
  8. How to get Catalyst 14.4 working on Ubuntu 14.04