17
MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator 1 / 18 The Lookahead in a User-Transparent Conservative Parallel Simulator Presentation of the Results of the PhD Dissertation Viliam Solčány Faculty of Informatics and Information Technologies Slovak University of Technology, Bratislava

The Lookahead in a User-Transparent Conservative Parallel Simulator

  • Upload
    brad

  • View
    29

  • Download
    0

Embed Size (px)

DESCRIPTION

The Lookahead in a User-Transparent Conservative Parallel Simulator. Presentation of the Results of the PhD Dissertation. Vil i am Solčány. Faculty of Informatics and Information Technologies Slovak University of Technology, Bratislava. Outline. Motivation. Present S tate. - PowerPoint PPT Presentation

Citation preview

Page 1: The Lookahead in a User-Transparent Conservative Parallel Simulator

MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator

1 / 18

The Lookahead in a User-Transparent Conservative Parallel Simulator

Presentation of the Results

of the PhD Dissertation

Viliam SolčányFaculty of Informatics and Information Technologies

Slovak University of Technology, Bratislava

Page 2: The Lookahead in a User-Transparent Conservative Parallel Simulator

MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator

2 / 18

Outline

• Motivation

• Present State

• Thesis Objectives

• Simulator Design

• Cumulative Timestamp Prediction

• Cumulative Message Pre-Sending

• Experimental Verification and Results

• Conclusions

Page 3: The Lookahead in a User-Transparent Conservative Parallel Simulator

MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator

3 / 18

Motivation

Discrete Event Simulation (DES)

Motivation for Parallel Discrete Event Simulation (PDES)

• Real systems of ever increasing scale and complexity ever increasing demand for high-performance simulation (computational time/memory)

• Interoperability of naturally distributed simulators

• Scientific curiosity: in spite of high degree of parallelism in models they are difficult to simulate in parallel

• Instantaneous state changes (events)

• State trajectory over time

• Event calendar and the sequential simulation algorithm

simtime

stat

e

Page 4: The Lookahead in a User-Transparent Conservative Parallel Simulator

MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator

4 / 18

Present State

c1SM1

SM2

SM3c

8

SM4

Parallel Discrete Event Simulation (PDES)

• Decomposition into submodels (logical processes)

• Submodel structure– sequential local executive– communication via timestamped messages Local TSIM

Local EC

Input links Output linksLocal state

Page 5: The Lookahead in a User-Transparent Conservative Parallel Simulator

MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator

5 / 18

Present State (cont.)

Synchronization

• Unsynchronized local times causality error

• Synchronization methods– numerous approaches, conservative and optimistic– no clear favorite

SM2

SM1 t1

t2message

• The YAWNS method (Yet Another Windowing Network Simulator)– scalable

• Lookahead in YAWNS– message pre-sending – conditional timestamp prediction

SM1

SM2

time window

processed

Page 6: The Lookahead in a User-Transparent Conservative Parallel Simulator

MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator

6 / 18

Present State (cont.)

• Low impact of PDES in general DES, search for reasons– necessity to worry with low level PDES intricacies– ignorance of standard modeling methodologies– different “languages”– ...

Discrepancies between DES and PDES

• Proposed directions– application specific libraries– parallel simulation languages– support for shared state– automatic parallelization

Page 7: The Lookahead in a User-Transparent Conservative Parallel Simulator

MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator

7 / 18

• User-transparent parallel simulator design with support for large scale models

• Experimental verification and performance evaluation

Thesis Objectives

Observations

• Integrating established modeling methodologies into PDES

• Focus on large scale systems scalability

• Importance of the lookahead

Objectives

• Methods for compound submodels, with YAWNS synchronization– cumulative timestamp prediction– cumulative message pre-sending

Page 8: The Lookahead in a User-Transparent Conservative Parallel Simulator

MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator

8 / 18

Simulator Design

The Modeling Approach

• Hierarchical decomposition

• Combined structural and behavioral model description

• Modularity of components, closure under composition

Parallel Execution

• Library of model components

• Components with / without lookahead

• Automatic translation, the user sees just one model• Cooperation between users and PDES experts

Page 9: The Lookahead in a User-Transparent Conservative Parallel Simulator

MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator

9 / 18

Cumulative Timestamp Prediction

Idea

• Components provide– conditional timestamp – delay (timestamp increment)

c1 c2

Submodel SM

)(1 tc 212 )(),(min)( cccSM ttt

• Required – conditional timestamp SM of the submodel

Page 10: The Lookahead in a User-Transparent Conservative Parallel Simulator

MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator

10 / 18

Cumulative Timestamp Prediction (cont.)

General Solution: DeltaSM Algorithm

beginSOL = ;foreach ( c CSM ) c(t) = c(t); Q.insert(c);while ( x Cout such that x SOL ) { c = Q.get_min(); foreach ( x SUCCc ) if ( x(t) > c(t) + x(c(t)) ) { x(t) = c(t) + x(c(t)); Q.sort(x); } SOL = SOL {c};}SM(t) = minc Cout (c(t) );end

• Can compute exact SM or lower bound on it

• Derived from Dijkstra’s shortest path algorithm

• Hierarchical models first transformed using the FHG transform

Page 11: The Lookahead in a User-Transparent Conservative Parallel Simulator

MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator

11 / 18

Cumulative Message Pre-Sending

Idea

e2e1

t1c1 c2

Submodel SM

t2

Internalevents

Internalevents

simtime

e1 e2

t1 t2

• Non-cumulative pre-sending: t2 time units ahead of time

• e2 processed at the same time as e1Cumulative pre-sending: t1+t2 time units ahead of time

Page 12: The Lookahead in a User-Transparent Conservative Parallel Simulator

MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator

12 / 18

Cumulative Message Pre-Sending (cont.)

The Method: Immediate Message Forwarding (IMF)

• Conditions – special component construction with F-events

IMF-capable components– timestamp order of input messages

IMF-enabled components

• Simulation executive support – identification of IMF-enabled components

The IEE algorithm– higher priority of F-events

• Other properties– applicable to hierarchical models– applicable to other synchronization schemes

Page 13: The Lookahead in a User-Transparent Conservative Parallel Simulator

MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator

13 / 18

Experimental Verification and Results

Objectives of the Experiments

• Verification of the simulator design and of the feasibility of developed methods

• Measurement of performance contribution of cumulative lookahead

Experimental Models

• Closed networks of 64 nodes decomposed into 8 submodels• 2 or 4 components within a node• Parameters

– topology (ring, mesh, hypercube, fully connected)– node type (QNet2, QNet4, PHold)– time distribution (const, shifted exp, exp)– time distribution ratio (3 : 7, 7 : 3)– initial arrivals per node (1, 4, 16)– lookahead level (2 non-cumulative, several cumulative)

Page 14: The Lookahead in a User-Transparent Conservative Parallel Simulator

MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator

14 / 18

Experimental Verification and Results (cont.)

Performance Measures

• Average time window size (ATWS)

• Average number of events per window (ANEW)

Results

• Up to 57-fold increase of ATWS

• Performance depends on parameters

Page 15: The Lookahead in a User-Transparent Conservative Parallel Simulator

MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator

15 / 18

Conclusions

Fulfilment of the Objectives

• Cumulative timestamp prediction: – the DeltaSM algorithm– proof of its properties– its complexity analysis– FHG transformation for hierarchical models

• Parallel simulator design – hierarchical model decomposition/composition– user transparency through component re-use– no “logical process” model view– LLG transformation

Page 16: The Lookahead in a User-Transparent Conservative Parallel Simulator

MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator

16 / 18

Conclusions (cont.)

Fulfilment of the Objectives (cont.)

• Cumulative message pre-sending– Immediate message forwarding – conditions for IMF and its applicability – IEE algorithm– cumulative timestamp prediction based on min. delays – applicability to other synchronization methods– IMF in hierarchical models

• Experimental verification and evaluation – verification of the simulator design– verification of the feasibility of cumulative lookahead– measurement of performance contribution

cumulative lookahead can significantly contribute

Page 17: The Lookahead in a User-Transparent Conservative Parallel Simulator

MEMICS 2008 Viliam Solčány: The lookahead in a user-transparent conservative parallel simulator

17 / 18

Conclusions (cont.)

Thesis Contributions Summary

• Theoretical: in-depth study of the issue of cumulative lookahead

• Practical: simulator providing a solution to PDES modeling problems

Possible Future Directions

• Application of cumulative lookahead in more models

• Implementation and evaluation of cumulative lookahead in other synchronization methods

• Analytical evaluation of cumulative lookahead