Lecture5 (Share Memory" According To Connection)
Lecture5 (Share Memory" According To Connection)
Lecture 5
• switching:
1. Circuit (path is allocating for each transmission), (low latency).
2. Packet (data are encapsulating into the packet, transfer independence).
• Control:
1. Centralization.
2. Distributed.
The simplest IN for shared memory systems is the bus. However, the bus may get
saturated if multiple processors are trying to access the shared memory (via the
bus) simultaneously. A typical bus-based design uses caches to solve the bus
contention problem. Other shared memory designs rely on switches for
interconnection.
(m) represents the number of multiple buses used, while (N) represents the
number of processors (memory modules) or input/output of the network.
The simplest switching element that can be used is the 2x2 switching element (SE).
The Figure below illustrates the four possible settings that a SE can assume. These
settings are called straight, exchange, upper-broadcast, and lower-broadcast. In the
straight setting, the upper input is transferred to the upper output, and the lower
input is transferred to the lower output. In the exchange setting the upper input is
transferred to the lower output and the lower input is transferred to the upper
output. In the upper-broadcast setting, the upper input is broadcast to both the
upper and the lower outputs. In the lower-broadcast, the lower input is broadcast to
both the upper and the lower outputs.
Switch model:
1. Have (a) input and (b) output.
Omega connection
• To connect N processing element to N memory, Omega network requires
(N/2) switches at each stage, and 𝒍𝒐𝒈𝟐 𝑵 stages
• So it has [ (N/2) 𝒍𝒐𝒈𝟐 𝑵 ] components.
• Omega MIN requires (𝐥𝐨𝐠 𝑵) clocks to make a connection.
The omega is a simple dynamic network that connects each of the inputs on the left side
to some, but not all, outputs on the right side through a single layer of binary switches
represented by the rectangles. The binary switches can direct the message on the left-side input
to one of two possible outputs on the right side. If we cascade enough single-stage networks
together, they form a completely connected multistage interconnection network (MIN), the
omega MIN connects eight sources to eight destinations.
Both multistage networks (” baseline and omega”,) limit the number of alternate
paths between any source/destination pair. This leads to limited fault tolerance
and network traffic congestion. If the single path between pairs becomes faulty,
that pair cannot communicate. If two pairs attempt to communicate at the same
time along a shared path, one pair must wait for the other. This is called blocking,
and such MINs are called blocking networks. While a network that can handle all
possible connections without blocking like a cross switch network is called a
non-blocking network.
Problem
Hot-spot:
Dead-lock:
Live-Lock: