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
关键词
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 条
  • [31] Energy Efficient Dynamic Resource Optimization in NOMA Systems
    Zhang, Haijun
    Wang, Baobao
    Jiang, Chunxiao
    Long, Keping
    Nallanathan, Arumugam
    Leung, Victor C. M.
    Poor, H. Vincent
    IEEE TRANSACTIONS ON WIRELESS COMMUNICATIONS, 2018, 17 (09) : 5671 - 5683
  • [32] HAVE: Detecting Atomicity Violations via Integrated Dynamic and Static Analysis
    Chen, Qichang
    Wang, Liqiang
    Yang, Zijiang
    Stoller, Scott D.
    FUNDAMENTAL APPROACHES TO SOFTWARE ENGINEERING, PROCEEDINGS, 2009, 5503 : 425 - +
  • [33] On Strong Tracking Kalman Filter Based on Forgetting Factor Dynamic Optimization
    Zhang Yongjun
    Li Xiaozhan
    Yang Zhigang
    2011 30TH CHINESE CONTROL CONFERENCE (CCC), 2011, : 1515 - 1518
  • [34] Strong and efficient
    Hellebrekers, Ludo J.
    TIJDSCHRIFT VOOR DIERGENEESKUNDE, 2008, 133 (11) : 500 - 500
  • [35] An efficient merarchical failure recovery algorithm ensuring semantic atomicity for workflow applications
    Ren, Y
    Wu, QY
    Jia, Y
    Guan, JB
    ADVANCES IN WEB-AGE INFORMATION MANAGEMENT: PROCEEDINGS, 2004, 3129 : 664 - 671
  • [36] Mechanically strong and highly efficient healable organic/inorganic hybrid dynamic network
    Zhou, Danling
    Wang, Yan
    Zhu, Jing
    Yu, Junrong
    Hu, Zuming
    POLYMER, 2019, 167 : 202 - 208
  • [37] On multiobjective combinatorial optimization and dynamic interim hedging of efficient portfolios
    Dash, Gordon H., Jr.
    Kajiji, Nina
    INTERNATIONAL TRANSACTIONS IN OPERATIONAL RESEARCH, 2014, 21 (06) : 899 - 918
  • [38] Efficient Control Discretization Based on Turnpike Theory for Dynamic Optimization
    Sahlodin, Ali M.
    Barton, Paul I.
    PROCESSES, 2017, 5 (04):
  • [39] Efficient Dynamic Compressor Optimization in Natural Gas Transmission Systems
    Mak, Terrence W. K.
    Van Hentenryck, Pascal
    Zlotnik, Anatoly
    Hijazi, Hassan
    Bent, Russell
    2016 AMERICAN CONTROL CONFERENCE (ACC), 2016, : 7484 - 7491
  • [40] An Efficient and Universal Static and Dynamic Convex Optimization for Array Synthesis
    Feng, Chen Zhang
    Li, Wen Tao
    Cui, Can
    Hei, Yong Qiang
    Mou, Jin Chao
    Shi, Xiao Wei
    IEEE ANTENNAS AND WIRELESS PROPAGATION LETTERS, 2022, 21 (10): : 2060 - 2064