Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume the following information is gathered about a system: 95% of all main memory accesses are found in the cache. 25% of references to the

Assume the following information is gathered about a system:

95% of all main memory accesses are found in the cache.

25% of references to the cache are writes.

Each cache block is two words, and the whole block is read on any miss.

At any time, 30% of the blocks in the cache have been modified.

The cache uses write allocate on a write miss.

The bus reads or writes a single word at a time (the memory system can not read or write two words at once).

A) Assuming that write-through is used, find the average number of memory accesses per CPU reference to the cache. Note that when updating the block in memory, only the modified word is written to memory, not the entire block. Hint: to find the average memory accesses per request to cache, find the number of accesses to memory on cache hits and cache misses separately. Also, you need to distinguish between read-hits, read-misses, write-hits and write-misses. Consequently, you need to fill out the following table:

image text in transcribed

B) Repeat part a, but assuming the cache uses write-back.

image text in transcribed

hit? Access Type Block dirty? Frequency Memory accesses Vg. of memory accesses Cache Read Write Yes No Read Write No Total

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_2

Step: 3

blur-text-image_3

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

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions