Systems and methods for adaptive integration of hardware and software lock elision techniques
Abstract
Particular techniques for improving the scalability of concurrent programs (e.g., lock-based applications) may be effective in some environments and for some workloads, but not others. The systems described herein may automatically choose appropriate ones of these techniques to apply when executing lock-based applications at runtime, based on observations of the application in the current environment and with the current workload. In one example, two techniques for improving lock scalability (e.g., transactional lock elision using hardware transactional memory, and optimistic software techniques) may be integrated together. A lightweight runtime library built for this purpose may adapt its approach to managing concurrency by dynamically selecting one or more of these techniques (at different times) during execution of a given application. In this Adaptive Lock Elision approach, the techniques may be selected (based on pluggable policies) at runtime to achieve good performance on different platforms and for different workloads.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 25 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method, comprising: performing by a computer: beginning instrumentation of code of a multithreaded application, wherein the application comprises at least one critical section of code that is associated with a lock, and wherein when the lock is held by a thread, other threads are prevented from accessing resources that are protected by the lock; declaring, for one or more respective locks of the at least one critical section, metadata for use by an adaptive lock elision library, wherein the metadata for a given lock comprises a respective label corresponding to the given lock; selecting one
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (25)
Non-Patent Literature (5)
- Chen et al. "Critical Lock Analysis: Diagnosing Critical Section Bottlenecks in Multithreaded Applications", 2012 IEEE, 11 pages.
- Christoph Lameter, "Effective Synchronization on Linux/NUMA Systems", In Gelato Conference, Palo Alto, California. Gelato Foundation, May 2005. Retrieved from www.lameter.com/gelato2005.pdf on Apr. 16, 2014, pp. 1-23.
- Corbet. Driver porting: mutual exclusion with seqlocks, Feb. 2003, Downloaded from Iwn.net/Articles/22818/ on Apr. 16, 2014, pp. 1-2.
- Dave Dice, Maurice Herlihy, Doug Lea, Yossi Lev, Victor Luchangco, Wayne Mesard, Mark Moir, Kevin Moore, and Dan Nussbaum, "Applications of the Adaptive Transactional Memory Test Platform", In The third annual ACM SIGPLAN Workshop on Transactional Computing, Feb. 2008, pp. 1-10.
- Dave Dice, Yossi Lev, Mark Moir, and Dan Nussbaum, "Early experience with a commercial hardware transactional memory implementation" Technical Report TR-2009-180, Sun Microsystems Laboratories, Mar. 7-11, 2009, pp. 1-12.