Exploiting Temporal and Spatial Constraints on Distributed Shared - - PowerPoint PPT Presentation

exploiting temporal and spatial constraints on
SMART_READER_LITE
LIVE PREVIEW

Exploiting Temporal and Spatial Constraints on Distributed Shared - - PowerPoint PPT Presentation

Exploiting Temporal and Spatial Constraints on Distributed Shared Objects Richard West, Karsten Schwan, Ivan Tacic & Mustaque Ahamad Georgia Institute of Technology R.West, Georgia Tech (1997) Introduction Distributed applications


slide-1
SLIDE 1

R.West, Georgia Tech (1997)

Exploiting Temporal and Spatial Constraints on Distributed Shared Objects

Richard West, Karsten Schwan, Ivan Tacic & Mustaque Ahamad

Georgia Institute of Technology

slide-2
SLIDE 2

R.West, Georgia Tech (1997)

Introduction

■ Distributed applications with shared state. ■ Existing consistency protocols developed primarily

for scientific applications.

■ Better scalability & concurrency by exploiting

application-level semantics.

■ Problem: How to formulate & use application

semantics to efficiently share state.

slide-3
SLIDE 3

R.West, Georgia Tech (1997)

Approach

■ Aim to support applications exhibiting: ■ Poor and unpredictable locality. ■ Symmetric data access. ■ Dynamic changes in sharing behavior. ■ Data races. ■ Examples: ■ Multimedia video games. ■ Virtual environments. ■ Distributed interactive simulations.

slide-4
SLIDE 4

R.West, Georgia Tech (1997)

Contributions

■ Run-time support to efficiently maintain shared

  • bjects based on application semantics.

■ Development of S-DSO: ■ Semantic Distributed Shared Object System. ■ Support for applications with spatial / ordered

constraints on shared objects.

slide-5
SLIDE 5

R.West, Georgia Tech (1997)

Overview

■ Sample application. ■ Semantics: ■ Definitions. ■ Temporal and spatial consistency. ■ S-DSO overview. ■ Experimental evaluation. ■ Results. ■ Conclusions. ■ Future work.

slide-6
SLIDE 6

R.West, Georgia Tech (1997)

Sample Application

■ Multi-player combat game with shared environment. ■ Derived from distributed interactive simulations. ■ Maneuver team of tanks to known goal in presence

  • f enemies.

■ Exploit user-specified attributes to improve

performance.

slide-7
SLIDE 7

R.West, Georgia Tech (1997)

Video Application

slide-8
SLIDE 8

R.West, Georgia Tech (1997)

Semantics

■ Application-level spatial & temporal semantics. ■ e.g. Exchange state info only when two tanks less

than distance d apart.

■ Lookahead consistency: ■ Ability to predict future times when process groups

must exchange object modifications.

■ Processes synchronize if/when object’s current

state is required.

slide-9
SLIDE 9

R.West, Georgia Tech (1997)

Temporal and Spatial Consistency

■ Temporal ⇒ when changes to shared objects

become visible.

■ Spatial ⇒ which processes should be updated with

changes based on locations in shared space.

■ For any time interval τn processes Pi and Pj only

consistent for those objects needed in interval τn+1

Time [P2,P3,P5] [P2,P4] [P2] Synchronization points. Process P1’s time-line Process group involved in exchange. τ1 τ2 τn τ3

slide-10
SLIDE 10

R.West, Georgia Tech (1997)

S-DSO: Semantic Distributed Shared Object System

■ s_functions: ■ Written by application programmer. ■ Used to dynamically determine:

■ which processes to send updates to when. ■ future synchronization times among process pairs.

■ exchange() function: ■ Internal to S-DSO. ■ Controls synchronous exchange of info. ■ Uses s_function to calculate when and which

processes to send updates.

slide-11
SLIDE 11

R.West, Georgia Tech (1997)

S-DSO Overview

Shared Objects s_func1 s_func2 s_funcn Application Messages to/from remote processes Run-Time System Internal data structures API

slide-12
SLIDE 12

R.West, Georgia Tech (1997)

S-DSO Data Structures

■ Time-ordered list of (exchange-time, process) pairs. ■ Slotted buffer holding future exchanges with remote

processes:

slide-13
SLIDE 13

R.West, Georgia Tech (1997)

Semantic-Based Consistency Protocols

■ Applied to our video game application. ■ BSYNC: ■ broadcast updates after every update and await

replies.

■ concurrent (phased) exchanges every τ time units. ■ MSYNC: ■ Uses lookahead (s_function) ■ Synchronous exchanges based on position of

process’ tanks.

■ MSYNC2 reduces unnecessary exchanges.

slide-14
SLIDE 14

R.West, Georgia Tech (1997)

S-DSO Experimental Evaluation

■ 16 SGI workstations, 10 Mbps ethernet, TCP ■ 2D shared environment (32x24 shared object blocks). ■ One tank per process - one process per processor. ■ Each tank tries to reach goal first. ■ Objects in N,S,E,W direction and range of tank’s

location must be up-to-date.

■ Compare BSYNC, MSYNC against Entry

Consistency.

slide-15
SLIDE 15

R.West, Georgia Tech (1997)

Time per Object Modification vs Number of Processes

slide-16
SLIDE 16

R.West, Georgia Tech (1997)

Number of Message Transfers as a Function of Number of Processes

slide-17
SLIDE 17

R.West, Georgia Tech (1997)

Number of Data Message Transfers vs Number of Processes

slide-18
SLIDE 18

R.West, Georgia Tech (1997)

Experimental Observations 1

■ Entry Consistency exchanges fewer data

messages.

■ Sends control messages to lock managers evenly

distributed across nodes.

■ Suffers from blocking delays due to lock-

acquisition.

■ Lookahead protocols couple synchronization with

data exchanges.

■ Can send unnecessary updates to processes.

slide-19
SLIDE 19

R.West, Georgia Tech (1997)

Experimental Observations 2

■ Lookahead consistency good for large numbers of

fine-grained dynamically shared objects.

■ Efficient s_functions ensure synchronization with

fewer processes at any time.

■ Problem with s_functions is how to avoid

unnecessary exchanges.

slide-20
SLIDE 20

R.West, Georgia Tech (1997)

Conclusions

■ Implemented S(emantic)-DSO. ■ Supports application-specific consistency

protocols.

■ Lookahead consistency can effectively meet needs of

applications with:

■ Dynamic sharing behavior. ■ Data races. ■ Symmetric object accesses. ■ Assume ordered access or spatial relationships on

  • bjects.
slide-21
SLIDE 21

R.West, Georgia Tech (1997)

Future Work

■ Investigate use of graphs to represent relationships

between objects.

■ n-dimensional object spaces: ■ Explicit relationship between object name and

location in space.

■ Irregular object spaces: ■ Use graphs to capture:

■ Spatial relationships between objects. ■ Access-order to objects.

■ Consistency of meta-level graph information.