Software implementation of synchronous memory barriers
Abstract
Selectively emulating sequential consistency in software improves efficiency in a multiprocessing computing environment. A writing CPU uses a high priority inter-processor interrupt to force each CPU in the system to execute a memory barrier. This step invalidates old data in the system. Each CPU that has executed a memory barrier instruction registers completion and sends an indicator to a memory location to indicate completion of the memory barrier instruction. Prior to updating the data, the writing CPU must check the register to ensure completion of the memory barrier execution by each CPU. The register may be in the form of an array, a bitmask, or a combining tree, or a comparable structure. This step ensures that all invalidates are removed from the system and that deadlock between two competing CPUs is avoided. Following validation that each CPU has executed the memory barrier instruction, the writing CPU may update the pointer to the data structure.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 12 · Forward citations: 98.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method for selectively emulating sequential consistency in software comprising: (a) forcing each CPU to execute a memory barrier instruction; and (b) having each CPU send an indicator communicating completion of said memory barrier instruction.
- Claim 2Depends on #1
The method of claim 1 , wherein the step of forcing each CPU to execute a memory barrier instruction includes sending an interprocessor interrupt to all CPUs.
- Claim 3Depends on #2
The method of claim 2 , further comprising avoiding deadlock by having each CPU that is waiting for other CPUs to execute said memory barrier instruction continuously satisfy concurrent memory barrier execution requests.
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 98 total)
References Cited — Backward Prior Art (12)
Non-Patent Literature (1)
- Sites and Witek,"Alpha AXP Architecture Reference Manual", Second Edition, Digital Press., 1995, pp. 5-1-5-27.