Professional Documents
Culture Documents
Green-CM: Energy-Efficient Contention Management For Transactional Memory
Green-CM: Energy-Efficient Contention Management For Transactional Memory
– Transactional memory
• Atomics blocks
• Transparent from programmer
atomic{
if(bal>amount)
withdraw(amount);
}
ICPP 2015 - Green-CM 3
Introduction
• Energy efficiency
– First order design choice
– Battery based devices
– Data centers
• Goal
– Energy efficient transactional memory in
terms of both energy and performance
Throughput*
* Controller*
Energy*
Tuning*of* Tuning*of*
Β* α,*Τ*
*
backEoff* End**
Asymmetric* Hybrid*
Tx*abort* dura.on* backEoff*
Conten.on Wait**
(no.*of*retries,*
Implementa.on* Restart*
core*on*which* Manager*
Tx*
tx*is*execu.ng)*
Throughput*
* Controller*
Energy*
Tuning*of* Tuning*of*
Β* α,*Τ*
*
backEoff* End**
Asymmetric* Hybrid*
Tx*abort* dura.on* backEoff*
Conten.on Wait**
(no.*of*retries,*
Implementa.on* Restart*
core*on*which* Manager*
Tx*
tx*is*execu.ng)*
4.5
4
3.5
3
2.5
2
1.5
1
100 1000 10000 100000 1x106 1x107
Threshold
�
Throughput*
* Controller*
Energy*
Tuning*of* Tuning*of*
Β* α,*Τ*
*
backEoff* End**
Asymmetric* Hybrid*
Tx*abort* dura.on* backEoff*
Conten.on Wait**
(no.*of*retries,*
Implementa.on* Restart*
core*on*which* Manager*
Tx*
tx*is*execu.ng)*
1.4
1.2
1
0.8
0.6
0.4
0.2
0
2 4 8 16
No. of Boosted Threads
Throughput*
* Controller*
Energy*
Tuning*of* Tuning*of*
Β* α,*Τ*
*
backEoff* End**
Asymmetric* Hybrid*
Tx*abort* dura.on* backEoff*
Conten.on Wait**
(no.*of*retries,*
Implementa.on* Restart*
core*on*which* Manager*
Tx*
tx*is*execu.ng)*
2 stab
stab jmp 1
1.5 stab jmp 10
1
0.5
0
In
Km
ST
Av
tru
em
e
M
ea
ra
de
7
ca
ns
ge
r
ch
de
Benchmark
ICPP 2015 - Green-CM 20
2.5
Controller
Threshold Tuning Strategies
no stab
0.5
1.2
1 0
0.8
In
Km
ST
Av
tru
em
er
M
0.6
ea
de
ag
7
ca
ns
0.4
r
e
ch
ed
0.2
0 Benchmark
In
Km
ST
Av
tru
em
e
M
ea
ra
d
7
ca
er
ge
s
ch
ed
Benchmark
ICPP 2015 - Green-CM 21
Controller
• Merging the learners
independent stab jmp 1 stab jmp 1 – stab bidim stab jmp 1
stab – stab stab jmp 10 – stab
independent stab jmp 1 stab jmp 1 – stab bidim stab jmp 1
stab – stab Coupling
stab the Tuners
jmp 10 – stab
2.5
Coupling the Tuners
EDP / best EDP
2
5 1.5
1
2 0.5
5 0
In
Km
ST
Av
1
tru
em
er
M
ea
de
ag
7
ca
ns
r
e
ch
5
ed
Benchmark
ICPP 2015 - Green-CM 22
0
Evaluation
Intruder
1.2
EDP-GreenCM / EDP
1
0.8
0.6
0.4
0.2
0
4 8 16 32 48 64
Threads
1
0.8
0.6
0.4
0.2
0
4 8 16 32 48 64
Threads
1
0.8
0.6
0.4
0.2
0
4 8 16 32 48 64
Threads
p6
p5
% of total cores
p4
p3
p2
p1
p0
spin
no-asym
asym
11
0.8
EDP-GreenCM
0.8
Energy-GreenCM
0.6
0.6
0.4
0.4
0.2
0.2
0
4 8 16 32 48 64
0
Threads
4 8 16 32 48 64
Threads
ICPP 2015 - Green-CM 29
Evaluation
Intruder
1.21.2
EDP-GreenCM / EDP
1 1
Time-GreenCM / Time
0.8
0.8
0.6
0.6
0.4
0.4
0.2
00.2
4 8 16 32 48 64
0
4 8 Threads
16 32 48 64
Threads
ICPP 2015 - Green-CM 30