ROSS: A high-performance, low-memory, modular Time Warp system

Christopher D. Carothers, David W. Bauer, Shawn PearceJ. Parallel Distributed Comput 2002

TL;DR

This paper introduces ROSS, a novel Time Warp simulation system that achieves high performance and low memory usage by combining a modular, pointer-based framework with efficient algorithms for Global Virtual Time (GVT) calculation and Kernel Processes (KPs) for reduced fossil collection overhead. ROSS demonstrates significant speedups over existing systems like GTW, particularly in memory-constrained scenarios, making it ideal for large-scale networking simulations.

What Problem Does This Paper Address?

The paper tackles a fundamental challenge in parallel discrete-event simulation (PDES) using the Time Warp paradigm: the trade-off between high performance and memory efficiency. Traditional Time Warp implementations often achieve high event rates by consuming substantial amounts of memory, which can become a bottleneck. Conversely, memory-efficient approaches often sacrifice performance. The authors aim to bridge this gap by developing a system that is both fast and memory-conscious, addressing the "memory wall" problem in PDES. They highlight that existing monolithic Time Warp kernels, while fast, are difficult to extend and debug, while modular approaches, though flexible, often incur a performance penalty.

Methods

ROSS introduces several key innovations:

  • Pointer-based, Modular Implementation Framework: Unlike monolithic kernels, ROSS breaks down functionality into smaller, manageable modules. It uses a pointer-based approach for data structures, which is argued to improve data locality and reduce access overheads compared to index-based approaches.
  • Fujimoto's GVT Algorithm: ROSS leverages an efficient asynchronous GVT algorithm designed for shared-memory multiprocessors.
  • Reverse Computation: This technique allows for efficient rollback by re-executing events in reverse, avoiding the need to store full state histories.
  • Kernel Processes (KPs): This is a significant innovation. KPs group multiple Logical Processes (LPs) that reside on the same physical processor. Fossil collection (reclaiming memory for processed events) is then performed on a KP basis rather than an LP basis. This aggregation dramatically reduces fossil collection overheads, allowing for more frequent collection and thus lower overall memory usage.

Datasets

The paper evaluates ROSS using two benchmark applications:

  • Personal Communications Services (PCS) Network Model: This is a real-world simulation model where cells are LPs and subscribers are messages. It features small event granularity and can generate a significant number of remote messages.
  • rPHOLD: A derivative of the PHOLD synthetic workload model, modified to support reverse computation. This benchmark is designed to be "pathological" with minimal event granularity and a high percentage of remote messages (75% in some configurations), intended to stress rollback mechanisms and potentially cause "thrashing."

Key Insights and Ideas

  • Memory Usage is Key: The paper strongly suggests that the performance of an optimistic simulator is largely determined by its memory usage. ROSS's success hinges on its ability to achieve high performance with minimal memory overhead.
  • Kernel Processes (KPs) are Crucial for Memory Efficiency: By aggregating LPs into KPs for fossil collection, ROSS significantly reduces the overhead associated with memory reclamation, enabling more frequent collection and thus lower peak memory requirements.
  • Modular Design Can Be High-Performance: Contrary to common belief, ROSS demonstrates that a modular, pointer-based design can achieve performance comparable to or exceeding monolithic systems, especially when combined with efficient algorithms.
  • "On-the-Fly" Fossil Collection Challenges: The paper highlights issues with GTW's "on-the-fly" fossil collection, where an unordered free-list due to rollbacks can lead to false aborts and performance instability, requiring GTW to use significantly more memory.

Key Results

  • High Event Rates: ROSS achieved event rates as high as 1,250,000 events per second on a quad-processor PC server for the PCS model.
  • Significant Speedups: ROSS outperformed the Georgia Tech Time Warp (GTW) system by up to 180% on a quad-processor PC and up to 200% on an SGI Origin 2000.
  • Low Memory Footprint: ROSS requires only a small, constant amount of additional memory buffers beyond what a sequential simulation needs, regardless of the number of LPs. For example, in the 256x256 case, ROSS used 100.2% of sequential memory, while GTW-OPT used 143%.
  • rPHOLD Performance: ROSS achieved speedups on the pathological rPHOLD benchmark, a feat not previously reported for Time Warp systems under such conditions.
  • KP Impact: Increasing the number of KPs generally reduced rollback events and improved performance, especially for larger configurations, without negatively impacting event rates significantly.

Limitations and Future Work

  • Memory Subsystem Bottleneck: The performance of ROSS and GTW on the quad-processor PC server was limited by its under-powered memory subsystem, particularly at higher LP counts.
  • KP Configuration Tuning: While ROSS is less sensitive to KP configuration than GTW is to memory partitioning, finding the optimal KP setting can still influence performance.
  • Future Work:
    • Decoupling GVT and Fossil Collection: The authors plan to explore decoupling GVT computation and fossil collection frequency from parameters like GVTinterval and batch, making them dependent on memory availability. They believe this will further improve simulator efficiency.
  • Cluster Computing: Extending ROSS to efficiently execute in cluster environments and exploit shared-memory and message-passing paradigms.

Summary updated

BibTeX
@article{carothers2002ross,
  author = {Christopher D. Carothers and David W. Bauer and Shawn Pearce},
  title = {{ROSS: A high-performance, low-memory, modular Time Warp system}},
  journal = {J. Parallel Distributed Comput},
  year = {2002},
  doi = {10.1016/s0743-7315(02)00004-7},
}
Figure