Timewarp Elias Muche.

Slides:



Advertisements
Similar presentations
Virtual Time Virtual Time and Global States of Distributed Systems Friedmann Mattern, 1989 The Model: An asynchronous distributed system = a set of processes.
Advertisements

Parallel Discrete Event Simulation Richard Fujimoto Communications of the ACM, Oct
Time Management in the High Level Architecture Roger McFarlane School of Computer Science McGill University Montréal, Québec CANADA 19 March 2003.
More on Processes Chapter 3. Process image _the physical representation of a process in the OS _an address space consisting of code, data and stack segments.
Parallel Processing & Parallel Algorithm May 8, 2003 B4 Yuuki Horita.
Virtual Time “Virtual Time and Global States of Distributed Systems” Friedmann Mattern, 1989 The Model: An asynchronous distributed system = a set of processes.
Parallel and Distributed Simulation Global Virtual Time - Part 2.
Time Warp: Global Control Distributed Snapshots and Fossil Collection.
Uncoordinated Checkpointing The Global State Recording Algorithm.
Parallel and Distributed Simulation Time Warp: Basic Algorithm.
Parallel and Distributed Simulation Lookahead Deadlock Detection & Recovery.
Lookahead. Outline Null message algorithm: The Time Creep Problem Lookahead –What is it and why is it important? –Writing simulations to maximize lookahead.
Synchronization Chapter clock synchronization * 5.2 logical clocks * 5.3 global state * 5.4 election algorithm * 5.5 mutual exclusion * 5.6 distributed.
Parallel and Distributed Simulation Time Warp: Other Mechanisms.
1 Chapter 3. Synchronization. STEMPusan National University STEM-PNU 2 Synchronization in Distributed Systems Synchronization in a single machine Same.
Time Management in the High Level Architecture. Outline Overview of time management services Time constrained and time regulating federates Related object.
Parallel and Distributed Simulation Time Warp: State Saving.
Computer Systems/Operating Systems - Class 8
Virtual Synchrony Jared Cantwell. Review Multicast Causal and total ordering Consistent Cuts Synchronized clocks Impossibility of consensus Distributed.
Ordering and Consistent Cuts Presented By Biswanath Panda.
Computer Science Lecture 12, page 1 CS677: Distributed OS Last Class Distributed Snapshots –Termination detection Election algorithms –Bully –Ring.
Institut für Datentechnik und Kommunikationetze Analysis of Shared Coprocessor Accesses in MPSoCs Overview Bologna, Simon Schliecker Matthias.
Multiprocessors Andreas Klappenecker CPSC321 Computer Architecture.
Concurrency: Mutual Exclusion, Synchronization, Deadlock, and Starvation in Representative Operating Systems.
Session - 14 CONCURRENCY CONTROL CONCURRENCY TECHNIQUES Matakuliah: M0184 / Pengolahan Data Distribusi Tahun: 2005 Versi:
CS603 Process Synchronization February 11, Synchronization: Basics Problem: Shared Resources –Generally data –But could be others Approaches: –Model.
Clock Synchronization and algorithm
Lecture 12 Synchronization. EECE 411: Design of Distributed Software Applications Summary so far … A distributed system is: a collection of independent.
Distributed process management: Distributed deadlock
Pipelining By Toan Nguyen.
Time Warp OS1 Time Warp Operating System Presenter: Munehiro Fukuda.
CIS 720 Distributed algorithms. “Paint on the forehead” problem Each of you can see other’s forehead but not your own. I announce “some of you have paint.
Hardware Supported Time Synchronization in Multi-Core Architectures 林孟諭 Dept. of Electrical Engineering National Cheng Kung University Tainan, Taiwan,
Parallel and Distributed Simulation Hardware Platforms Simulation Fundamentals.
S.Ducasse Stéphane Ducasse 1 Processes and Concurrency in VW.
Time Warp State Saving and Simultaneous Events. Outline State Saving Techniques –Copy State Saving –Infrequent State Saving –Incremental State Saving.
Advanced Computer Networks Topic 2: Characterization of Distributed Systems.
Event Ordering Greg Bilodeau CS 5204 November 3, 2009.
Distributed Virtual Environment and Simulation Package Stephen Lawrence
Real-Time & MultiMedia Lab Synchronization Distributed System Jin-Seung,KIM.
System Components ● There are three main protected modules of the System  The Hardware Abstraction Layer ● A virtual machine to configure all devices.
DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S
High Level Architecture Time Management. Time management is a difficult subject There is no real time management in DIS (usually); things happen as packets.
Fault tolerance and related issues in distributed computing Shmuel Zaks GSSI - Feb
(1) SIMICS Overview. (2) SIMICS – A Full System Simulator Models disks, runs unaltered OSs etc. Accuracy is high (e.g., pollution effects factored in)
COMP 655: Distributed/Operating Systems Summer 2011 Dr. Chunbo Chu Week 6: Synchronyzation 3/5/20161 Distributed Systems - COMP 655.
Distributed Mutual Exclusion Synchronization in Distributed Systems Synchronization in distributed systems are often more difficult compared to synchronization.
Efficient Algorithms for Distributed Snapshots and Global Virtual Time Approximation Author: Friedermann Mattern Presented By: Shruthi Koundinya.
Clock Synchronization (Time Management) Deadlock Avoidance Using Null Messages.
Parallel and Distributed Simulation Deadlock Detection & Recovery: Performance Barrier Mechanisms.
CS3771 Today: Distributed Coordination  Previous class: Distributed File Systems Issues: Naming Strategies: Absolute Names, Mount Points (logical connection.
Parallel and Distributed Simulation Deadlock Detection & Recovery.
Distributed Systems Lecture 6 Global states and snapshots 1.
PDES Introduction The Time Warp Mechanism
Global state and snapshot
Prepared by Ertuğrul Kuzan
Parallel and Distributed Simulation
Topics Covered What is Real Time Operating System (RTOS)
“Language Mechanism for Synchronization”
Advanced Topics in Concurrency and Reactive Programming: Asynchronous Programming Majeed Kassis.
Global state and snapshot
Parallel and Distributed Simulation Techniques
PDES: Time Warp Mechanism Computing Global Virtual Time
CPSC 531: System Modeling and Simulation
Outline Distributed Mutual Exclusion Distributed Deadlock Detection
Chapter 15 : Concurrency Control
Parallel and Distributed Simulation
COP 4600 Operating Systems Fall 2010
CSE 542: Operating Systems
Parallel Exact Stochastic Simulation in Biochemical Systems
Presentation transcript:

Timewarp Elias Muche

What It Is An implementation of virtual time Imaginary Time Imaginary Ticking One dimensional Used to organize and synchronize distributed systems Analogous to virtual memory in operating systems

Major Applications Used to organize and synchronize distributed systems Distributed discrete event simulation Imposes a temporal coordinate system on distributed systems Concurrency control mechanism for databases

Distributed Discrete Event Simulation Every process represents a simulation object Virtual time identified by simulation time Processes schedule events by passing messages

Database Concurrency Virtual time derived by real time Data(tables, records) treated as processes that respond to read/write messages Each transaction must be completed in a band virtual time Must not overlap with other transactions’ bands High order bits of transaction’s virtual time used to calculate real time initiation Middle order bits used to break ties

Virtual Time Systems Each primitive action has virtual time and virtual space Messages use stamps Sender name Virtual send time Receiver name Virtual receive time Virtual send time must be smaller than the virtual receive time Virtual Receive time of each event must be smaller than the virtual time of next event for the same process

Timewarp Mechanism Some processes allowed to use virtual clocks Others allowed to fall behind Messages can be received out of order This means a process shouldn’t wait for the “next” message Uses timestamps, virtual receive time for ordering

Timewarp Mechanism Continued Local Control Mechansim Each process has its own virtual clock variable The clock changes value in between events Process “terminates” when input queue is empty

Timewarp Mechanism Continued Global control mechanism Manages space, flow control, I/O Global virtual time All virtual times at time r All virtual send times of sent messages(non-processed)

Implementations: Rollback Handles fault tolerance Look ahead rollback Each process executes normally If process causes synchronization conflict, rolls back to pre-conflict point in time Process then executes along revised path

Performance

Performance Cont.

Summary Timewarp used to synchronize distributed systems Uses virtual time and space coordinates Lookahead rollback is a common implementation Timewarp consists of local and global mechanisms Performance: Number of rollbacks increase as number of processors increase Execution time decreases as number of processors increase

Questions?