Multiprocessing systems employing hierarchical back-off locks
Abstract
A multiprocessing system including multiple processing nodes employs various implementations of hierarchical back-off locks. A thread attempting to obtain a software lock may determine whether the lock is currently owned by a different node than the node in which the thread is executing. If the lock is not owned by a different node, the thread executes code to perform a fast spin operation. On the other hand, if the lock is owned by a different node, the thread executes code to perform a slow spin operation. In this manner, node locality may result wherein a thread that is executing within the same node in which a lock has already been obtained will be more likely to subsequently acquire the lock when it is freed in relation to other contending threads executing in other nodes.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 5.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method for performing spin-lock operations in a computer system comprising: a first thread determining a node id of an owner of a software lock; the first thread spinning on the software lock at a first initial rate in response to determining the node id identifies the same node in which the first thread is executing; and the first thread spinning on the software lock at a slower initial rate in response to determining the node id identifies a different node than the node in which the first thread is executing.
- Claim 2Depends on #1
The method as recited in claim 1 further comprising a second thread storing said node id within a storage location associated with said software lock, wherein said node id corresponds to a particular node in which said second thread is executing.
- Claim 3Depends on #2
The method as recited in claim 2 further
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗