Week# 12 & 13 (Intro to Distributed Memory)
Week# 12 & 13 (Intro to Distributed Memory)
Week 12 & 13
2
Introduction to Distributed Memory
Advantages of DSM
• Simple Abstraction
• Improved portability of distributed
application programs
• Provides better performance in some
applications
• Large memory space at no extra cost
• Better than message passing systems.
3
Introduction to Distributed Memory
Hardware Architecture
• On chip memory
• Bus based multiprocessor
• Ring based multiprocessor
• Switched multiprocessor
5
Introduction to Distributed Memory
Hardware Architecture
Comparison Table:
Hardware Architecture
• In this CPU portion of
the chip has a address
and data lines that
directly connect to the
memory portion.
• Such chips are used in
cars appliances and
even toys.
7
Introduction to Distributed Memory
8
Introduction to Distributed Memory
9
Introduction to Distributed Memory
10
Introduction to Distributed Memory
11
Introduction to Distributed Memory
12
Introduction to Distributed Memory
15
Design Issues in DSM
16
Introduction to Distributed Memory
17
Introduction to Distributed Memory
Granularity
- False Sharing
- Thrashing
18
Introduction to Distributed Memory
Thrashing
- False Sharing
- Techniques to reduce
thrashing:
- Application controlled lock
- Pin the block to a node for
specific time
- Customize algorithm to
shared data usage pattern
19
Introduction to Distributed Memory
20
Introduction to Distributed Memory
21
Introduction to Distributed Memory
22
Introduction to Distributed Memory
23
Introduction to Distributed Memory
24
Introduction to Distributed Memory
25
Introduction to Distributed Memory
Processor consistency
- Adheres to the PRAM consistency.
- Constraint on memory coherence.
- Order in which the memory operations are seen
by two processors need not be identical, but the
order of writes issued by each processor must
be preserved.
26
Introduction to Distributed Memory
27
Introduction to Distributed Memory
Properties of the weak Consistency
Model
- Access to synchronization variables is sequentially
consistent.
28
Introduction to Distributed Memory
29
Introduction to Distributed Memory
30
Introduction to Distributed Memory
31
Introduction to Distributed Memory
32
Introduction to Distributed Memory
33
Introduction to Distributed Memory
34
Introduction to Distributed Memory
35
Introduction to Distributed Memory
36
Introduction to Distributed Memory
37
Introduction to Distributed Memory
38
Introduction to Distributed Memory
39
Introduction to Distributed Memory
40
Lecture End
41