Computing global virtual time in shared-memory multiprocessors
Richard M. Fujimoto, Maria Hybinette · ACM Transactions on Modeling and Computer Simulation · 1997
Global virtual time (GVT) is used in the Time Warp synchronization mechanism to perform irrevocable operations such as I/O and to reclaim storage. Most existing algorithms for computing GVT assume a message-passing programming model. Here, GVT computation is examined in the context of a shared-memory model. We observe that computation of GVT is much simpler in shared-memory multiprocessors because these machines normally guarantee that no two processors will observe a set of memory operations as occurring in different orders. Exploiting this fact, we propose an efficient, asynchronous, shared-memory GVT algorithm and prove its correctness. This algorithm does not require message acknowledgments, special GVT messages, or FIFO delivery of messages, and requires only a minimal number of shared variables and data structures. The algorithm only requires one round of interprocessor communication to compute GVT, in contrast to many message-based algorithms that require two. An efficient implementatin is described that eliminates the need for a processor to explicitly compute a local minimum for time warp systems using a lowest-timestamp-first scheduling policy in each processor. In addition, we propose a new mechanism called on-the-fly fossil collection that enables efficient storage reclamation for simulations containing large numbers, e.g., hundreds of thousand or even millions of simulator objects. On-the-fly fossil collection can be used in time warp systems executing on either shared-memory or message-based machines. Performance measurements of the GVT algorithm and the on-the-fly fossil collection mechanism on a Kendall Square Research KSR-2 machine demonstrate that these techniques enable frequent GVT and fossil collections, e.g., every millisecond, without incurring a significant performance penalty
Cited by 98 works. doi:10.1145/268403.268404 Open-access PDF
Authors
References
- Virtual time
- How to Make a Multiprocessor Computer That Correctly Executes Multiprocess Programs
- Parallel discrete event simulation
- Memory coherence in shared virtual memory systems
- Memory consistency and event ordering in scalable shared-memory multiprocessors
- Proceedings of the 2000 International Conference on Parallel Processing
- Distributed simulation of large-scale PCS networks
- Time warp on a shared memory multiprocessor
- Efficient Algorithms for Distributed Snapshots and Global Virtual Time Approximation
- Proceedings of the 9th annual symposium on Computer Architecture