Memory Bandwidth Analysis: Homework 3 Solutions by Chen Zhang, Assignments of Computer Science

The solutions to question 1 and 2 of homework 3, focusing on memory bandwidth analysis. The solutions detail the calculation of average memory bandwidth used for each memory reference in different cases, including read hits, read misses, write hits, and write misses.

Typology: Assignments

Pre 2010

Uploaded on 03/11/2009

koofers-user-0ed
koofers-user-0ed 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
22C:160/55:132 Homework 3 sample solutions
Chen Zhang
Question 1.
(Omitted)Everyone got this question right. Well done!
Question 2.
(a) case memory operation
Read hit 0 read, 0 write
Read miss 2 reads
Write hit 0 read, 1 write
Write miss 2 read, 1 write
So average memory bandwidth used for each memory reference is
75% ·5% ·2 + 25% ·95% ·1 + 25% ·5% ·(2 + 1) = 0.35
Used bandwidth = 0.35·109
109= 35%
(b) case memory operation
any hit 0 read, 0 write
miss and replace clean one 2 reads
miss and replace dirty one 2 reads, 2 writes
So average memory bandwidth used for each memory reference is
5% ·70% ·2 + 5% ·30% ·(2 + 2) = 0.13
Used bandwidth = 0.13·109
109= 13%
1

Partial preview of the text

Download Memory Bandwidth Analysis: Homework 3 Solutions by Chen Zhang and more Assignments Computer Science in PDF only on Docsity!

22C:160/55:132 Homework 3 sample solutions

Chen Zhang

Question 1. (Omitted)Everyone got this question right. Well done!

Question 2.

(a) case memory operation Read hit 0 read, 0 write Read miss 2 reads Write hit 0 read, 1 write Write miss 2 read, 1 write So average memory bandwidth used for each memory reference is

75% · 5% · 2 + 25% · 95% · 1 + 25% · 5% · (2 + 1) = 0. 35

Used bandwidth = 0.^35 ·^10

9 109 = 35% (b) case memory operation any hit 0 read, 0 write miss and replace clean one 2 reads miss and replace dirty one 2 reads, 2 writes So average memory bandwidth used for each memory reference is

5% · 70% · 2 + 5% · 30% · (2 + 2) = 0. 13

Used bandwidth = 0.^13 ·^10

9 109 = 13%