skip to main content
10.1145/2486092.2486133acmconferencesArticle/Chapter ViewAbstractPublication PagespadsConference Proceedingsconference-collections
research-article

Consistent and efficient output-streams management in optimistic simulation platforms

Published:19 May 2013Publication History

ABSTRACT

Optimistic synchronization is considered an effective means for supporting Parallel Discrete Event Simulations. It relies on a speculative approach, where concurrent processes execute simulation events regardless of their safety, and consistency is ensured via proper rollback mechanisms, upon the a-posteriori detection of causal inconsistencies along the events' execution path. Interactions with the outside world (e.g. generation of output streams) are a well-known problem for rollback-based systems, since the outside world may have no notion of rollback. In this context, approaches for allowing the simulation modeler to generate consistent output rely on either the usage of ad-hoc APIs (which must be provided by the underlying simulation kernel) or temporary suspension of processing activities in order to wait for the final outcome (commit/rollback) associated with a speculatively-produced output.

In this paper we present design indications and a reference implementation for an output streams' management subsystem which allows the simulation-model writer to rely on standard output-generation libraries (e.g. stdio) within code blocks associated with event processing. Further, the subsystem ensures that the produced output is consistent, namely associated with events that are eventually committed, and system-wide ordered along the simulation time axis.

The above features jointly provide the illusion of a classical (simple to deal with) sequential programming model, which spares the developer from being aware that the simulation program is run concurrently and speculatively. We also show, via an experimental study, how the design/development optimizations we present lead to limited overhead, giving rise to the situation where the simulation run would have been carried out with near-to-zero or reduced output management cost. At the same time, the delay for materializing the output stream (making it available for any type of audit activity) is shown to be fairly limited and constant, especially for good mixtures of I/O-bound vs CPU-bound behaviors at the application level. Further, the whole output streams' management subsystem has been designed in order to provide scalability for I/O management on clusters.

References

  1. B. H. Bloom. Space/time trade-offs in hash coding with allowable errors. Commun. ACM, 13(7):422--426, 1970. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. R. Brown. Calendar queues: a fast O(1) priority queue implementation for the simulation event set problem. Communications of the ACM, 31:1220--1227, October 1988. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. C. D. Carothers, K. S. Perumalla, and R. M. Fujimoto. Efficient optimistic parallel simulations using reverse computation. ACM Transactions on Modeling and Computer Simulation, 9(3):224--253, july 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. S. R. Das, R. M. Fujimoto, K. Panesar, D. Allison, and M. Hybinette. GTW: a time warp system for shared memory multiprocessors. In WSC '94: Proceedings of the 26th conference on Winter simulation, pages 1332--1339. Society for Computer Simulation International, 1994. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. M. Elnozahy, L. Alvisi, Y.-M. Wang, and D. B. Johnson. A survey of rollback-recovery protocols in message-passing systems. ACM Computing Surveys, 34(3):375--408, sept 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. S. Franks, F. Gomes, B. Unger, and J. G. Cleary. State saving for interactive optimistic simulation. In Workshop on Parallel and Distributed Simulation, pages 72--79, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. R. M. Fujimoto. Parallel discrete event simulation. Communications of the ACM, 33(10):30--53, Oct. 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. H. R. Group. ROOT-Sim: The ROme OpTimistic Simulator - v 1.0. http://www.dis.uniroma1.it/ hpdcs/ROOT-Sim/, Oct. 2012.Google ScholarGoogle Scholar
  9. D. R. Jefferson. Virtual Time. ACM Transactions on Programming Languages and System, 7(3):404--425, July 1985. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. D. R. Jefferson, B. Beckman, F. Wieland, L. Blume, M. D. Loreto, P. Hontalas, P. Laroche, K. Sturdevant, J. Tupman, L. V. Warren, J. J. Wedel, H. Younger, and S. Bellenot. Distributed simulation and the time wrap operating system. In SOSP, pages 77--93, 1987. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. D. B. Johnson. Efficient transparent optimistic rollback recovery for distributed application programs. In Proceedings of the 12th Symposium on Reliable Distributed Systems, RDS, pages 86--95, Oct. 1993.Google ScholarGoogle ScholarCross RefCross Ref
  12. S. Kandukuri and S. Boyd. Optimal power control in interference-limited fading wireless channels with outage-probability specifications. IEEE Transactions on Wireless Communications, 1(1):46--55, 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. L. Lamport. Time, clocks, and the ordering of events in a distributed system. Communications of the ACM, 21(7):558--565, 1978. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. D. E. Martin, T. J. McBrayer, and P. A. Wilsey. WARPED: A time warp simulation kernel for analysis and application development. In HICSS '96: Proceedings of the 29th Hawaii International Conference on System Sciences (HICSS'96) Volume 1: Software Technology and Architecture, page 383. IEEE Computer Society, 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. A. Pellegrini, R. Vitali, and F. Quaglia. The ROme OpTimistic Simulator: Core internals and programming model. In Proceedings of the 4th International ICST Conference on Simulation Tools and Techniques, SIMUTools. ICST, 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. A. Pellegrini, R. Vitali, and F. Quaglia. Transparent and efficient shared-state management for optimistic simulations on multi-core machines. In Proceedings 20th International Symposium on Modeling, Analysis and Simulation of Computer and Telecommunication Systems, MASCOTS, pages 134--141. IEEE Computer Society, Aug. 2012. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. F. Quaglia. On the construction of committed consistent global states in optimistic simulation. International Journal of Simulation and Process Modelling, 5(2):172--181, 2009.Google ScholarGoogle ScholarCross RefCross Ref
  18. A. Santoro and F. Quaglia. Transparent optimistic synchronization in the high-level architecture via time-management conversion. ACM Trans. Model. Comput. Simul., 22(4):21, 2012. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. SPEEDES. http://www.speedes.com, 2005.Google ScholarGoogle Scholar
  20. R. Vitali, A. Pellegrini, and F. Quaglia. Autonomic log/restore for advanced optimistic simulation systems. In Proceedings of the Symposium on Modeling, Analysis, and Simulation of Computer and Telecommunication Systems, MASCOTS, pages 319--327. IEEE Computer Society, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. R. Vitali, A. Pellegrini, and F. Quaglia. Towards symmetric multi-threaded optimistic simulation kernels. In Proceedings of the 26th International Workshop on Principles of Advanced and Distributed Simulation, PADS, pages 211--220. IEEE Computer Society, Aug. 2012. Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. A. Welc, B. Saha, and A.-R. Adl-Tabatabai. Irrevocable transactions and their applications. In Proceedings of the 20th annual Symposium on Parallelism in Algorithms and Architectures, SPAA, pages 285--296. ACM, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. D. West and K. Panesar. Automatic incremental state saving. In Proceedings of the 10th Workshop on Parallel and Distributed Simulation, pages 78--85. IEEE Computer Society, May 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. B. Wester, P. M. Chen, and J. Flinn. Operating system support for application-specific speculation. In Proceedings of the sixth conference on Computer systems, EuroSys, pages 229--242. ACM, 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Consistent and efficient output-streams management in optimistic simulation platforms

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      SIGSIM PADS '13: Proceedings of the 1st ACM SIGSIM Conference on Principles of Advanced Discrete Simulation
      May 2013
      426 pages
      ISBN:9781450319201
      DOI:10.1145/2486092

      Copyright © 2013 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 19 May 2013

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article

      Acceptance Rates

      SIGSIM PADS '13 Paper Acceptance Rate29of75submissions,39%Overall Acceptance Rate398of779submissions,51%

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader