A Preliminary Study of the Impact of Software Engineering on - - PowerPoint PPT Presentation

a preliminary study of the impact of software engineering
SMART_READER_LITE
LIVE PREVIEW

A Preliminary Study of the Impact of Software Engineering on - - PowerPoint PPT Presentation

A Preliminary Study of the Impact of Software Engineering on GreenIT A URLIEN 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


slide-1
SLIDE 1

A Preliminary Study of the Impact of Software Engineering

  • n GreenIT

PROJECT TEAM ADAM

Inria Lille – Nord Europe Université Lille 1 – LIFL – CNRS

AURÉLIEN BOURDON ADEL NOUREDDINE ROMAIN ROUVOY LIONEL SEINTURIER prenom.nom@inria.fr

slide-2
SLIDE 2

Context

Information Technologies

French ministries. IT & Sustainable Development report

French electricity consumption 13 %

A Preliminary Study of the Impact of Software Engineering on GreenIT

2

slide-3
SLIDE 3

Context

Information Technologies

French ministries. IT & Sustainable Development report

French electricity consumption 13 %

?

A Preliminary Study of the Impact of Software Engineering on GreenIT

3

slide-4
SLIDE 4

Context

Information Technologies

French ministries. IT & Sustainable Development report

French electricity consumption 13 %

?

Research Opportunities

A Preliminary Study of the Impact of Software Engineering on GreenIT

4

slide-5
SLIDE 5

Context

Information Technologies

French ministries. IT & Sustainable Development report

French electricity consumption 13 %

?

Research Opportunities

A Preliminary Study of the Impact of Software Engineering on GreenIT

5

slide-6
SLIDE 6

Context

Information Technologies

French ministries. IT & Sustainable Development report

French electricity consumption 13 %

?

Research Opportunities

A Preliminary Study of the Impact of Software Engineering on GreenIT

6

slide-7
SLIDE 7

Energy Monitoring Framework

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-8
SLIDE 8

Can we monitor the consumption

  • f an application?

Accuracy

8

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-9
SLIDE 9

Can we monitor the consumption

  • f an application?

0.5% error margin

Accuracy

9

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-10
SLIDE 10

Overhead

What is the monitoring

  • verhead?

10

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-11
SLIDE 11

Overhead

What is the monitoring

  • verhead?

0.2W overhead

11

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-12
SLIDE 12

Breakdown

How does it differ from a powermeter?

12

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-13
SLIDE 13

Breakdown

How does it differ from a powermeter?

Disk CPU

Disk stress

13

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-14
SLIDE 14

Summary

  • Accurate process-level estimation
  • Support for CPU, Disk, Ethernet, RAM
  • No hardware investment required
  • 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

slide-15
SLIDE 15

Empirical Case Studies

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-16
SLIDE 16

Greens 2012

What is the cost

  • f programming

languages?

  • A. Noureddine, A. Bourdon, R. Rouvoy, and L. Seinturier. A Preliminary Study of the Impact of Software

Engineering on GreenIT. In 1st International Workshop on Green and Sustainable Software (GREENS'12/ICSE'12)

16

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-17
SLIDE 17

Language Footprint

1 10 100 1000 10000 100000 C C, O2 C, O3 C++ C++, O2 C++, O3 Java Pascal Prolog Ocaml Ocaml opt Python Perl

Tower of Hanoi (recursive, logarithm scale)

17

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-18
SLIDE 18

Language Footprint

1 10 100 1000 10000 100000 C C, O2 C, O3 C++ C++, O2 C++, O3 Java Pascal Prolog Ocaml Ocaml opt Python Perl

Tower of Hanoi (recursive, logarithm scale)

18

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-19
SLIDE 19

Language Footprint

1 10 100 1000 10000 100000 C C, O2 C, O3 C++ C++, O2 C++, O3 Java Pascal Prolog Ocaml Ocaml opt Python Perl

Tower of Hanoi (recursive, logarithm scale)

19

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-20
SLIDE 20

ASE 2012

Where is spent the energy inside my app?

  • A. Noureddine, A. Bourdon, R. Rouvoy, and L. Seinturier. Runtime Monitoring of Software Energy
  • Hotspots. In 27th International Conference on Automated Software Engineering (ASE'12)

20

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-21
SLIDE 21

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

slide-22
SLIDE 22

Class-level consumption

io/AbstractBuffer 39% io/ByteArrayBuff er 24% server/Request 4% util/Utf8Appenda ble 4% io/View 3% server/HttpConn ection 2% io/BufferCache 2% Others 22%

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-23
SLIDE 23

Class-level consumption

io/AbstractBuffer 39% io/ByteArrayBuff er 24% server/Request 4% util/Utf8Appenda ble 4% io/View 3% server/HttpConn ection 2% io/BufferCache 2% Others 22%

7 classes out of 146 ~80% energy

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-24
SLIDE 24

0% 2% 4% 6% 8% 10% 12% 14% 16% 10000 20000 30000 40000 50000 60000 CPU Energy % Number of Invocations

Top10 consuming methods

24

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-25
SLIDE 25

0% 2% 4% 6% 8% 10% 12% 14% 16% 10000 20000 30000 40000 50000 60000 CPU Energy % Number of Invocations

Top10 > 50% (of 726, 1.3%)

Top10 consuming methods

25

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-26
SLIDE 26

1 2 3 4 5 6

Method consumption

26

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-27
SLIDE 27

Related Work

27

A Preliminary Study of the Impact of Software Engineering on GreenIT

Measure Energy Granularity OS or Software Non-Intrusive Software meter Power meters ✔ Hardware ✔ ✖ PowerScope ✔ Process OS ✖ pTop ✔ Process OS for network ✔ Energy Checker ✔ Code Software ✖ OS utilities ✖ Process ✔ ✔ Software profilers ✖ Code Depends on profiler ✔ E-Surgeon ✔ Code ✔ ✔

slide-28
SLIDE 28

QUESTIONS

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-29
SLIDE 29

Life Cycle Assessment (LCA) for a common PC

  • 30
  • 15

15 30 45 Manufacturing Distribution Use End of Life Eco-Indicator’99 points 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

slide-30
SLIDE 30

Event Bus API Listeners CPU Graphic Memory File All Console Network Console Sensors Memory CPU Network Formulae Memory CPU Network Publish Subscribe

30

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-31
SLIDE 31

Scalability

31

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-32
SLIDE 32

Scalability

Monitoring 1 application  Monitoring 170 applications

32

A Preliminary Study of the Impact of Software Engineering on GreenIT

slide-33
SLIDE 33

State of the Art

JouleMeter EnergyChecker PowerTop pTop Development is over Not easy to support platform interoperability No reusable libraries Manual calibration Requires external device

33

A Preliminary Study of the Impact of Software Engineering on GreenIT