Docsity

Shared Memory vs Message Passing Platforms-Parallel Processing-Lecture Slides, Slides of Parallel Computing and Programming

Toggle sidebar
bg1
1.2
Shared memory vs Message passing
platforms
• There are two primary forms of data exchange between
parallel tasks - accessing a shared data space and
exchanging messages.
• Platforms that provide a shared memory for data sharing
are called multiprocessors. Shared memory can be
Central or DSM.
• Platforms that exchange messaging for sharing data are
called message passing platforms or multicomputers.
• Shared memory platforms have low comm overhead,
can support lower grain levels, while message passing
more suited for coarse grain levels
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Shared Memory vs Message Passing Platforms-Parallel Processing-Lecture Slides and more Slides Parallel Computing and Programming in PDF only on Docsity!

Shared memory vs Message passing

platforms

-^

There are two primary forms of data exchange betweenparallel tasks - accessing a shared data space andexchanging messages.

-^

Platforms that provide a shared memory for data sharingare called multiprocessors. Shared memory can beCentral or DSM.

-^

Platforms that exchange messaging for sharing data arecalled message passing platforms or multicomputers.

-^

Shared memory platforms have low comm overhead,can support lower grain levels, while message passingmore suited for coarse grain levels

docsity.com

Shared-Address-Space Platforms

•^

All the processor see the same address spacefor the shared memory which is accessible toall processors.

-^

Processors interact by modifying data objectsstored in this shared-address-space.

-^

If the time taken by a processor to access anymemory word in the system is identical, theplatform is classified as a uniform memoryaccess (UMA), else

-^

a non-uniform memory access (NUMA)machine.

docsity.com

Quad Pentium SharedMemory MultiprocessorProcessorL2 Cache

Bus interface

L1 cache

Processor

L2 Cache Bus interface

L1 cache

Processor

L2 Cache Bus interface

L1 cache

Processor

L2 Cache Bus interface

L1 cache

Memory controller

Memory

I/O interface

I/O bus

Processor/memorybus

Shared memory

docsity.com

UMA and NUMA Shared-Address-Space Platforms

M

Interconnection Network

Interconnection Network

M M

Interconnection Network

M

M

P C^

M M

(b)

P C P C

P

C C

P P

M M

C

(a)

(c)

P P P

Typical shared-address-space architectures: (a) Uniform-memory access shared-address-spacecomputer; (b) Uniform-memory-access shared-address-space computer with caches and memories;(c) Non-uniform-memory-access shared-address-space computer with local memory only.

M M M

UMA

NUMA

docsity.com

Vector/ Array Data Processors•^

Vector proc:1D-Temporal parallelism usingpipeline Arith unit & Vector chaining– Float add pipe: Comp exp, algn mant, add mant, Normalize

-^

Array proc:1D- Spatial parallelism using ALU-array as SIMD

-^

Systolic Array: combines 2-D spatialparallelism with pipeline (computationalwavefront

docsity.com

Message-Passing Multicomputer

Complete computers connected through aninterconnection network:

Processor

Interconnection

network

Local

Computers

Messages memory

-^

These platforms comprise of a set of processors and theirown (exclusive) memory

-^

Instances of such a view come naturally from non-shared-address-space multicomputers and clustered workstations.Difference (memory bus vs I/O bus to network)??

docsity.com

Networked Computers as a

Computing Platform

-^

A network of computers became a very attractivealternative to expensive supercomputers and parallelcomputer systems for high-performance computing inearly 1990’s.

-^

Several early projects. Notable:–

Berkeley NOW (network of workstations) project.

NASA Beowulf project.

docsity.com

Key advantages:

•^

Very high performance workstations and PCsreadily available at low cost.

-^

The latest processors can easily beincorporated into the system as they becomeavailable.

-^

Existing software can be used or modified.

docsity.com

Cluster Interconnects: LAN vs SAN

-^

Originally fast Ethernet on low cost clusters

-^

Gigabit Ethernet - easy upgrade path

More Specialized/Higher Performance

-^

Myrinet - 2.4 Gbits/sec - disadvantage: single vendor

-^

cLan

-^

SCI (Scalable Coherent Interface)

-^

QNet

-^

Infiniband - may be important as infininband interfacesmay be integrated on next generation PCs

docsity.com

Comparison of Parallel

Architecture

•^

SIMD & MIMD

•^

Shared memory & SMP

-^

DSM

•^

UMA & NUMA

•^

Message passing (memory vs IO )

-^

CLUSTER

•^

LAN & SAN

docsity.com