






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







[§7.2.5] Certain challenges arise in realizing SAS or message- passing programming models.
Two of these are input-buffer overflow and fetch deadlock.
Input-buffer overflow
Suppose a large number of processors send messages to the same module in rapid succession.
If the module has a fixed buffer size, it may overflow. Something has to be done to prevent this.
When back-pressure reaches the sources, it causes the sources to slow down to the point that the destination module can handle the incoming messages.
Other messages in the system are also delayed.
Lecture 18 Architecture of Parallel Computers 1
0 1 2 3 4 5 6 7 0 4 1 5 2 6 3 7 0 2 4 6 1 3 5 7 0 1 2 3 4 5 6 7
Exch. 1
Exch. 2
Exch. 3
Shuffle Shuffle Shuffle
However, deadlock does not occur in a reliable network.
Then the sender has to try again. Eitherā the destination informs the sender, over a special acknowledgment path, or the source times out (as in Ethernet).
Fetch Deadlock
For a network to remain deadlock free, nodes must continue accepting messages, even when they cannot initiate their own messages.
The incoming transaction may generate a request, which cannot be initiated when the network is full.
What happens if the nodeās internal buffer fills up?
Three approachesā
In either case, responses can be initiated,
Ā© 2003 Edward F. Gehringer CSC/ECE 506 Lecture Notes, Spring 2003 2
The CA at the destination must interpret the transactions and cause the appropriate actions to take place.
Output processing
**- checks
Message
Scalable
Communication
Input processing
**- checks
Node
Key design issues: How much interpretation of the message?
How much dedicated processing in the CA?
If processing is not done in the CA, it must be done in the node.
In order of increasing hardware support and specialization, the options for processing in the CA are these.
None: Physical bit stream
User/system
Remote virtual address
Global physical address
Cache-to-cache
Ā© 2003 Edward F. Gehringer CSC/ECE 506 Lecture Notes, Spring 2003 4
Physical DMA
Most early message-passing machines used designs where no interpretation was placed on the data within a network transaction.
This allows forā
What is the downside?
Memory P
Cmd
Data Dest
Addr Length Rdy
Memory P
DMA channels
Status, interrupt
Addr Length Rdy
° ° °
The communication assist merely deposits the transaction into storage, whereupon it will be interpreted by the processor.
dest addr
sende aut
Lecture 18 Architecture of Parallel Computers 5
Data is forwarded from its source to its destination through intermediate nodes.
The switch āautomaticallyā takes a transaction destined for another node and copies it from the input port to the correct output port.
If the transaction is destined for the local node, the input DMA is activated, and the message is placed in memory.
The vendorās message-passing library had a 150-μs. startup cost. Using an Active Message implementation, von Eicken was able to reduce this toā
User-level messages
What do you think is the biggest overhead in processing messages in the network we have just described?
How can we avoid this overhead?
With user-level access,
How can this be implemented? Remember, the user-level messages need to be written without OS intervention. What kind of instructions should be used?
What does this tell us about where the input and output queues should be?
Lecture 18 Architecture of Parallel Computers 7
Network transactions are initiated by reading and writing the ports, plus checking the status register.
Notice that each message now contains a user/system flag, as shown below.
Virtual address space
Status
Net output port Net input port
Program count er
Registe rs
Proce ssor
Me m P
Data Dest
User/system
Status,interrupt Mem P
° ° °
In this design, communication primitives allow a portion of the process state to be in the network.
If the program is swapped out, the messages destined for its processes need to be swapped out too.
When it resumes, they can be reinserted into the network or the destination input queues.
An example of this architecture is the Thinking Machines CM-5.
In the CM-5, it is possible toā
Ā© 2003 Edward F. Gehringer CSC/ECE 506 Lecture Notes, Spring 2003 8
It can also support a global address space where the CP performs remote reads on behalf of the requesting node.
In this design, the interpretation of messages is not performed in hardware.
User processor and message processor share memory
Message processor <ā> message processor via system network transaction.
Both compute processor and message processor reside on the memory bus.
Alternatively, the message processor can be embedded into the network interface (see Fig. 7.20, p. 498).
The M P provides the compute processor with a very clean abstraction of the network interface.
User processor stores cmd / msg / data into the shared output queue. It must still check for output queue full (or make it elastic).
Communication assists make transaction happen. They do checking, translation, scheduling, transport, interpretation.
This protocol is divided between two layers, as shown below.
Ā© 2003 Edward F. Gehringer CSC/ECE 506 Lecture Notes, Spring 2003 10
NI
M P P
Mem
NI
P M P
Mem
dest
User System
Each network transactions flows through memory, or at least across the memory bus in a cache-to-cache transfer between the compute processor and the message processor.
It crosses the memory bus again between the CP and the network interface.
An example of this is the Intel Paragon architecture (1992).
Two DMA engines can transfer a contiguous block of data between main memory and the NI chip at 400 MB/s.
Small messages of seven words can be transferred between two compute processors in about 10 μs., in three relatively equal steps:
compute proc. ā MP ā MP ā compute proc.
Shared physical address space
In this style, multiple processors share physical memory. However, access latencies may differ to different parts of the memory.
Lecture 18 Architecture of Parallel Computers 11