Reducing Memory Ordering Overheads in Software Transactional Memory

被引:7
作者
Spear, Michael F. [1 ]
Michael, Maged M. [2 ]
Scott, Michael L. [1 ]
Wu, Peng [2 ]
机构
[1] Univ Rochester, Dept Comp Sci, Rochester, NY 14627 USA
[2] IBM Corp, TJ Watson Res Ctr, Armonk, NY 10504 USA
来源
CGO 2009: INTERNATIONAL SYMPOSIUM ON CODE GENERATION AND OPTIMIZATION, PROCEEDINGS | 2009年
关键词
Software Transactional Memory; Memory Fences;
D O I
10.1109/CGO.2009.30
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Most research into high-performance software transactional memory (STM) assumes that transactions will run on a processor with a relatively strict memory model, such as Total Store Ordering (TSO). To execute these algorithms correctly on processors with relaxed memory models, explicit fence instructions may be required on every transactional access, and neither the processor nor the compiler may be able to safely reorder transactional reads. The overheads of fence instructions and read serialization are a significant but unstudied source of latency for STM, with impact on the tradeoffs among different STM systems and on the optimizations that may be possible for any given system. Straightforward ports of STM runtimes from strict to relaxed machines may fail to realize the latter's performance potential. We explore the implementation of STM for machines with relaxed memory consistency using two recent high-performance STM systems. We propose compiler optimizations that can safely eliminate many fence instructions. Using these techniques, we obtain a reduction of up to 89% in the number of fences, and 20% in per-transaction latency, for common transactional benchmarks.
引用
收藏
页码:13 / +
页数:3
相关论文
共 26 条
[1]  
ADLTABATABAI AR, 2006, P 2006 ACM SIGPLAN C
[2]  
[Anonymous], P 2007 INT S COD GEN
[3]  
Chung J., 2008, P IEEE INT S WORKL C
[4]  
DICE D, 2007, P 2007 INT S COD GEN
[5]  
DICE D, 2006, P 20 INT S DISTR COM
[6]  
Ennals R, 2006, Tech. Rep. IRC-TR-06-052
[7]  
FELBER P, 2008, P 13 ACM SIGPLAN S P
[8]  
HARRIS T, 2006, P 2006 ACM SIGPLAN C
[9]  
Herlihy M. P., 2003, P 22 ACM S PRINC DIS
[10]  
HUDSON RL, 2006, P 2006 INT S MEM MAN