[Paper Review] TARDIS: Timestamp based Coherence Algorithm for Distributed Shared Memory
TARDIS is a novel timestamp-based coherence protocol for distributed shared memory that enforces sequential consistency using logical timestamps instead of multicast or $O(N)$ sharer tracking. It achieves $O(\log N)$ storage per cache block and matches directory protocol performance across 16–256 core benchmarks, offering superior scalability and simplicity without requiring global clock synchronization or broadcast.
A new memory coherence protocol, Tardis, is proposed. Tardis uses timestamp counters representing logical time as well as physical time to order memory operations and enforce sequential consistency in any type of shared memory system. Tardis is unique in that as compared to the widely-adopted directory coherence protocol, and its variants, it completely avoids multicasting and only requires O(log N) storage per cache block for an N-core system rather than O(N) sharer information. Tardis is simpler and easier to reason about, yet achieves similar performance to directory protocols on a wide range of benchmarks run on 16, 64 and 256 cores.
Motivation & Objective
- Address the scalability limitations of traditional directory-based coherence protocols that require $O(N)$ sharer tracking and multicast for invalidations.
- Develop a coherence protocol that enforces sequential consistency without relying on physical time synchronization or broadcast mechanisms.
- Achieve high performance and low storage overhead in large-scale shared memory systems, including massive-core and distributed systems.
- Simplify protocol design and verification by eliminating the need to track sharers explicitly, while maintaining correctness under sequential consistency.
- Demonstrate that a timestamp-based approach can match the performance of complex directory protocols with minimal hardware complexity.
Proposed method
- Use logical timestamps (not physical time) to represent global memory order, enabling ordering of memory operations without global clock synchronization.
- Assign each memory operation a timestamp that reflects its position in the global execution order, ensuring compliance with Rule 1 (program order implies memory order).
- Allow writers to 'jump forward' in time by updating the timestamp counter, enabling immediate writes once all prior operations are ordered, without waiting for invalidation acknowledgments.
- Store only the current timestamp and owner ID per cache block, reducing storage to $O(\log N)$ per block instead of $O(N)$ for sharer lists.
- Eliminate multicast by using timestamp-based ordering to implicitly enforce coherence, avoiding the need to send invalidation messages to all sharers.
- Use a lease-based mechanism to defer updates in high-contention scenarios, improving performance for read-heavy workloads.
Experimental results
Research questions
- RQ1Can a coherence protocol based solely on logical timestamps enforce sequential consistency without relying on physical time synchronization or multicast?
- RQ2Is it possible to reduce storage overhead from $O(N)$ to $O(\log N)$ per cache block while maintaining performance comparable to directory protocols?
- RQ3How does a timestamp-based protocol that allows writers to 'skip ahead' in time maintain correctness under sequential consistency?
- RQ4What is the performance impact of eliminating multicast and sharer tracking in large-scale shared memory systems with 16 to 256 cores?
- RQ5Can a simpler protocol like TARDIS outperform or match complex directory-based schemes in real-world benchmarks without sacrificing correctness?
Key findings
- TARDIS achieves performance comparable to baseline directory protocols across a wide range of benchmarks on 16, 64, and 256-core systems.
- The protocol reduces per-cache-block storage from $O(N)$ to $O(\log N)$ by eliminating the need to track sharers explicitly.
- TARDIS avoids multicast and global clock synchronization, simplifying implementation and improving scalability.
- The protocol’s correctness is formally proven under sequential consistency, with the core insight being that writers can 'jump forward' in logical time to bypass waiting for invalidations.
- Performance is relatively insensitive to lease duration for most workloads, though spinning benchmarks show degradation with longer leases, suggesting room for intelligent lease management.
- TARDIS outperforms existing timestamp-based protocols like LCC by eliminating waiting for expiration of shared copies and avoiding broadcast or physical time dependencies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.