Parallel and distributed computing lec 6
Parallel and distributed computing lec 6
computing
COMP3139
Agenda
• DSM W orking
• DSM Types
• DSM Advantages
• DSM Algorithms
Distributed Shared Memory
Distributed Shared
Memory (DSM)
• Each node in the system can access this shared memory directly, like
how they would access local memory.
2. Data Access and Consistency: Each processor (or node) can read from
and write to the shared memory.
• When a node requests data from shared memory, the DSM system
determines whether the data is available locally or needs to be fetched
from another node
How DSM Works?
• Page-Bas ed DSM: Memory is divided int o pages, and DSM systems track which node
has the most updated version of a page.
• When a node access es a page not pres ent locally, it is fetched from the node that
holds it.
• Object-Bas ed DSM: Instead of dealing with memory pages, objects or dat a structures
are shared,
• Only the nec essary obj ect or part of memory is fetched and synchronized bet wee n
nodes.
DSM Working
DSM uses different consistency models to maintain data coherence across nodes:
• Strict Consistency: All nodes see every memory write instantaneously, but it can
be slow.
• A set of parallel wires called a bus acts as a connection between CPU and memory.
3. Ring-Based Multiprocessors:
• There is no global centralized memory present
in Ring-based DSM.
• All nodes are connected via a token passing
ring.
• In ring-bases DSM a single address line is
divided into the shared area.
Advantages of DSM
• Scalability:
• Thr ough various consistency models, DSM ensur es that dat a remai ns
coherent across nodes.
• This reduces t he chances of dat a duplication err ors or out dat ed data being
accessed by any node.
• Allows to shar e memory resources mor e eff ectively, which can lead t o
bett er load bal ancing and reduc ed bottlenecks in distribut ed computing
environments.
Advantages of DSM
• It allows only one node to access a shared data at a time and the
whole block containing data item migrates instead of individual item
requested.
• DSM must keep track of location of all copies of data blocks in this.
Full Replication Algorithm: