Docsity

EECS 570 Final Exam: Interconnection Networks, DeNovo, COMA, Memory Consistency, Schemes and Mind Maps of Network Technologies and TCP/IP

Toggle sidebar
bg1
1/12
EECS 570 Final Exam
Winter 2016
Name: ____________________________________ unique name: _______________
Sign the honor code:
I have neither given nor received aid on this exam nor observed anyone else doing so.
___________________________________
Scores:
#
Points
1
/ 38
2
/ 16
3
/ 8
4
/ 26
5
/ 12
Total
/
NOTES:
• Closed book, closed notes.
• Calculators are allowed, but no PDAs, Portables, Cell phones, etc.
• Don’t spend too much time on any one problem.
• You have about 90 minutes for the exam (avg. 22 minutes per problem).
• There are 12 pages in the exam (including this one). Please ensure you have all pages.
• Be sure to show work and explain what you’ve done when asked to do so.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download EECS 570 Final Exam: Interconnection Networks, DeNovo, COMA, Memory Consistency and more Schemes and Mind Maps Network Technologies and TCP/IP in PDF only on Docsity!

EECS 5 70 Final Exam

Winter 20 16

Name: ____________________________________ unique name: _______________ Sign the honor code: I have neither given nor received aid on this exam nor observed anyone else doing so.


Scores:

# Points

Total /

NOTES:

  • Closed book, closed notes.
  • Calculators are allowed, but no PDAs, Portables, Cell phones, etc.
  • Don’t spend too much time on any one problem.
  • You have about 9 0 minutes for the exam (avg. 22 minutes per problem).
  • There are 12 pages in the exam (including this one). Please ensure you have all pages.
  • Be sure to show work and explain what you’ve done when asked to do so.

1) Interconnection networks [ 38 points] a) Consider a 16-node 2D mesh network that uses X-Y minimal routing. The routers use a conventional 5-stage pipeline (BW, RC, VA, SA, ST) and the link latency is a single cycle. The network’s flit size is 32 bits and the total size of all network messages (including head and tail flits) is 64 bytes. Each router has up to 5 inputs (N, S, E, W, ingress), and 5 outputs (N, S, E, W, egress). Messages must pass through the router pipeline at their ingress and egress nodes. The interconnect is clocked at 1GHz. i) What is the maximum hop count (number of links) a packet must traverse in the network? [3 points] (ii) How many cycles would it take to transfer entire message between source and destination pairs having maximum hop count. [3 points] (iii) How many cycles would it take to send a message between the same sender and receiver pair if the topology of the network was a 2D torus instead of a mesh? [3 points] (iv) What is the bisection bandwidth of the 2D mesh network? [3 points]

d) State one advantage and one disadvantage of a 3D torus topology over a 2D mesh topology. [6 points] e) State one advantage and one disadvantage of each of the following routing implementations. i) Source table routing [4 points] ii) Node table routing [4 points]

2) DeNovo [ 16 points] a) State three advantages of the DeNovo protocol over conventional coherence protocols, such as MESI. [6 points] b) For what purpose do the authors of DeNovo introduce self-invalidations of data? [4 points] c) What performance pathology can arise in DeNovoSync when more than two nodes contend for a test-and-test-and-set lock? How does the DeNovoSync design seek to mitigate the negative effects of this performance pathology? [ 6 points]

4) Memory Consistency [ 26 points] a) Consider the following code executed on four processors. Assume all registers on all cores are initialized to zero. Core 1 Core 2 Core 3 Core 4 ST A = 1 ST B = 1 LD r1 = A LD r3 = A LD r2 = B LD r4 = B Unlike the Sun Relaxed Memory Order consistency model, the IBM Power consistency model does not require store atomicity. Give an example of values for r1, r2, r3, and r4 that can arise under IBM Power consistency that are prohibited under Sun RMO. [4 points] b) Three threads (t1, t2, t3) access two synchronization variables (x,y) and one data variable (d). Assume that initially d=y=z=0. Core 1 Core 2 Core 3 (1) St d = 1 (2) St x = 1 (3) While (Ld x == 0) ; (4) St y = 1 (5) while (Ld y == 0) ; (6) assert (d == 1) Under release consistency, indicate which of the loads and stores (1) – (6) must be annotated as acquires and releases to assure that the assert in line (6) will always be true. [4 points]

c) Consider the following C++ 11 program: int x = 0; // x, and flag are shared by both threads int flag = 0 ; Thread 1 Thread 2 x = 1; flag = 1; while (flag == 0) ; printf (“%d\n”, x); What value(s) does C++11 require this program to print to the standard output? [4 points] d) Conventional high-performance out-of-order processors, such as the MIPS R10K, allow load instructions in the re-order buffer to execute speculatively out of order with respect to one another and with respect to store instructions. Nevertheless, a series of research proposals, (e.g., InvisiFence) have proposed additional hardware mechanisms that improve performance over the MIPS R10K speculation mechanisms. Explain briefly why MIPS R10K’s speculation mechanisms are not sufficient to hide all consistency-related stalls. Include an example of an execution scenario where a MIPS R10K-like mechanism will stall, but InvisiFence-like hardware can eliminate the stall. [ 6 points]

5) Design: Token Coherence [ 12 points] Conventional coherence protocols keep track of read and write permissions explicitly by tracking the state of each block in the coherence directory. Nodes must explicitly communicate with the directory to obtain read or write permission, and the directory guarantees that, when a node has write permission, no other no may read and vice versa. Rather than track coherence permission via an explicit state machine, recent work on Token Coherence proposes that coherence permissions should instead be represented by a set of tokens for every memory address, one token per node in the system. These tokens conceptually originate in memory when a block is invalid, and are never created or destroyed, but instead can be transferred between nodes in the system through coherence-like messages. Tokens are tracked in the cache (much like coherence state) when a cache has a valid copy of a line. The scheme uses these tokens to determine if a node has an exclusive copy of a block or there are possibly multiple shared copies. Propose a design for a token-based coherence system. Be sure to explain: (1) What must a node do to obtain read permission? How does your protocol guarantee that no node may write while some nodes have read permission? (2) What must a node do to obtain write permission? How does your protocol guarantee that there are no readers when a node has write permission? (3) How can your design support two-hop read requests? (4) How does your design ensure that a node that wishes to read or write will eventually get permission to complete its operations (in other words, how do you ensure there are no deadlocks or livelocks)?

(additional space for question 5)