g
play

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*,


  1. g

  2. 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*, Joshua Campbell*, Alex Wilson*, Jed Barlow*, Stephen Romansky*, w/ Eleni Stroulia, Bram Adams, Ahmed Hassan, Daniel German

  3. energy

  4. Programmers are responsible for Software Power Use!

  5. 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. http://webdocs.cs.ualberta.ca/~hindle1/2014/green-programmers/ [Pang et al.]

  6. MOV [bufgerloc], EAX

  7. Energy Profjle of Single Versions

  8. Android Firefox Energy Profile 1.4 1.4 1.2 1.2 Mean Watts Mean Watts 1.0 1.0 0.8 0.8 0.6 0.6 518a79e90444 3f0b94325b80 7d4268f8884c bfd85c9652fa fef5f202b2dc 7d4268f8884c fef5f202b2dc 518a79e90444 Android Fennec Revision Software Revision

  9. Android Calculator Energy Profile

  10. Energy Profjle: Same test, Same Device a p p _ 1 _ S u i t e 1 0 0 0 m s g J o u l e s 1 7 0   s e l u o J 1 6 0  1 5 0 B

  11. Energy Profjle: Difgerent device, difgerent response  1 _ S u i t e 1 0 0 0 m s g J o u l e s   1 7 5 s e l u o J      1 5 0 A B C D A p p V e r s i o n s

  12. Error rors Tha That s silver er ba band is t nd is the he manuf ufacturing cturing err error t r toler oleranc nce

  13. Error rors Mult ultiple i le ins nstan ances ces of t f the e same m ame model o odel 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 o erro rror t r tolera olerances 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!

  14. Power Sup r Supply Ras aspberr rry P y Pi Ardui uino USB H USB Hub/P /PS Phone

  15. Elaborate Job Queue [MSR 2014]

  16. How does it work?

  17. Fake the Battery

  18. Control the USB Connection USB Computer T I P 1 2 7 A r d u i n o 1 k D i g i t a l 4 G N D USB Phone

  19. Timeseries graph and Component Breakdown 12 10 8 Column 1 6 Column 2 Column 3 4 2 0 Row 1 Row 2 Row 3 Row 4

  20. Aggregate Plotting How does my energy profjle change over time?

  21. Aggregate by Component and Version! How does power use difger across scenarios and versions?

  22. Green Miner This colour is what happens When you don't specify UI Look and feel requirements. [MSR 2014]

  23. Per Component Breakdown

  24. Sometimes we need to debug the tests with some context 1

  25. 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

  26. Does Adblocking Save Power? Adblock Saves power Versus Nothing or very large MO MORE /etc/hosts files [GREENS 2014]

  27. Does Adblocking Save Power? Adblock Adblocking saved Saves power Versus 0.01 to 0.06W Nothing per test or very large (~5J every 100 seconds) MO MORE /etc/hosts files [GREENS 2014]

  28. Which UI Theme would use More Power? Black on White White on Black UI Theme UI Theme

  29. What Causes Software Power Use? [Aggarwal et al.]

  30. What causes Software Power Use? Syscalls matter but Syscalls can always Vary per run of the Same test! [Aggarwal et al.]

  31. What causes Software Power Use? If the system call profjle Syscalls matter but changes signifjcantly from the Syscalls can always previous version, it is Vary per run of the Same test! probable (~50%) that the application’s energy consumption profjle has changed as well. [Aggarwal et al.]

  32. What causes Software Power Use? ● Rule of thumb model: If a cumulative count of a syscall changes signfjcantly between versions there's a good chance of a signfjciant change in power use and energy consumption! [Aggarwal et al.]

  33. Does logging matter? Bufgering hides, delays and defers The cost of IO [Di Nardio et al.]

  34. Does logging matter? 1 . 0 Bufgering hides, delays and defers The cost of IO s t t Wa n 0 . 9 a e M 0 . 8  0 _ Wa i t f o r w a t t l o g1 _ S u i t e 1 0 0 0 m s g 2 _ S u i t e 1 0 0 m s g 3 _ S u i t e 1 0 m s g 4 _ S u i t e 1 m s g 5 _ S u i t e 0 1 m s g 6 _ S u i t e _ 0 0 1 m s g 7 _ I d l e t i m e A p p V e r s i o n s [Di Nardio et al.]

  35. Methodological Bottleneck 1.4 Applied 1.2 Mean Watts 1.0 Exhaustively 0.8 0.6 518a79e90444 3f0b94325b80 7d4268f8884c bfd85c9652fa fef5f202b2dc Android Fennec Revision to all revisions Revisions are measured multiple times for stability

  36. The Research Hurdle: Measuring every revision takes too long!

  37. Pareto frontier: Most cost effective approximations per time spent

  38. Pareto frontier: Most cost effective approximations per time spent Le Less r revision ions t tested Lower fj Lo fjnal a al accu curac acy Mo More r revisions ions t tested Hig igher fj r fjnal ac l accu curacy

  39. 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

  40. 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

  41. Pareto frontier: Most cost effective approximations per time spent A t thir ird o of t f the he w work ork Sm Small Di ll Difg fgerence i in RMSE n RMSE

  42. Pareto frontier: Most cost effective approximations per time spent 1/3 /3 t to 1 1/2 /20th of of t the W Work rk Larger Di r Difg fgerence in in RMSE RMSE

  43. Pareto frontier: Most cost effective approximations per time spent Tim ime & Accu curac acy

  44. Green Mining Needs You Got a question about power? Looking for collaborators. Green Miner is usable remotely.

  45. Conclusions 1 measurement is not enough Energy profjles change Measurement Granularity Software evolves, and forks, -- it's not always now. http://greenmining.softwareprocess.es/ Green Miner is available For collaboration!

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend