Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 2 (50 points) Assume that we have a multicore system with MSI snooping coherence protocol with two processors, each with its own cache.

Problem 2 (50 points) Assume that we have a multicore system with MSI snooping coherence protocol with twoa) Assuming no other cache activity, fill in the table with correct values of result at both processor'sc) Suppose that on the I S transition, the PrRd/BusRd was replaced with PrRd/BusRdX (ie: When the processor

Problem 2 (50 points) Assume that we have a multicore system with MSI snooping coherence protocol with two processors, each with its own cache. PrRd/- PrWr/- M PrWr/BusRdX PrWr/BusUpgr Requesting core S PrRd/- PrRd/BusRd M BusRdX/Flush) Suppose it following sequence of operations is executed: Memory: result = 7 Pl: read the value of result. - Instruction #1 P2: read the value of result. Instruction #2 P2: result = result + 3. Instruction #3 P1: result = result * 3. Instruction #4 P2: print (result). Instruction #5 BusRd/Flush BusRd/- BusRdX/- BusUpgr/- Receiving cores BusRd/- S BusRdX/- BusUpgr/- a) Assuming no other cache activity, fill in the table with correct values of result at both processor's caches (including coherency state) and in main memory. S(7) indicates shared state with result value of 7. (20 points) Instruction # Initial state, value Instruction #1 Instruction #2 Instruction #3 Instruction #4 Instruction #5 P1 I S(7) P2 Memory 7 7 b) Suppose that the MSI protocol was modified, and that on the M S transition the BusRd/Flush was replaced with BusRd/- (ie: Processors do not flush when observing a BusRd on the bus). Fill in the table with correct values of result at both processor's caches (including coherency state) and in main memory. S(7) indicates shared state with result value of 7. Is there a correctness problem here? (15 points) c) Suppose that on the I S transition, the PrRd/BusRd was replaced with PrRd/BusRdX (ie: When the processor reads a value, it generates a BusRdX transaction instead of a BusRd transaction.) Fill in the table with correct values of result at both processor's caches (including coherency state) and in main memory. S(7) indicates shared state with result value of 7. Is there a correctness problem here, or any other performance problem? What happens if P1 tries to access the result value after instruction# 5? (15 points)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Solutions Step 1 Explanation Solution of the question Lets tackle this step by step a Instruction P1 P2 Memory Initial state value I I 7 Instruction1 S7 I 7 Instruction2 S7 S7 7 Instruction3 M10 S10 1... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Computer Architecture A Quantitative Approach

Authors: John L. Hennessy, David A. Patterson

4th edition

123704901, 978-0123704900

More Books

Students also viewed these Programming questions

Question

What has been your desire for leadership in CVS Health?

Answered: 1 week ago

Question

Question 5) Let n = N and Y Answered: 1 week ago

Answered: 1 week ago

Question

4. Jobe dy -Y 2 et by

Answered: 1 week ago