Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume Computer XY has a 4 GB main memory and a direct - mapped ( L 1 ) cache ( there are no other cache

Assume Computer XY has a 4 GB main memory and a direct-mapped (L1) cache (there are no
other cache levels and no secondary or tertiary storage) with a 32B line size. On XY, cache hits take 2
clock cycles, and cache misses take 90 clock cycles. Also on XY, if the CPU had disabled the cache and
went directly to main memory, the main memory access time would be 100 cycles.
(a) If program Z was run on XY and had an overall miss rate of 5%, what would the average overall
memory access time be in terms of CPU clock cycles?Assume Computer XY has a 4 GB main memory and a direct-mapped (L1) cache
(there are no other cache levels and no secondary or tertiary storage) with a 32B line
size. On XY, cache hits take 2 clock cycles, and cache misses take 90 clock cycles. Also
on XY, if the CPU had disabled the cache and went directly to main memory, the main
memory access time would be 100 cycles.
(a) If program Z was run on xY and had an overall miss rate of 5%, what would the
average overall memory access time be in terms of CPU clock cycles?
(b) If Program A was run on XY when XY had a 32KBL1 cache- and A is a program
that has a 2 GB array of (32 bit) integers (and essentially no other use of memory) that
is accessed in a sequential way and thus has high spatial locality of reference, what
would the overall average memory access time be in terms of CPU clock cycles? If the
cache was instead a fully associative cache, what effect would you expect that to have
on memory access time for this scenario? (N.B.: in cache memory discussions K is not
1000, instead it denotes 2???10.)
(c) Recompute, using the scenario in (b) except with the cache disabled, the overall
average memory access time in terms of CPU clock cycles.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 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

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions

Question

Solve each equation. Check the solutions. 4q 4 - 13q 2 + 9 = 0

Answered: 1 week ago

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago