sp03 homequiz 6 solutions

Computer Organization and Design: The Hardware/Software Interface

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 University of California, Berkeley College of Engineering Computer Science Division EECS Fall 2001 John Kubiatowicz Homework Quiz (HW #6) November 21, 2001 CS152 Computer Architecture and Engineering This quiz combines two of the problems from homework #6. Good Luck! Your Name: SID Number: Discussion Section: Total:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 [ This page intentionally left blank ]
Background image of page 2
3 Memory Heirarchy This problem combines elements from chapter 7 and 8 problems. You have a 500 MHz processor with 2-levels of cache, 1 level of DRAM, and a DISK for virtual memory. Assume that it has a Harvard architecture (separate instruction and data cache at level 1). Assume that the memory system has the following parameters: Component Hit Time Miss Rate Block Size First-Level Cache 1 cycle 4% Data 1% Instructions 64 bytes Second-Level Cache 20 cycles + 1 cycle/64bits 2% 128 bytes DRAM 100ns+ 25ns/8 bytes 1% 16K bytes TLB 1 cycle 0.1% 16K bytes Finally, assume that the TLB has a fill penalty of 40 cycles.
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Question 1: Assume that the DRAM miss rate refers to a page fault. The DISK parameters are: Drive rotates at 12000RPM, transfer rate 32 MB/second, 10ms average seek time. What is the Miss Penalty for filling a DRAM page? You can treat MB=10 6 bytes and KB=10 3 bytes. Miss penalty = seek time + rotational delay + transfer time = 10ms + 6 3 10 32 10 16 12000 60 5 . x x + = 13 ms Question 2: Write an equation for AMAT data as seen by the processor. You do not have to generate an actual number. This equation should evaluate to a time in ns, so make sure to check units. Hint: using a set of equations with symbolic values is probably the simplest thing to do. AMAT data =L1 hit time+L1 miss rate*(L2 hit time+L2 miss rate*(DRAM hit time+DRAM miss rate*DRAM miss penalty)) + TLB miss rate*TLB miss penalty =2ns + 0.04*(20cycles*2ns/cycle+128/8*2ns/cycle+0.01*(100ns+25ns/8bytes*16KB+0.001*13ms))+0.001*40ns =30.16ns...
View Full Document

This homework help was uploaded on 01/29/2008 for the course CS 152 taught by Professor Kubiatowicz during the Spring '04 term at University of California, Berkeley.

Page1 / 3

sp03 homequiz 6 solutions - Question 1: Assume that the...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online