Docsity

Distrubuted Shared-Memory Architectures - Computer Systems Architecture - Lecture Slides, Slides of Computer Architecture and Organization

Partial preview of the text

Download Distrubuted Shared-Memory Architectures - Computer Systems Architecture - Lecture Slides and more Slides Computer Architecture and Organization in PDF only on Docsity!

Distrubuted Shared-Memory Architectures

Architectures

  • According to Flynn (1972),computers’ parallelism can be categorizied like this:

Computers’ Parallelism

Single

instruction

stream, Single

data stream

(SISD)

Single

instruction

stream, multiple

data stream

(SIMD)

Multiple

instruction

stream, Single

data stream

(MISD)

Multiple

instruction

stream, Multiple

data stream

(MIMD)

Architectures

Centralized(symmetric)-shared memory architecture

Caches can contain either private or shared data. This causes cache chorence problem.

Uniform access time to all memory from all processors

Architectures

To support larger Distributed memory architecture

processor counts

Some processors may be connected by a single bus, but this is less scalable than global interconnection network

Cost effective way to scale the memory Bandwidth (if most of access is to local memory)

But communicating data between processors becomes more complex, has higher latency, at least

Architectures

Distributed-shared memory architecture

The first DSM architectures apperared in the late 1970s and continued

through the early 1980s,embodied in three machines: the Carnegie Mellon

Cm, the IBM RP3, and the BBN Buterfly.

In uniprocessors, the long access time to memory is largely hidden throug the

use of caches. Unfortunately, adapting caches to work in a multiprocessor

enviroment is difficult.

When used in a multiprocessor, caching introduces an additional problem:

cache coherence, which arises when different processors cache and update

values of the same memory location.

Architectures

What is cache coherence?

I will explain this with an example:

Processor: A, B Memory location X

Time Event Cache content in A

Cache content in B

Memory content for X

1 A reads X 1 * 1

2 B reads X 1 1 1

3 A Writes X 0 1 0

Architectures

DSM Architectures which excluding cache coherence:

Protocols for cache coherence:

These systems have caches,shared data are marked as uncacheable and only private

data are kept in the caches.

SW can cache the shared data by copying the data from the shared portion of the

address space to the local private portion of at he address space that is cached.

Coherence controlled by software. Advantage is little HW support.

Snooping Protocol Directory Protocol

Architectures

Snooping Protocol:

In a snooping system, all caches on the bus monitor the bus to determine if they

have a copy of the block of data that is requested on the bus. Every cache has a

copy of the sharing status of every block of physical memory it has.

There are two types of Snooping Protocol:

write-invalidate: the processor that is writing data causes copies in the caches of all other processors in the system to be rendered invalid before it changes its local copy. The local machine does this by sending an invalidation signal over the bus, which causes all of the other caches to check for a copy of the invalidated file. Once the cache copies have been invalidated, the data on the local machine can be updated until another processor requests it.

write-update: the processor that is writing the data broadcasts the new data over the bus (without issuing the invalidation signal). All caches that contain copies of the data are then updated. This scheme differs from write-invalidate in that it does not create only one local copy for writes.

Architectures

The possible messages sent among nodes to maintain coherence, along with source and destination node. (P = requesting processor number, A = requested address, D = data contents.)

Architectures

Example of Directory Protocol

State transition diagram for an

İn dividual cache block in a

directory-based system:

Requests by the local processor

are shown in black and those from

home directory are shown in gray.

Architectures

Example of Directory Protocol (cont’d)

The state of uncached:

Read miss : The requesting processor is

sent the requested data from memory and

the requestor is made the only sharing node.

The state of the block is made shared.

Write miss: The requesting processor

is sent the value and becomes the sharing

node. The block is made exclusive to

indicate that the only valid copy is cached.

Sharers indicates the identity of the owner.

Architectures

Example of Directory Protocol (cont’d)

The state of shared:

Read miss : The requesting processor is

sent the requested data from memory and

The requesting processor is added to the

sharing set.

Write miss: The requesting processor

is sent the value. All processors in the

set Sharers are sent invalidate messages,

and the Sharers set is to contain the

identity of the requesting processor.

The state of the block is made exclusive.

Architectures

Performance of DSM Multiprocessors

In DSM architectures, the memory requests between local and remote

is key to performance.

It affects the bandwidth and the latency seen by requests.

In the performance example we will separate the cache misses

into local and remote requests.

We will also compare the performance changings of the computational

kernels FFT, LU; the applications Barnes and Ocean.

Architectures

Performance of DSM Multiprocessors(cont’d)

The miss rates with these cache sizes are not affected much by changes in processor count, with the exception of Ocean. The rise of miss rate at 64 processors results from these factors: An increase in mapping conflicts in cache that occur when the grid becomes small which leads to a rise in local misses and an increase in the number of the coherence misses, which are all remote.