A Preliminary Study of the Impact of Software Engineering on GreenIT A URÉLIEN B OURDON A DEL N OUREDDINE R OMAIN R OUVOY L IONEL S EINTURIER prenom.nom@inria.fr PROJECT TEAM ADAM Inria Lille – Nord Europe Université Lille 1 – LIFL – CNRS
Information Technologies 13 % French electricity consumption Context French ministries. IT & Sustainable Development report 2 A Preliminary Study of the Impact of Software Engineering on GreenIT
Information Technologies 13 ? % French electricity consumption Context French ministries. IT & Sustainable Development report 3 A Preliminary Study of the Impact of Software Engineering on GreenIT
Information Technologies 13 ? % French electricity consumption Context French ministries. IT & Sustainable Development report Research Opportunities 4 A Preliminary Study of the Impact of Software Engineering on GreenIT
Information Technologies 13 ? % French electricity consumption Context French ministries. IT & Sustainable Development report Research Opportunities 5 A Preliminary Study of the Impact of Software Engineering on GreenIT
Information Technologies 13 ? % French electricity consumption Context French ministries. IT & Sustainable Development report Research Opportunities 6 A Preliminary Study of the Impact of Software Engineering on GreenIT
Energy Monitoring Framework A Preliminary Study of the Impact of Software Engineering on GreenIT
Can we monitor the Accuracy consumption of an application? 8 A Preliminary Study of the Impact of Software Engineering on GreenIT
0.5% error margin Can we monitor the Accuracy consumption of an application? 9 A Preliminary Study of the Impact of Software Engineering on GreenIT
What is the Overhead monitoring overhead? 10 A Preliminary Study of the Impact of Software Engineering on GreenIT
0.2W overhead What is the Overhead monitoring overhead? 11 A Preliminary Study of the Impact of Software Engineering on GreenIT
Breakdown How does it differ from a powermeter? 12 A Preliminary Study of the Impact of Software Engineering on GreenIT
Disk stress Breakdown How does it differ Disk from a powermeter? CPU 13 A Preliminary Study of the Impact of Software Engineering on GreenIT
• Accurate process-level estimation • Support for CPU, Disk, Ethernet, RAM • No hardware investment required Summary • Limited overhead • Large-scale deployment • Microscope «à la carte» • On-demand configuration & adaptation • Published in ICSE/Greens’12 & ASE’12 • Transfert in progress • Freely available as OSS [1] • GreenCodeLab + ADEME [1] http://adam.lille.inria.fr/pmwiki.php/Topics/Green A Preliminary Study of the Impact of Software Engineering on GreenIT
Empirical Case Studies A Preliminary Study of the Impact of Software Engineering on GreenIT
What is the cost Greens 2012 of programming languages? A. Noureddine, A. Bourdon, R. Rouvoy, and L. Seinturier. A Preliminary Study of the Impact of Software Engineering on GreenIT . In 1 st International Workshop on Green and Sustainable Software (GREENS'12/ICSE'12) 16 A Preliminary Study of the Impact of Software Engineering on GreenIT
Tower of Hanoi (recursive, logarithm scale) Language Footprint Perl Python Ocaml opt Ocaml Prolog Pascal Java C++, O3 C++, O2 C++ C, O3 C, O2 C 1 10 100 1000 10000 100000 17 A Preliminary Study of the Impact of Software Engineering on GreenIT
Tower of Hanoi (recursive, logarithm scale) Language Footprint Perl Python Ocaml opt Ocaml Prolog Pascal Java C++, O3 C++, O2 C++ C, O3 C, O2 C 1 10 100 1000 10000 100000 18 A Preliminary Study of the Impact of Software Engineering on GreenIT
Tower of Hanoi (recursive, logarithm scale) Language Footprint Perl Python Ocaml opt Ocaml Prolog Pascal Java C++, O3 C++, O2 C++ C, O3 C, O2 C 1 10 100 1000 10000 100000 19 A Preliminary Study of the Impact of Software Engineering on GreenIT
Where is spent ASE 2012 the energy inside my app? A. Noureddine, A. Bourdon, R. Rouvoy, and L. Seinturier. Runtime Monitoring of Software Energy Hotspots . In 27 th International Conference on Automated Software Engineering (ASE'12) 20 A Preliminary Study of the Impact of Software Engineering on GreenIT
Case study • Complex application: > 88,000 SLOC • Apache JMeter to stress Jetty’s examples • One minute, 20 threads, loop count of 500 • 146 monitored classes & 726 methods 21 A Preliminary Study of the Impact of Software Engineering on GreenIT
Class-level consumption Others io/BufferCache 22% 2% server/HttpConn ection io/AbstractBuffer 2% 39% io/View 3% util/Utf8Appenda ble io/ByteArrayBuff 4% er 24% server/Request 4% A Preliminary Study of the Impact of Software Engineering on GreenIT
7 classes out of 146 Class-level consumption ~80% energy Others io/BufferCache 22% 2% server/HttpConn ection io/AbstractBuffer 2% 39% io/View 3% util/Utf8Appenda ble io/ByteArrayBuff 4% er 24% server/Request 4% A Preliminary Study of the Impact of Software Engineering on GreenIT
Top10 consuming methods CPU Energy % Number of Invocations 60000 16% 14% 50000 12% 40000 10% 30000 8% 6% 20000 4% 10000 2% 0 0% 24 A Preliminary Study of the Impact of Software Engineering on GreenIT
Top10 consuming methods CPU Energy % Number of Invocations 60000 16% 14% 50000 12% 40000 10% 30000 8% 6% 20000 4% 10000 2% 0 0% Top10 > 50% (of 726, 1.3%) 25 A Preliminary Study of the Impact of Software Engineering on GreenIT
6 Method consumption 5 4 3 2 1 0 26 A Preliminary Study of the Impact of Software Engineering on GreenIT
Measure Granularity OS or Software Software Energy Non-Intrusive meter Related Work ✔ ✔ ✖ Power meters Hardware ✔ ✖ PowerScope Process OS ✔ ✔ pTop Process OS for network ✔ ✖ Energy Code Software Checker ✖ ✔ ✔ OS utilities Process ✖ ✔ Software Code Depends on profilers profiler E-Surgeon ✔ Code ✔ ✔ 27 A Preliminary Study of the Impact of Software Engineering on GreenIT
QUESTIONS A Preliminary Study of the Impact of Software Engineering on GreenIT
L ife C ycle A ssessment ( LCA ) for a common PC 45 Eco- Indicator’99 points 30 15 0 -15 -30 Manufacturing Distribution Use End of Life Human Health Ecosystem Quality Resources Duan & al. Life cycle assessment study of a Chinese desktop personal computer 29 A Preliminary Study of the Impact of Software Engineering on GreenIT
All Console CPU Memory Network Graphic File Console Listeners Event Bus API Publish Subscribe CPU CPU Memory Memory Network Network Sensors Formulae 30 A Preliminary Study of the Impact of Software Engineering on GreenIT
Scalability 31 A Preliminary Study of the Impact of Software Engineering on GreenIT
Scalability Monitoring 1 application Monitoring 170 applications 32 A Preliminary Study of the Impact of Software Engineering on GreenIT
PowerTop No reusable libraries State of the Art Not easy to support platform JouleMeter interoperability pTop Development is over Manual calibration EnergyChecker Requires external device 33 A Preliminary Study of the Impact of Software Engineering on GreenIT
Recommend
More recommend