HBO Locks HBO Locks Uppsala University Department of Information Technology Uppsala Architecture Research Team [UART] Hierarchical Back-Off (HBO) Locks for Hierarchical Back-Off (HBO) Locks for Non-Uniform Communication Architectures Non-Uniform Communication Architectures Zoran Radovic and Erik Hagersten Zoran Radovic and Erik Hagersten {zoran.radovic, erik.hagersten}@it.uu.se {zoran.radovic, erik.hagersten}@it.uu.se HPCA-9 Ninth International Symposium on High Performance Computer Architecture Anaheim, California, February 8-12, 2003
29
Embed
HBO Locks Uppsala University Department of Information Technology Uppsala Architecture Research Team [UART] Hierarchical Back-Off (HBO) Locks for Non-Uniform.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
HBO LocksHBO Locks
Uppsala UniversityDepartment of Information Technology
Uppsala Architecture Research Team [UART]
Hierarchical Back-Off (HBO) Locks forHierarchical Back-Off (HBO) Locks forNon-Uniform Communication ArchitecturesNon-Uniform Communication Architectures
Zoran Radovic and Erik HagerstenZoran Radovic and Erik Hagersten{zoran.radovic, erik.hagersten}@it.uu.se{zoran.radovic, erik.hagersten}@it.uu.se
HPCA-9Ninth International Symposium onHigh Performance Computer ArchitectureAnaheim, California, February 8-12, 2003
[email protected]@it.uu.se Uppsala Architecture Research Team (UART)Uppsala Architecture Research Team (UART) HBO LocksHBO Locks
Synchronization BasicsSynchronization Basics
Locks are used to protect the shared critical section data
Common software-based solutions: Simple spin-locks
• TATAS (‘84)• TATAS_EXP (‘90)
Queue-based locks• MCS (‘91)• CLH (‘93)
A:=0 BARRIER
LOCK(L)A:=A+1
UNLOCK(L)LOCK(L)B:=A+5
UNLOCK(L)
[email protected]@it.uu.se Uppsala Architecture Research Team (UART)Uppsala Architecture Research Team (UART) HBO LocksHBO Locks
Raytrace SpeedupRaytrace Speedup
0
1
2
3
4
5
6
7
8
9
0 4 8 12 16 20 24 28
Number of Processors
Spe
edup
TATAS MCS
Sun WildFire (WF)
14 14
WF
[email protected]@it.uu.se Uppsala Architecture Research Team (UART)Uppsala Architecture Research Team (UART) HBO LocksHBO Locks
VasaloppetVasaloppet“Contention Problem in Sweden”“Contention Problem in Sweden”
Traditional cross-country ski race55 miles …
51.6533 miles to
go… CS
[email protected]@it.uu.se Uppsala Architecture Research Team (UART)Uppsala Architecture Research Team (UART) HBO LocksHBO Locks
Spin Locks Under ContentionSpin Locks Under Contention
Amount of Contention
Spin locks
Spin locksw/ backoff
Cri
tic
al S
ecti
on
(C
S)
Co
st
IF (more contention) THEN less efficient CS …
“The more important the slower it runs…”
IF (more contention) THEN less efficient CS …
“The more important the slower it runs…”
[email protected]@it.uu.se Uppsala Architecture Research Team (UART)Uppsala Architecture Research Team (UART) HBO LocksHBO Locks
Queue-based LocksQueue-based Locks
Amount of Contention
Spin locks
Spin locksw/ backoff
CS
Co
st
Queue-based locks IF (more contention) THEN constant CS cost …
IF (more contention) THEN constant CS cost …
[email protected]@it.uu.se Uppsala Architecture Research Team (UART)Uppsala Architecture Research Team (UART) HBO LocksHBO Locks
This TalkThis Talk
Amount of Contention
Queue-based locks
Spin locks
Spin locksw/ backoff
HBO locks
CS
Co
st
IF (more contention) THEN more efficient CS …
“The more important the faster it runs…”
IF (more contention) THEN more efficient CS …
“The more important the faster it runs…”
[email protected]@it.uu.se Uppsala Architecture Research Team (UART)Uppsala Architecture Research Team (UART) HBO LocksHBO Locks
Raytrace SpeedupRaytrace Speedup
0
1
2
3
4
5
6
7
8
9
0 4 8 12 16 20 24 28
Number of Processors
Spe
edup
TATAS MCS
HBO Locks
Sun WildFire (WF)
14 14
WF
[email protected]@it.uu.se Uppsala Architecture Research Team (UART)Uppsala Architecture Research Team (UART) HBO LocksHBO Locks
OutlineOutline
Background & Motivation NUMA vs. NUCA Architectures Hierarchical Back-Off (HBO) Locks
HBO HBO_GT HBO_GT with starvation detection/avoidance
Performance Results Conclusions
[email protected]@it.uu.se Uppsala Architecture Research Team (UART)Uppsala Architecture Research Team (UART) HBO LocksHBO Locks