Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Two computers have the same processor and main memory, but different cache designs. Cache A: 128 sets, 2-way set associative, 32-byte blocks, and it uses

Two computers have the same processor and main memory, but different cache designs.

Cache A: 128 sets, 2-way set associative, 32-byte blocks, and it uses write-through.

Cache B: 256 sets, direct-mapped, 32-byte blocks, and it uses write-back. For both computers the read miss time is 10 times the cache-read hit time. For the write-through cache, writing a 32-bit word (into the cache AND through to main memory) takes 5 times as long as a cache hit. For the write-back cache a write-hit (writing to a word within a block that is in the cache) takes the same time as a read hit. Writing a 32-byte dirty block back to main memory, done when that dirty block is to be replaced with a new block, takes 10 times as long as a cache-read hit. The caches are unified, that is they contain both instructions and data.

A. ) Where can some given block be placed in Cache A?

B.) Cache B has twice as many sets as Cache A, so it has twice as many places to put a given block. True of False? Why?

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 And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions