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 条
  • [41] Tracking global optima in dynamic environments with efficient global optimization
    Morales-Enciso, Sergio
    Branke, Juergen
    EUROPEAN JOURNAL OF OPERATIONAL RESEARCH, 2015, 242 (03) : 744 - 755
  • [42] An Efficient Dynamic Resource Allocation Framework for Evolutionary Bilevel Optimization
    Xu, Dejun
    Ye, Kai
    Zheng, Zimo
    Zhou, Tao
    Yen, Gary G.
    Jiang, Min
    IEEE TRANSACTIONS ON CYBERNETICS, 2025, 55 (02) : 726 - 739
  • [43] A Computationally Efficient Technique for Dynamic Sensitivity Filtering in Topology Optimization
    Huang, Hongbin
    Wang, Yiming
    Wang, Haoyin
    Wu, Bo
    Hu, Youmin
    INTERNATIONAL JOURNAL FOR NUMERICAL METHODS IN ENGINEERING, 2025, 126 (02)
  • [44] Dynamic Analysis of Multi-threaded Embedded Software to Expose Atomicity Violations
    Patel, Jay
    Lee, Yann-Hang
    2016 13TH INTERNATIONAL CONFERENCE ON EMBEDDED SOFTWARE AND SYSTEMS (ICESS) - PROCEEDINGS, 2016, : 36 - 41
  • [45] An efficient online successive reanalysis method for dynamic topology optimization
    Li, Shuhao
    Yin, Jichao
    Guo, Daozhen
    Li, Guangyao
    Wang, Hu
    ADVANCES IN ENGINEERING SOFTWARE, 2024, 191
  • [47] Hybrid Dynamic Optimization Methods for Systems Biology with Efficient Sensitivities
    Lewis, Nicholas R.
    Hedengren, John D.
    Haseltine, Eric L.
    PROCESSES, 2015, 3 (03): : 701 - 729
  • [48] Communication optimization for efficient dynamic task allocation in swarm robotics
    Nedjah, Nadia
    Ribeiro, Luigi Maciel
    Mourelle, Luiza de Macedo
    APPLIED SOFT COMPUTING, 2021, 105
  • [49] Dynamic MAWQA: Towards Efficient Real-time Optimization of Slow Dynamic Processes
    Gao, Weihua
    Engell, Sebastian
    PROCEEDINGS OF THE 36TH CHINESE CONTROL CONFERENCE (CCC 2017), 2017, : 2893 - 2898
  • [50] A Novel Optimization Method for Constructing Cryptographically Strong Dynamic S-Boxes
    Ibrahim, Saleh
    Abbas, Alaa M.
    IEEE ACCESS, 2020, 8 (08): : 225004 - 225017