University of Cincinnati
Efficient Synchronization and Input Queue Optimization in Parallel Discrete Event Simulation
Abstract
dc:descriptionWARPED/WARPED2 is a Time Warp synchronized parallel and distributed simulation kernel that also providesan API for building discrete event simulation models. These kernels are written in C++ and aredeveloped and maintained to support the development and evaluation of optimizations and various alternatesub-algorithms within the Time Warp paradigm. The original WARPED series simulation kernel was developedto support distributed simulation on clusters of single-core compute elements using heavyweight MPIprocesses. As multi-core processing became widespread, the WARPED2 series was developed to efficientlysupport threaded MPI processes on a multi-core cluster. The current public version of the WARPED2 is theversion 1.x series. While the v1.x series of WARPED2 targeted for efficient execution on multi-core processorsand clusters composed of multi-core processors, several of the key design decisions made for someof its data structures, sub-algorithms, and synchronization were made with old technologies that need to berevisited.This thesis explores an evolution of the WARPED2 v1.x series design as the basis for a new WARPED2v2.x series design. The original motivation for the v2.x series design was (i) the integration of read and readwritelocks into the c++ standard and (ii) the belief that a restructuring of the design and implementation ofWARPED2 that focuses on an aggressive use of read locks could substantially improve overall performance.In particular, the major design departures from the v1.x series are: (i) the reorganization of the managerthread into a collection of concurrently executing threads; (ii) the use of a synchronous GVT algorithm; (iii)the introduction of read locks, the use of barrier synchronizations, and the unlocked access of some sharedvariables where safety is provided by access on different sides of barrier boundaries, and (iv) the use ofsynchronous MPI Recv and asynchronous MPI Isend calls.One of the principal motivators for this new WARPED2 v2.x series is the simplification of the LTSF queue so that each worker thread has a one-to-one relation to an LTSF queue, the commitment to a fully synchronous GVT estimation algorithm, and a reliance on barrier synchronization and read-only locks.The thesis will also investigate merging unprocessed and processed queues, and binding the scheduledqueue to a worker thread to enhance efficiency. The switch to a synchronous Global Virtual Time (GVT)estimation algorith that implements a hashing of LP sender and LP receiver names in the Event Classto reduce comparison costs. In addition, the thesis explores: (i) thread synchronization using barriers, (ii)an introduction of a segregated fossil collection thread, and (iii) an implementation of relaxed orderingfor the LTSF Schedule Queue. These enhancements aim to improve performance and scalability in paralleland distributed simulation environments. The integration of processed and unprocessed queues into a unifiedqueue structure allows streamlined event processing, along with binding scheduled queues to worker threadsfor better resource utilization and load balancing with minimal use of locks.This thesis applied a systematic approach to profile the performance of WARPED2. The profiling wasperformed with various tools, including: valgrind, Intel VTune™, and Latency Tracker. The profilingfocused on analyzing locks and the compareEvent module to pinpoint areas of contention and inefficiency.Comparative results between the v1.x series and the v2.x series demonstrate significant performanceimprovements; in particular the results show a 21.49% reduction in Total CPU time and 10% improvementof Simulation time for the WARPED2 Epidemic simulation model. The experiments also shows that modelswith low Event churn rate perform better on the WARPED2 v2.x series.
Degree
thesis:*- Name thesis:degree_name
- MS
- Level thesis:degree_level
- masters
- Discipline thesis:degree_discipline
- Engineering and Applied Science: Computer Science
- Grantor dc:publisher
- University of Cincinnati
- Year dc:date
- 2024
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Shinde, Gaurav Sanjay
- Chair dc:contributor.committeechair
-
- Wilsey, Philip
Subjects
dc:subject × 7Rights
dc:rights- Statement dc:rights
-
- unrestricted
- This thesis or dissertation is protected by copyright: some rights reserved. It is licensed for use under a Creative Commons license. Specific terms and permissions are available from this document's record in the OhioLINK ETD Center.
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://rave.ohiolink.edu/etdc/view?acc_num=ucin1733833441475873