Achieving both locking fairness and locking performance with spin locks
Abstract
A method for implementing a spin lock in a system including a plurality of processing nodes, each node including at least one processor and a cache memory, the method including steps of: acquiring exclusivity to the cache memory; checking the availability of the spin lock; setting the spin lock to logical one if the spin lock is available; setting the spin lock to logical zero once processing is complete; and explicitly yielding the cache memory exclusivity. Yielding the cache memory exclusivity includes instructing the cache coherent hardware to mark the cache memory as non-exclusive. The cache memory is typically called level two cache.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 10.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method for implementing a spin lock in a system comprising a plurality of processing nodes, each node comprising at least one processor and a cache memory, the method comprising steps of: obtaining exclusivity to the cache memory; determining whether the spin lock is available; acquiring the spin lock upon determining that the spin lock is available; releasing the spin lock once processing is complete; and instructing cache coherent hardware in the system to mark the cache memory as non-exclusive in order to explicitly yield the exclusivity to the cache memory; wherein the instructing step i
- Claim 2Depends on #1
The method of claim 1 wherein the acquiring step further comprises a step of: setting the spin lock to a logical state indicating its unavailability to other processors.
- Claim 3Depends on #2
The method of claim 2
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (10 of 10 total)
References Cited — Backward Prior Art (6)
Non-Patent Literature (5)
- B.-H. Lim and A. Agarwal, Reactive Synchronization Algorithms for Multiprocessors. ASPLOS 1994.
- Definition of Cache Coherency from Wikipedia, undated.
- J.M. Mellor-Crummey and M.L. Scott, Algorithms for Scalable Synchronization on Shared-Memory Multiprocessors. ACM Transactions on Computer Systems, 9(1):21-65, Feb. 1991.
- S. Swaminathan, J. Stultz, J.F. Vogel, P. McKenney, Fairlocks-A High Performance Fair Locking Scheme. 14th International Conference on Parallel and Distributed Computing and Systems, Nov. 2002.
- T.E. Anderson, The Performance Implications of Spin Lock Alternatives for Shared-Memory Multiprocessors. IEEE Transaction on Parallel and Distributed Systems, 1(1):6-16, Jan. 1990.