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 条
[41]   An Efficient Adaptive Sequential Methodology for Expensive Response Surface Optimization [J].
Alaeddini, Adel ;
Murat, Alper ;
Yang, Kai ;
Ankenman, Bruce .
QUALITY AND RELIABILITY ENGINEERING INTERNATIONAL, 2013, 29 (06) :799-817
[42]   Proximal policy optimization in event-triggered resource-efficient communications for dynamic platoon maneuvres [J].
Kezia, M. ;
Anusuya, K., V .
PHYSICA SCRIPTA, 2025, 100 (04)
[43]   Efficient Symbolic Routing Encoding for In-vehicle Network Optimization [J].
Smirnov, Fedor ;
Pourmohseni, Behnaz ;
Glass, Michael ;
Teich, Jurgen .
SMART CITIES, GREEN TECHNOLOGIES AND INTELLIGENT TRANSPORT SYSTEMS, SMARTGREENS 2019, VEHITS 2019, 2021, 1217 :173-199
[44]   Breadcrumbs: Efficient Context Sensitivity for Dynamic Bug Detection Analyses [J].
Bond, Michael D. ;
Baker, Graham Z. ;
Guyer, Samuel Z. .
ACM SIGPLAN NOTICES, 2010, 45 (06) :13-24
[45]   Efficient Hardware-Based Nonintrusive Dynamic Application Profiling [J].
Nair, Ajay ;
Shankar, Karthik ;
Lysecky, Roman .
ACM TRANSACTIONS ON EMBEDDED COMPUTING SYSTEMS, 2011, 10 (03)
[46]   FADE: Fast and Asymptotically Efficient Distributed Estimator for Dynamic Networks [J].
Simoes, Antonio ;
Xavier, Joao .
IEEE TRANSACTIONS ON SIGNAL PROCESSING, 2019, 67 (08) :2080-2092
[47]   Efficient Dynamic Access Analysis Using Java']JavaScript Proxies [J].
Keil, Matthias ;
Thiemann, Peter .
ACM SIGPLAN NOTICES, 2014, 49 (02) :49-60
[48]   Constellation Optimization in the Presence of Strong Phase Noise [J].
Krishnan, Rajet ;
Graell i Amat, Alexandre ;
Eriksson, Thomas ;
Colavolpe, Giulio .
IEEE TRANSACTIONS ON COMMUNICATIONS, 2013, 61 (12) :5056-5066
[49]   Strong coupling optimization with planar spiral resonators [J].
Klein, Avraham ;
Katz, Nadav .
CURRENT APPLIED PHYSICS, 2011, 11 (05) :1188-1191
[50]   Thermal Optimization in Network-on-Chip-Based 3D Chip Multiprocessors Using Dynamic Programming Networks [J].
Dahir, Nizar ;
Al-Dujaily, Ra'ed ;
Mak, Terrence ;
Yakovlev, Alex .
ACM TRANSACTIONS ON EMBEDDED COMPUTING SYSTEMS, 2014, 13