SlideShare a Scribd company logo
Power and Energy
Code Profiling in Pharo
Alexandre Bergel
University of Chile
http://bergel.eu
Power and Energy Code Profiling in Pharo
Power and Energy Code Profiling in Pharo
Joule (J) is a unit of energy
Lifting 100g by one meter = 1 J1 meter
Watt (W) is a unit of power
defined as Joule / second
1 W = 1 J / s
Power and Energy Code Profiling in Pharo
PkgPower for the whole processor (5 <= PkgPower <= 40W)
IAPower for the cores (2 <= IAPower <= 35 W)
PkgPower for the whole processor (5 <= PkgPower <= 40W)
IAPower for the cores (2 <= IAPower <= 35 W)
PkgPower for the whole processor (5 <= PkgPower <= 40W)
IAPower for the cores (2 <= IAPower <= 35 W)
PkgTemp graphic & cores (between 40 and 60 C)
PkgPower for the whole processor (5 <= PkgPower <= 40W)
IAPower for the cores (2 <= IAPower <= 35 W)
PkgTemp graphic & cores (between 40 and 60 C)
IAFreq CPU frequency (1.7 Ghz <= 3.2Ghz I5 <= 3.6)
Software & Hardware
Pharo 5 image & Cog
OS X El Capitan, version 10.11.4
Studied Intel Core i5 on an iMac (3.2Ghz)
Experiments have been made at 22 C
Network and screen disabled
Virtual Machine Launch & Being Idle
Operating system
PkgPower = 6W

IAPower = 2.5W

PkgTemp = 42C

IAFreq = 1.78Ghz

VM Launch
Opening a 47Mb image consumes 3mWh

Pharo open and doing nothing
PkgPower = 6W (despite the few % of CPU consumption)
5/13/16, 5:22 PM
0.620.460.310.150.0
28.0
24.0
20.0
16.0
12.0
8.0
4.0
0.0
PkgPower(Watt)
Elapsed Time (sec)
0.620.460.310.150.0
3.5
3.0
2.5
2.0
1.5
1.0
0.5
0.0
CuPakPower(mWh)
Elapsed Time (sec)
5 Micro-benchmarks
4 Macro-benchmarks
Benchmark execution
Wait 10 seconds between each run, to make sure
that the CPU cools down
96420
30
22
15
7
0
PkgPower (W)
Time (s)
GC4
Micro-Benchmark execution
96420
30
22
15
7
0
PkgPower (W)
Time (s)
GC4
Micro-Benchmark execution
Creation, filling, destruction of
10 kb memory blocks
Macro-Benchmark execution
1410730
30
22
15
7
0
PkgPower (W)
Time (s)
FB
Macro-Benchmark execution
1410730
30
22
15
7
0
PkgPower (W)
Time (s)
FB
Computing a force based layout on a graph
made of 5,000 nodes and 5,000 edges
PkgPower x PkgTemp
Plot BenchmarkFB Benchmark
23.619.014.39.75.0
56
52
48
44
40
PkgTemp
PkgPower
23.021.520.018.517.0
65
60
55
PkgTemp
PkgPower
(plotting 30K values)
(force based layout on
5K nodes & 5K edges)
Implementation
EnergyProfiler new profile: [ …]
EnergyProfiler new
profile: [ (Delay forSeconds: 2) wait ]
Can export to CSV, Roassal
Low level measurement using Intel Power Gadget
& OSSubProcess
Future work
New, challenging, exciting area
Many possible future works
replication across processors

page swapping

processor and VM intern caches

More Related Content

PPTX
ニッケル水素電池のスパイスモデル
PDF
ML_Cohesiv_energies
DOCX
Questions for test of engineering mechanics
TXT
Error
PPTX
Electrical power system
PPTX
Image Segmentation Using Hardware Forest Classifiers
PDF
Pragmas: Literal Messages as Powerful Method Annotations
ニッケル水素電池のスパイスモデル
ML_Cohesiv_energies
Questions for test of engineering mechanics
Error
Electrical power system
Image Segmentation Using Hardware Forest Classifiers
Pragmas: Literal Messages as Powerful Method Annotations

Similar to Power and Energy Code Profiling in Pharo (20)

PPTX
Computer Architecture and Organization
PPTX
Energy Efficiency Across 
Programming Languages
PDF
Low power vlsi design ppt
PPTX
Intern presentation nicolechiou_2018_vareximaging_sanitized
PPT
atom-imp-concept of hardware tools in ECE.ppt
PDF
[IGC2018] AMD Don Woligroski - WHY Ryzen
PPTX
How to achieve 95%+ Accurate power measurement during architecture exploration?
PPT
OK Labs - Virtualization as the Nexus of Multicore Power Management
PPT
Os Vandeven
DOCX
6th gen processor
PDF
Accurately Simulating Energy Consumption of I/O-intensive Scientific Workflows
PDF
CPU Subsystem Total Power Consumption: Understanding the Factors and Selectin...
PDF
Aw26312325
PPTX
Improving Xen idle power efficiency
PPTX
Power aware operating system
PDF
ARM® Cortex™ M Energy Optimization - Using Instruction Cache
PPT
Power 7 Overview
PDF
How Funcom Increased Play Time in Lego Minifigures by 40%
PDF
Save on power and license costs and reduce your carbon footprint by consolida...
PPT
Po3660 Krogstad Vm World 2008
Computer Architecture and Organization
Energy Efficiency Across 
Programming Languages
Low power vlsi design ppt
Intern presentation nicolechiou_2018_vareximaging_sanitized
atom-imp-concept of hardware tools in ECE.ppt
[IGC2018] AMD Don Woligroski - WHY Ryzen
How to achieve 95%+ Accurate power measurement during architecture exploration?
OK Labs - Virtualization as the Nexus of Multicore Power Management
Os Vandeven
6th gen processor
Accurately Simulating Energy Consumption of I/O-intensive Scientific Workflows
CPU Subsystem Total Power Consumption: Understanding the Factors and Selectin...
Aw26312325
Improving Xen idle power efficiency
Power aware operating system
ARM® Cortex™ M Energy Optimization - Using Instruction Cache
Power 7 Overview
How Funcom Increased Play Time in Lego Minifigures by 40%
Save on power and license costs and reduce your carbon footprint by consolida...
Po3660 Krogstad Vm World 2008
Ad

More from ESUG (20)

PDF
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
PDF
Micromaid: A simple Mermaid-like chart generator for Pharo
PDF
Directing Generative AI for Pharo Documentation
PDF
Even Lighter Than Lightweiht: Augmenting Type Inference with Primitive Heuris...
PDF
Composing and Performing Electronic Music on-the-Fly with Pharo and Coypu
PDF
Gamifying Agent-Based Models in Cormas: Towards the Playable Architecture for...
PDF
Analysing Python Machine Learning Notebooks with Moose
PDF
FASTTypeScript metamodel generation using FAST traits and TreeSitter project
PDF
Migrating Katalon Studio Tests to Playwright with Model Driven Engineering
PDF
Package-Aware Approach for Repository-Level Code Completion in Pharo
PDF
Evaluating Benchmark Quality: a Mutation-Testing- Based Methodology
PDF
An Analysis of Inline Method Refactoring
PDF
Identification of unnecessary object allocations using static escape analysis
PDF
Control flow-sensitive optimizations In the Druid Meta-Compiler
PDF
Clean Blocks (IWST 2025, Gdansk, Poland)
PDF
Encoding for Objects Matters (IWST 2025)
PDF
Challenges of Transpiling Smalltalk to JavaScript
PDF
Immersive experiences: what Pharo users do!
PDF
ChatPharo: an Open Architecture for Understanding How to Talk Live to LLMs
PDF
Cavrois - an Organic Window Management (ESUG 2025)
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
Micromaid: A simple Mermaid-like chart generator for Pharo
Directing Generative AI for Pharo Documentation
Even Lighter Than Lightweiht: Augmenting Type Inference with Primitive Heuris...
Composing and Performing Electronic Music on-the-Fly with Pharo and Coypu
Gamifying Agent-Based Models in Cormas: Towards the Playable Architecture for...
Analysing Python Machine Learning Notebooks with Moose
FASTTypeScript metamodel generation using FAST traits and TreeSitter project
Migrating Katalon Studio Tests to Playwright with Model Driven Engineering
Package-Aware Approach for Repository-Level Code Completion in Pharo
Evaluating Benchmark Quality: a Mutation-Testing- Based Methodology
An Analysis of Inline Method Refactoring
Identification of unnecessary object allocations using static escape analysis
Control flow-sensitive optimizations In the Druid Meta-Compiler
Clean Blocks (IWST 2025, Gdansk, Poland)
Encoding for Objects Matters (IWST 2025)
Challenges of Transpiling Smalltalk to JavaScript
Immersive experiences: what Pharo users do!
ChatPharo: an Open Architecture for Understanding How to Talk Live to LLMs
Cavrois - an Organic Window Management (ESUG 2025)
Ad

Recently uploaded (20)

PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
Transform Your Business with a Software ERP System
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
medical staffing services at VALiNTRY
PDF
top salesforce developer skills in 2025.pdf
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
Digital Systems & Binary Numbers (comprehensive )
PDF
Nekopoi APK 2025 free lastest update
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Transform Your Business with a Software ERP System
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Softaken Excel to vCard Converter Software.pdf
medical staffing services at VALiNTRY
top salesforce developer skills in 2025.pdf
PTS Company Brochure 2025 (1).pdf.......
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
wealthsignaloriginal-com-DS-text-... (1).pdf
2025 Textile ERP Trends: SAP, Odoo & Oracle
Which alternative to Crystal Reports is best for small or large businesses.pdf
CHAPTER 2 - PM Management and IT Context
Wondershare Filmora 15 Crack With Activation Key [2025
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Computer Software and OS of computer science of grade 11.pptx
Digital Systems & Binary Numbers (comprehensive )
Nekopoi APK 2025 free lastest update
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises

Power and Energy Code Profiling in Pharo