Speculo: shared memory made easy
summary
Speculo is a ~2000-line C library that implements lockless IPC on POSIX shared memory with one writer many readers semantics and zero copy commits. It uses compiler memory barriers, chunk allocation with per-chunk states, manifest files to atomically switch to a compacted new shm file, and expiration timestamps to avoid locks during compaction. Setup cost is high but throughput scales well with many parties (sockets win for two). It works as described; adoption so far is experimental.
AI-written summary · about
chapters (10)
- 0:00Start
- 1:57Motivation and goals
- 4:44Speculo: interlingua for mirror
- 6:19Design principles
- 7:16Useful concepts
- 8:28Step-by-step
- 9:13Writer side
- 19:32Obsoleted data
- 20:48Speculo use cases
- 22:30Question time
related talks
42mInter Process Confusion - Navigating Zephyr's IPC APIs
30mCosh: Clear OS Data Sharing In An Incoherent World
18mMemSpec: Memory-Aware Runtime for Adaptive Draft Scheduling in Speculative Decoding on(…)
31mOpenAMP Libmetal Shared Memory Cross OS Interface
21mBluespec FSM: The Hidden Gem
35mMulti-core Application Development with Zephyr RTOS
35mMulti-core Application Development with Zephyr RTOS
42mZbus - the Lightweight and Flexible Zephyr Message Bus
