26.08.2013 Views

3.1 MB - Evernote

3.1 MB - Evernote

3.1 MB - Evernote

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

13<br />

Fundamental Concepts<br />

cancellation and lazy cancellation can be seen in the following diagram. In this diagram<br />

the event index is describing the scheduled time of the event.<br />

LP1<br />

LP2<br />

LP3<br />

e1<br />

e3<br />

ex<br />

Aggressive cancellation<br />

e2<br />

e4<br />

e2<br />

e3<br />

e4 e4- e4<br />

e4<br />

time<br />

LP1<br />

LP2<br />

LP3<br />

e1<br />

e3<br />

e4<br />

e2<br />

Lazy cancellation<br />

e4<br />

e2<br />

e3<br />

time<br />

ex-<br />

Event for other LP Rollback Anti-event for other LP<br />

Figure 6: Comparison of aggressive and lazy cancellation<br />

As shown in Figure 6 lazy cancellation can reduce cascaded rollbacks but it can also<br />

allow false events to propagate further and therefore lead to longer cascaded rollbacks<br />

when such false events are cancelled.<br />

The concept of Global Virtual Time (GVT) is used to regain memory and to control the<br />

overall global progress of the simulation. The GVT is defined as the minimum of the<br />

local simulation time, also called Local Virtual Time (LVT), of all LPs and of the time<br />

stamps of all events that have been send but not yet processed by the receiving LP [16].<br />

The GVT describes the minimum simulation time any unexecuted event can have at a<br />

particular point in real time. It therefore acts as a guarantee for all executed events with<br />

a time stamp smaller than the GVT, which can now be deleted. Further memory is freed<br />

by removing all state checkpoints with a virtual time less than the GVT except the one<br />

closest to the GVT.<br />

Both conservative and optimistic algorithms have their advantages and disadvantages.<br />

The speedup of conservative algorithms can be limited because only guarantied events<br />

are executed. Compared to conservative algorithm optimistic algorithms can offer grater<br />

exploitation of parallelism [5] and they are less reliant on application specific<br />

information [11] or information about the communication topology. But optimistic<br />

algorithms have the overhead of maintaining rollback information and over-optimistic

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!