Docsity

SCALABLE ALGORITHMS MESSAGE PASSING, Lecture notes of Parallel Computing and Programming

Partial preview of the text

Download SCALABLE ALGORITHMS MESSAGE PASSING and more Lecture notes Parallel Computing and Programming in PDF only on Docsity!

BCT 2307 - Parallel

and & Distributed

Systems

MOD 5: SCALABLE

ALGORITHMS, MESSAGE

PASSING

MOD 5: SCALABLE ALGORITHMS, MESSAGE PASSING

Learning Objectives

  • (^) Scalable Algorithms
  • (^) Intro: Parallel Processing and Message Passing
  • (^) Basic MPI - the Fundamentals
  • (^) PTP Communication
  • (^) MPI-2 Features Overview, MPI News
  • (^) Parallel Programming Algorithms
  • (^) Collective Communication
  • (^) Manipulating Communicators
  • (^) Derived Datatypes

Development of Computer Technology

  • (^) 1950s: serial processors
  • (^) 1960s: batch processing
  • (^) 1970s: time-sharing
  • (^) 1980s: personal computing
  • (^) 1990s: parallel, network, and distributed processing
  • (^) 2000s: wireless networks and mobile computing?
  • (^) A distributed system is a collection of independent computers that appear to the users of the system as a single computer.
  • (^) Distributed systems are " seamless ": the interfaces among functional units on the network are for the most part invisible to the user. System structure from the physical (a) or logical point of view (b).

A Simple Definition

Two Main Stimuli

  • (^) Technological change
  • (^) User needs

Goals

  • (^) Transparency : hide the fact that its processes and resources are physically distributed across multiple computers. - (^) Access - (^) Location - (^) Migration - (^) Replication - (^) Concurrency - (^) Failure - (^) Persistence
  • (^) Scalability : in three dimensions
    • (^) Size
    • (^) Geographical distance
    • Administrative structure

Scaling Techniques

  • (^) Latency hiding (pipelining and interleaving execution)
  • (^) Distribution (spreading parts across the system)
  • (^) Replication (caching)

Example 1: (Scaling Through Distribution)

URL searching based on hierarchical DNS name space

(partitioned into zones).

DNS name space.

Similar and Related Concepts

  • (^) Distributed
  • (^) Network
  • (^) Parallel
  • (^) Concurrent
  • (^) Decentralized

Schroeder's Definition

  • (^) A list of symptoms of a distributed system
    • (^) Multiple processing elements (PEs)
    • Interconnection hardware
    • (^) PEs fail independently
    • (^) Shared states

Focus 1 (Contโ€™d.)

Enslow's model of distributed systems.

Hardware

  • (^) A single CPU with one control unit.
  • (^) A single CPU with multiple ALUs (arithmetic and logic units).There is only one control unit.
  • (^) Separate specialized functional units, such as one CPU with one floating-point co- processor.
  • (^) Multiprocessors with multiple CPUs but only one single I/O system and one global memory.
  • (^) Multicomputers with multiple CPUs, multiple I/O systems and local memories.

Data

  • (^) Centralized databases with a single copy of both files and directory.
  • (^) Distributed files with a single centralized directory and no local directory.
  • (^) Replicated database with a copy of files and a directory at each site.
  • (^) Partitioned database with a master that keeps a complete duplicate copy of all files.
  • (^) Partitioned database with a master that keeps only a complete directory.
  • Partitioned database with no master file or directory.

Network Systems

  • (^) Performance scales on throughput (transaction response time or number of transactions per second) versus load.
  • (^) Work on burst mode.
  • (^) Suitable for small transaction-oriented programs (collections of small, quick, distributed applets ).
  • (^) Handle uncoordinated processes.