Title: Tutorial: Observing Distributed Computations through Lattices
1Tutorial Observing Distributed Computations
through Lattices
- Sule Simsek and Dr. McMillin
- September 24, 2009
2Outline
- Background on Distributed Systems
- Visual Examples
- latGenU Program
- Q A
3Background on Distributed Systems
- Event Global vs. Local
- Order on Events (Happens before relation)
- Sequentially related
- a, b on P a ?s b
- Causally related
- b, c on different P b (send), c (receive), b
?c c - Transitivity
- (a ? b and b ? c) then a ? c
- Concurrent
- If (d ? c) and (c ? d) then c // d
4Background on Distributed Systems
- a, b on same P a ?s b
- b, c on different P b (send), c
(receive), b ?c c - (a ? b and b ? c) then a ? c
- If (d ? c) and (c ? d) then c // d
P1 P2 P3
5Background on Distributed Systems
- Vector Time-Stamp a vector of discrete clock
values one from each p (p, process) - Global State G ? P( P, Dist. Computation)
such that (e2?G) ? (e1 ?s e2) ? (e1?G) - Consistent Global State (Cut) CGS ? P
such that (e2?G) ? (e1 ?c e2) ? (e1?G) - Time-Space Diagram modeling P by using partial
order - Lattice Representation all possible CGS of P
6Vector Time Stamp (VTs) Algorithm
- Process Pi
- VTi1..N 0, 0, ..,0, N (3 processes)
- Local Events VTiself
- Global Events
- Send Event VTiself
- Piggyback entire VTi
- Receive Event for j1 to N do
- VTj1..N max(VTj, VTi) (component-wise
maximum) - VTiself
7Background on Distributed Systems
Time-space diagram P1 P2 P3
P1 (100) VT1self P2 (110) max(100,000)
100 VT2self 110 P3 (001)
VT3self P2 (121) max(110,001) 111
VT2self 121
8Background on Distributed Systems
Time-space diagram P1 P2 P3
Distributive Lattice
9Example from The Textbook
P1 P2 P3
Happens-before DAG Execution DAG
10latGenU Program
- How to Download
- How to Extract
- Screen Snapshots
11latGenU Program (with and example)
Produce a Scenario Lattice Generation Post-proce
ssing
12Produce a Scenario
13Lattice Generation
- Gnodes, Consistent Cuts, Concurrent and
Sequential Paths
14Post-Processing the Lattice
- Before and After Snapshots of a lattice
15Questions??
16Homework
- http//web.umr.edu/ff/classes/384/hw2a-sp06.htm
- Due 2/7/2006