Dynamic Optimization for Efficient Strong Atomicity

被引:0
作者
Schneider, Florian T. [1 ]
Menon, Vijay [2 ]
Shpeisman, Tatiana [3 ]
Adl-Tabatabai, Ali-Reza [3 ]
机构
[1] ETH, Dept Comp Sci, Zurich, Switzerland
[2] Google, Seattle, WA 98103 USA
[3] Intel Corp, Santa Clara, CA 95054 USA
来源
OOPSLA 2008 NASHVILLE, CONFERENCE PROCEEDINGS: MUSIC CITY USA, OOPSLA | 2008年
关键词
Algorithms; Design; Experimentation; Languages; Measurement; Performance;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Transactional memory (TM) is a promising concurrency control alternative to locks. Recent work [30, 1, 25, 26] has highlighted important memory model issues regarding TM semantics and exposed problems in existing TM implementations. For safe, managed languages such as Java, there is a growing consensus towards strong atomicity semantics as a sound, scalable solution. Strong atomicity has presented a challenge to implement efficiently because it requires instrumentation of non-transactional memory accesses, incurring significant overhead even when a program makes minimal or no use of transactions. To minimize overhead, existing solutions require either a sophisticated type system, specialized hardware, or static whole-program analysis. These techniques do not translate easily into a production setting on existing hardware. In this paper, we present novel dynamic optimizations that significantly reduce strong atomicity overheads and make strong atomicity practical for dynamic language environments. We introduce analyses that optimistically track which non-transactional memory accesses can avoid strong atomicity instrumentation, and we describe a lightweight speculation and recovery mechanism that applies these analyses to generate speculatively-optimized but safe code for strong atomicity in a dynamically-loaded environment. We show how to implement these mechanisms efficiently by leveraging existing dynamic optimization infrastructure in a Java system. Measurements on a set of transactional and non-transactional Java workloads demonstrate that our techniques substantially reduce the overhead of strong atomicity from a factor of 5x down to 10% or less over an efficient weak atomicity baseline.
引用
收藏
页码:181 / +
页数:3
相关论文
共 50 条
  • [21] Performance Potential of Optimization Phase Selection During Dynamic JIT Compilation
    Jantz, Michael R.
    Kulkarni, Prasad A.
    [J]. ACM SIGPLAN NOTICES, 2013, 48 (07) : 131 - 141
  • [22] Strong and efficient self-healing adhesives based on dynamic quaternization cross-links
    Tang, J.
    Wan, L.
    Zhou, Y.
    Pan, H.
    Huang, F.
    [J]. JOURNAL OF MATERIALS CHEMISTRY A, 2017, 5 (40) : 21169 - 21177
  • [23] An efficient sparse approach to sensitivity generation for large-scale dynamic optimization
    Barz, Tilman
    Kuntsche, Stefan
    Wozny, Guenter
    Arellano-Garcia, Harvey
    [J]. COMPUTERS & CHEMICAL ENGINEERING, 2011, 35 (10) : 2053 - 2065
  • [24] An Infrastructure for Dynamic Optimization of Parallel Programs
    Noll, Albert
    Gross, Thomas R.
    [J]. ACM SIGPLAN NOTICES, 2012, 47 (08) : 325 - 326
  • [25] Efficient data-driven models for prediction and optimization of geothermal power plant operations
    Ling, Wei
    Liu, Yingxiang
    Young, Robert
    Cladouhos, Trenton T.
    Jafarpour, Behnam
    [J]. GEOTHERMICS, 2024, 119
  • [26] Efficient optimization of fracturing parameters with consideration of fracture propagation and heterogeneity in tight gas reservoirs
    Luo, Shangui
    Tang, Huiying
    Zhang, Liehui
    Wang, Tao
    Zhao, Yulong
    Chen, Weihua
    [J]. COMPUTERS & GEOSCIENCES, 2024, 186
  • [27] Ship voyage optimization for safe and energy-efficient navigation: A dynamic programming approach
    Zaccone, R.
    Ottaviani, E.
    Figari, M.
    Altosole, M.
    [J]. OCEAN ENGINEERING, 2018, 153 : 215 - 224
  • [28] An Energy-Efficient Objective Optimization Model for Dynamic Management of Reliability and Delay in WSNs
    Liu, Wenwen
    Wang, Gang
    Liu, Xiaoguang
    [J]. ALGORITHMS AND ARCHITECTURES FOR PARALLEL PROCESSING, ICA3PP 2018, PT II, 2018, 11335 : 238 - 247
  • [29] FastTrack: Efficient and Precise Dynamic Race Detection
    Flanagan, Cormac
    Freund, Stephen N.
    [J]. ACM SIGPLAN NOTICES, 2009, 44 (06) : 121 - 133
  • [30] Dynamic and Efficient Key Management for Access Hierarchies
    Atallah, Mikhail J.
    Blanton, Marina
    Fazio, Nelly
    Frikken, Keith B.
    [J]. ACM TRANSACTIONS ON INFORMATION AND SYSTEM SECURITY, 2009, 12 (03)