Distributed shared memory
DSM is a mechanism that manages memory across
multiple nodes and makes inter-process communications
transparent to end-users. The applications will think that
they are running on shared memory.
DSM is a mechanism of allowing user processes to access
shared data without using inter-process communications.
The distributed shared memory (DSM) implements the
shared memory model in distributed systems but it doesn’t
have physical shared memory. All the nodes share the
virtual address space provided by the shared memory
model. The Data moves between the main memories of
different nodes.
Types of Distributed shared memory
On-Chip Memory:
The data is present in the CPU portion of the chip.
Memory is directly connected to address lines.
On-Chip Memory DSM is expensive and complex.
Bus-Based Multiprocessors:
A set of parallel wires called a bus acts as a
connection between CPU and memory.
accessing of same memory simultaneously by
multiple CPUs is prevented by using some
algorithms
Cache memory is used to reduce network traffic.
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 Distributed
shared memory
Simpler abstraction
Easier portability
locality of data
on-demand data movement
larger memory space
Better Performance .Flexible communication
environment
process migration simplified