g Green Mining and the Perils of Mining Energy Profjles Abram - - PowerPoint PPT Presentation
g Green Mining and the Perils of Mining Energy Profjles Abram - - PowerPoint PPT Presentation
g Green Mining and the Perils of Mining Energy Profjles Abram Hindle (hindle1@ualberta.ca) Department of Computing Science University of Alberta http://softwareprocess.es/ with Karan Aggarawal*, Candy Pang*, Chenlei Zhang*, Kent Rasmussen*,
Abram Hindle (hindle1@ualberta.ca) Department of Computing Science University of Alberta http://softwareprocess.es/ with Karan Aggarawal*, Candy Pang*, Chenlei Zhang*, Kent Rasmussen*, Joshua Campbell*, Alex Wilson*, Jed Barlow*, Stephen Romansky*, w/ Eleni Stroulia, Bram Adams, Ahmed Hassan, Daniel German
Green Mining and the Perils of Mining Energy Profjles
energy
Programmers are responsible for Software Power Use!
In general, programmers lack knowledge about software energy consumption, but they are more knowledgeable about software energy consumption on mobile devices than on desktop computers.
[Pang et al.] http://webdocs.cs.ualberta.ca/~hindle1/2014/green-programmers/
MOV [bufgerloc], EAX
Energy Profjle of Single Versions
Android Firefox Energy Profile
Android Fennec Revision Mean Watts 518a79e90444 3f0b94325b80 7d4268f8884c bfd85c9652fa fef5f202b2dc 0.6 0.8 1.0 1.2 1.4
Mean Watts Software Revision 0.6 0.8 1.0 1.2 1.4 518a79e90444 7d4268f8884c fef5f202b2dc
Android Calculator Energy Profile
Energy Profjle: Same test, Same Device
1 5 1 6 1 7 B
J
- u
l e s
a p p _
1 _ S u i t e 1 m s g J
- u
l e s
Energy Profjle: Difgerent device, difgerent response
1 5 1 7 5 A B C D
A p p V e r s i
- n
s
J
- u
l e s
1 _ S u i t e 1 m s g J
- u
l e s
Error rors Tha That s silver er ba band is t nd is the he manuf ufacturing cturing err error t r toler
- leranc
nce
Error rors Mult ultiple i le ins nstan ances ces of t f the e same m ame model o
- del of ph
f phone ne wi will pro ll produce di duce difger fgerent m t meas easurem urements ts du due t e to e
- erro
rror t r tolera
- lerances
nces i in Man anufa ufactu cturi ring ng! This i impli mplies es a n a nee eed for for nor normali malizat ation n and rep nd repeated t ed tes ests ts!
Phone Ras aspberr rry P y Pi Power Sup r Supply Ardui uino USB H USB Hub/P /PS
Elaborate Job Queue
[MSR 2014]
How does it work?
Fake the Battery
Control the USB Connection
A r d u i n
- T
I P 1 2 7
USB Phone USB Computer D i g i t a l 4 G N D1 k
Row 1 Row 2 Row 3 Row 4 2 4 6 8 10 12 Column 1 Column 2 Column 3
Timeseries graph and Component Breakdown
Aggregate Plotting How does my energy profjle change
- ver time?
Aggregate by Component and Version! How does power use difger across scenarios and versions?
Green Miner
This colour is what happens When you don't specify UI Look and feel requirements. [MSR 2014]
Per Component Breakdown
Sometimes we need to debug the tests with some context
1
Green Miner is an enabler
- Continuous Integration and Testing for Energy
Regressions
- Repeatable, logged, measureable framework.
- Enables asking of questions and repeating
experiments.
- Some examples to follow
Does Adblocking Save Power?
[GREENS 2014] MO MORE Adblock Saves power Versus Nothing
- r very large
/etc/hosts files
Does Adblocking Save Power?
[GREENS 2014] MO MORE Adblock Saves power Versus Nothing
- r very large
/etc/hosts files
Adblocking saved 0.01 to 0.06W per test (~5J every 100 seconds)
Which UI Theme would use More Power?
White on Black UI Theme Black on White UI Theme
What Causes Software Power Use?
[Aggarwal et al.]
What causes Software Power Use?
[Aggarwal et al.]
Syscalls matter but Syscalls can always Vary per run of the Same test!
What causes Software Power Use?
[Aggarwal et al.]
Syscalls matter but Syscalls can always Vary per run of the Same test!
If the system call profjle changes signifjcantly from the previous version, it is probable (~50%) that the application’s energy consumption profjle has changed as well.
What causes Software Power Use?
- Rule of thumb model:
If a cumulative count
- f a syscall changes
signfjcantly between versions there's a good chance of a signfjciant change in power use and energy consumption!
[Aggarwal et al.]
Does logging matter?
[Di Nardio et al.]
Bufgering hides, delays and defers The cost of IO
Does logging matter?
. 8 . 9 1 .
M e a n Wa t t s
_ Wa i t f
- r
w a t t l
- g1
_ S u i t e 1 m s g 2 _ S u i t e 1 m s g 3 _ S u i t e 1 m s g 4 _ S u i t e 1 m s g 5 _ S u i t e 1 m s g 6 _ S u i t e _ 1 m s g 7 _ I d l e t i m e
A p p V e r s i
- n
s
[Di Nardio et al.]
Bufgering hides, delays and defers The cost of IO
Methodological Bottleneck Applied Exhaustively to all revisions Revisions are measured multiple times for stability
Android Fennec Revision Mean Watts 518a79e90444 3f0b94325b80 7d4268f8884c bfd85c9652fa fef5f202b2dc 0.6 0.8 1.0 1.2 1.4The Research Hurdle: Measuring every revision takes too long!
Pareto frontier: Most cost effective approximations per time spent
Pareto frontier: Most cost effective approximations per time spent
Mo More r revisions ions t tested Hig igher fj r fjnal ac l accu curacy Le Less r revision ions t tested Lo Lower fj fjnal a al accu curac acy
Pareto frontier: Most cost effective approximations per time spent
Half o lf of t f the he w work rk Sm Small Di ll Difg fgerence i in RMSE n RMSE
Pareto frontier: Most cost effective approximations per time spent
Half o lf of t f the he w work rk Sm Small Di ll Difg fgerence i in RMSE n RMSE
Pareto frontier: Most cost effective approximations per time spent
A t thir ird o
- f t
f the he w work
- rk
Sm Small Di ll Difg fgerence i in RMSE n RMSE
Pareto frontier: Most cost effective approximations per time spent
1/3 /3 t to 1 1/2 /20th of
- f t
the W Work rk Larger Di r Difg fgerence in in RMSE RMSE
Pareto frontier: Most cost effective approximations per time spent
Tim ime & Accu curac acy
Green Mining Needs You Got a question about power? Looking for collaborators. Green Miner is usable remotely.
Conclusions
1 measurement is not enough Energy profjles change Measurement Granularity Software evolves, and forks,
- - it's not always now.
Green Miner is available For collaboration!
http://greenmining.softwareprocess.es/