Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Assume the following information is gathered about a system:

Only part b

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

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

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

10. What is meant by a feed rate?

Answered: 1 week ago

Question

2. Explain how the role of training is changing.

Answered: 1 week ago

Question

7. General Mills

Answered: 1 week ago