-
For inclusion to hold between two cache levels L1 and L2 in a multi-level cache hierarchy, which of the following are necessary?
1. L1 must be a write-through cache.
2. L2 must be a write-through cache.
3. The associativity of L2 must be greater than that of L1 .
4. The L2 cache must be at least as large as the L1 cache.
-
- 4 only
- 1 and 4
- 1, 2 and 4
- 1, 2, 3 and 4
- 4 only
Correct Option: B
Because inclusion says the L2 cache should be superset of L1 cache. If “Write through update” is not used (and “write back update” is used) at L1 cache, then the modified data in L1 cache will not be present in L2 cache for some time unless the block on L1 cache is replaced by some other block. Hence “write through update” should be used.