MeasuringPowerConsumption
Size: 1108
Comment:
|
Size: 1931
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 13: | Line 13: |
The same tools used to identify power issues for other architectures (like powertop) work just fine: |
|
Line 14: | Line 16: |
Line 15: | Line 18: |
== Statistics == Colin King maintains several tools to gather statistics on power consumption: * Powerstat: measures the power consumption of a laptop using the ACPI battery information. The output is like vmstat but also shows power consumption statistics. At the end of a run, powerstat will calculate the average, standard deviation and min/max of the gathered data. $ sudo apt-get install powerstat $ sudo powerstat * [[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 |
Installing Ubuntu on the Nexus7 |
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:
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:
- 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:
- Powerstat: measures the power consumption of a laptop using the ACPI battery information. The output is like vmstat but also shows power consumption statistics. At the end of a run, powerstat will calculate the average, standard deviation and min/max of the gathered data. $ sudo apt-get install powerstat $ sudo powerstat
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)