System and method for implementing NUMA-aware reader-writer locks
Abstract
NUMA-aware reader-writer locks may leverage lock cohorting techniques to band together writer requests from a single NUMA node. The locks may relax the order in which the lock schedules the execution of critical sections of code by reader threads and writer threads, allowing lock ownership to remain resident on a single NUMA node for long periods, while also taking advantage of parallelism between reader threads. Threads may contend on node-level structures to get permission to acquire a globally shared reader-writer lock. Writer threads may follow a lock cohorting strategy of passing ownership of the lock in write mode from one thread to a cohort writer thread without releasing the shared lock, while reader threads from multiple NUMA nodes may simultaneously acquire the shared lock in read mode. The reader-writer lock may follow a writer-preference policy, a reader-preference policy or a hybrid policy.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 23 · Forward citations: 22.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method, comprising: performing, by a computer: beginning execution of a multithreaded application that comprises one or more requests to acquire a shared lock, wherein the shared lock controls write access to a critical section of code or a shared resource by concurrently executing threads of the multithreaded application, wherein only one thread of the multithreaded application can hold the shared lock for writing at a time, wherein each of the concurrently executing threads of the multithreaded application executes on one of a plurality of processor cores in a cluster of processor cores th
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 22 total)
References Cited — Backward Prior Art (23)
Non-Patent Literature (5)
- "NUMA-Aware locking routines-design and implementation in Linux" downloaded from sc.tamu.edu/whitepapers/altix/numalocks.pdf, pp. 1-10, Jul. 25, 2001.
- A. Agarwal and M. Cherian. "Adaptive backoff synchronization techniques". SIGARCH Comput. Archit. News, 17:396-406, Apr. 1989.
- D. Dice and A. Garthwaite. "Mostly Lock Free Malloc". In Proceedings of the 3rd International Symposium on Memory Management, pp. 163-174, 2002.
- D. Dice and N. Shavit. "TLRW: Return of the Read-Write Lock." SPAA 2010. pp. 1-9.
- D. Dice, V. Marathe, and N. Shavit. "Flat Combining NUMA Locks". In Proceedings of the 23rd ACM Symposium on Parallelism in Algorithms and Architectures, 2011. pp. 1-10.