in CO and Architecture
719 views
3 votes
3 votes

Consider the following statements:
S1 : If capacity misses are most common then the designer should increase the cache associatively, in order to provide more flexibility when collision occurs.
S2 : To hold the inclusion, lower level cache will be write through.
Which of the statements are correct?

in CO and Architecture
719 views

1 Answer

2 votes
2 votes

S1 : False

If capacity misses are most common then the designer should increase the cache size.

if conflict misses are most common then the designer should increase the cache associativity.

S2 : True 

When there are multiple levels of cache to hold inclusion(lower level data is the subset of higher level data) we should use Write through policy.

otherwise, inclusion property fails.

3 Comments

Why we can't use WRITE BACK policy in lower level cache ???
1
1
let us say there are two levels of cache L1 and L2

L1 is subset of L2  (inclusion property)

now if we change some data in L1 and if we use write back policy

then updated data will be present in L1  but that doesn't reflect in L2 (we update data in L2  and main memory when there is a need of replacement)

till then L1 is not subset of L2

which is a violation of inclusion property.
0
0
Got it...Thanks
1
1

Related questions