Patents
US 9,619,281 B2#43964141 Most CitedActiveUnited States (USPTO)Utility

Systems and methods for adaptive integration of hardware and software lock elision techniques

2Forward Citations (#43964141 Global)
0.2/yrCitation Velocity (#31830985 Global)
0.92Citation PageRank (#46714728 Global)
25Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

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)

  1. 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 ↗

References Cited — Backward Prior Art (25)

PatentTitleYearCitations
US 6,370,529 B1Multi-phase locking for partition maintenance operations200247
US 6,697,834 B1Mutual exculsion system and method for restarting critical sections of code when preempted during a critical section200457
US 6,799,236 B1Methods and apparatus for executing code while avoiding interference200466
US 7,089,374 B2Selectively unmarking load-marked cache lines during transactional program execution200636
US 7,120,762 B2Concurrent execution of critical sections by eliding ownership of locks200694
US 7,206,903 B1Method and apparatus for releasing memory locations during transactional execution2007119
US 7,389,383 B2Selectively unmarking load-marked cache lines during transactional program execution200837
US 7,516,366 B2System and method for executing nested atomic blocks using split hardware transactions200950
US 2009119459 A1Late lock acquire mechanism for hardware lock elision (hle)—43
US 7,613,908 B2Selective hardware lock disabling20097
US 7,856,537 B2Hybrid hardware and software implementation of transactional memory access201031
US 7,930,694 B2Method and apparatus for critical section prediction for intelligent lock elision201156
US 8,041,926 B2Transparent concurrent atomic execution20117
US 8,190,859 B2Critical section detection and prediction mechanism for hardware lock elision201212
US 8,402,464 B2System and method for managing contention in transactional memory using global execution data201312
US 2013097607 A1Method, apparatus, and system for adaptive thread scheduling in transactional memory systems—37
US 2013159653 A1Predictive Lock Elision—10
US 2013205119 A1Instruction and logic to test transactional execution status—38
US 8,627,030 B2Late lock acquire mechanism for hardware lock elision (HLE)20147
US 2014059333 A1Method, apparatus, and system for speculative abort control mechanisms—66
US 8,789,057 B2System and method for reducing serialization in transactional memory using gang release of blocked threads201410
US 8,826,249 B2Method and system for optimizing code for a multi-threaded application20146
US 8,914,620 B2Method and system for reducing abort rates in speculative lock elision using contention management mechanisms201412
US 8,966,491 B2System and method for implementing NUMA-aware reader-writer locks201522
US 9,183,043 B2Systems and methods for adaptive integration of hardware and software lock elision techniques20153

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.