The large diffusion of shared-memory multi-core machines has impacted the way Parallel Discrete Event Simulation (PDES) engines are built. While they were originally conceived as data-partitioned platforms, where each thread is in charge of managing a subset of simulation objects, nowadays the trend is to shift towards share-everything settings. In this scenario, any thread can (in principle) take care of CPU-dispatching pending events bound to whichever simulation object, which helps to fully share the load across the available CPU-cores. Hence, a fundamental aspect to be tackled is to provide an efficient globally-shared pending events’ set from which multiple worker threads can concurrently extract events to be processed, and into which they can concurrently insert new produced events to be processed in the future. To cope with this aspect, we present the design and implementation of a concurrent non-blocking pending events’ set data structure, which can be seen as a variant of a classical calendar queue. Early experimental data collected with a synthetic stress test are reported, showing excellent scalability of our proposal on a machine equipped with 32 CPU-cores.
Dettaglio pubblicazione
2016, SIMUTOOLS'16 Proceedings of the 9th EAI International Conference on Simulation Tools and Techniques, Pages 46-55
A Non-Blocking Priority Queue for the Pending Event Set (04b Atto di convegno in volume)
Marotta Romolo, Ianni Mauro, Pellegrini Alessandro, Quaglia Francesco
ISBN: 978-163190120-1
keywords