http:^^www.cs.wisc.edu^~markhill^cs752^hw2.html
来自「This data set contains WWW-pages collect」· HTML 代码 · 共 65 行
HTML
65 行
Date: Tue, 05 Nov 1996 00:31:14 GMTServer: NCSA/1.5Content-type: text/htmlLast-modified: Mon, 23 Sep 1996 18:36:51 GMTContent-length: 2697<TITLE>CS/ECE 752 - Homework #2</TITLE><center><h2>CS/ECE 752: Advanced Computer Architecture I<P><P>Prof. Mark D. Hill <P>T.A. Jeff Shabel <P><P>Due: Thurs, Oct. 10<P><P></h2></center>Pertains to Chapter 5 of the text (Hennessy and Patterson, Computer Architecture: A Quantitative Approach, Second Edition, 1996). You should work alone. <B>No late assignments will be accepted.<P>Problem II.1</B><P> <I>(8 points) Using a trace-driven cachesimulator.</I> Use <code>dinero</code> to examine a direct-mapped 16K-byteunified cache with 16-byte blocks (use the default for other cacheoptions) using trace fragment <code>SPEC92/085.gcc.din.Z</code>. For moreinfo, read <code>dinero.man</code> and <code>README</code>. All files arein directory <code>/p/course/cs752-markhill/public/software/dinero</code>. Do not copy the trace file, since it is almost 4MB. You might want to dosome test runs with the first 50K references (-z50K) instead of waitingfor the full simulation. Do not believe these results too much, since youare using only one trace fragment.<BR><DL><DD>(a) What is the miss ratioof the direct-mapped 16K-byte unified cache with 16-byte blocks? What isthe effective access time assuming 5.0 ns to access the cache and a 100.0ns miss penalty?<P> <DD>(b) Use the assumptions of part (a) except changethe block size to 32 bytes. What is the new miss ratio? The larger blocksize could hurt the miss penalty. At what miss penalty will this newcache have the same effective access time as the cache in part (a)? Roundyour answer to the nearest 0.1ns. Ignore cycle-time boundaries.<P><DD>(c) Use the assumptions of part (a) except change the associativity to2-way. What is the new miss ratio? The larger associativity could hurtthe time to access the cache. At what cache access time will this 2-waycache have the same effective access time as the cache in part (a)? Roundyour answer to the nearest 0.1 ns. Ignore cycle-time boundaries.<P><DD>(d) When this trace fragment begins, the true contents of the cache inpart (a) are unknown. What is the maximum relative error in the missratio caused by this lack of knowledge? Explain how you got youranswer.<P> </DL> <P> <B>Problem II.2</B><P> <I>(6 points)</I> H&P problem 5.14.<P> For part (b), plot the miss ratios for both a direct-mapped andfully-associative instruction cache with block size of 32 bytes. Use<code>SPEC92/085.gcc.din.Z</code> as you did in problem #1. Vary the cachesize from 64 bytes to 4K bytes. Plot both sets of data on the same graph. Highlight the point at which the cache stops consistently exhibiting thisbehavior as described in the book.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?