MeasuringPowerConsumption

Differences between revisions 1 and 11 (spanning 10 versions)
Revision 1 as of 2012-10-31 07:28:14
Size: 60
Editor: 91
Comment:
Revision 11 as of 2012-11-11 09:43:14
Size: 1596
Editor: 85
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Placeholder page for notes on measuring power consumption. <<Include(Nexus7/Header)>>

Please help to improve this page if you have more tools or ideas to add.

== Nexus7 Power Measurement ==

Steve Conklin did an initial investigation on the power consumption on the Nexus7 by watching the I2C bus and doing some disassembly of the unit:

 * [[attachment:nexus-power.odp|Initial Nexus7 Power Investigation (ODP)]]
 * git repo for tools mentioned in the above presentation: `git@github.com:sconklin/nexus-tools.git` (https://github.com/sconklin/nexus-tools)

== Identifying Issues ==

The same tools used to identify power issues for other architectures (like powertop) work just fine:
 * [[Kernel/PowerManagement/IdentifyingIssues| Identifying Power Management Issues]]

 * Measuring CPU usage is a good way to detect when your application is drawing too much power, kcachegrind and callgrind (part of Valgrind) are excellent tools.

== Statistics ==

Colin King maintains several tools to gather statistics on power consumption:

 * [[http://smackerelofopinion.blogspot.com.es/2011/12/monitoring-proctimerstats.html|Eventstat]]: calculates the rate of events per second and can dump the data in a .csv

 $ git clone git://kernel.ubuntu.com/cking/eventstat.git
 $ cd eventstat; make
 $ sudo ./eventstat

== Hardware Tools ==
The ARM Energy Probe is a hardware tool that is fairly cheap and can be used to measure power consumption. It uses a GPL software stack and offers command-line and HTML5+websockets interface. Here is an intro video on using the [[https://www.youtube.com/watch?v=aDStdtopy_g|ARM Energy Probe]].

This project is no longer maintained. You might be interested in Ubuntu Touch though.

Please help to improve this page if you have more tools or ideas to add.

Nexus7 Power Measurement

Steve Conklin did an initial investigation on the power consumption on the Nexus7 by watching the I2C bus and doing some disassembly of the unit:

Identifying Issues

The same tools used to identify power issues for other architectures (like powertop) work just fine:

  • Identifying Power Management Issues

  • Measuring CPU usage is a good way to detect when your application is drawing too much power, kcachegrind and callgrind (part of Valgrind) are excellent tools.

Statistics

Colin King maintains several tools to gather statistics on power consumption:

  • Eventstat: calculates the rate of events per second and can dump the data in a .csv $ git clone git://kernel.ubuntu.com/cking/eventstat.git $ cd eventstat; make $ sudo ./eventstat

Hardware Tools

The ARM Energy Probe is a hardware tool that is fairly cheap and can be used to measure power consumption. It uses a GPL software stack and offers command-line and HTML5+websockets interface. Here is an intro video on using the ARM Energy Probe.

Nexus7/MeasuringPowerConsumption (last edited 2012-11-27 05:45:31 by ABTS-MH-dynamic-132)