GATE / CS ARCHIVE

GATE CSE 2008 / QUESTION 35

Inclusive multilevel-cache requirements

Computer Organization & Architecture · Cache Memory · Full GATE CSE 2008 paper

GATE 2008, Q35 2 marks · MCQ
Report issue

Cache Memory

Question 35, GATE 2008: Which are necessary for L1/L2 cache inclusion? I: L1 must be write-through. II: L2 must be write-through. III: L2 associativity must exceed L1 associativity. IV: L2 must be at least as large as L1.

(A) IV only
(B) I and IV only
(C) I,II,IV only
(D) I,II,III,IV
Tap to enlarge
Your answer
Answer & solution

Answer: A under full-capacity inclusion convention (no official key was published)

1. For every resident L1 block also to be represented in L2 while L1 can use its full capacity, L2 must be at least as large: IV. Write-back can be compatible with inclusion via appropriate dirty-state and invalidation handling, so I and II are not required.
2. Equal associativity can satisfy inclusion; it need not be strictly greater, so III is false. Hence A under the standard capacity convention.
3. A policy that deliberately underutilizes a larger L1 through back-invalidations could preserve resident-set inclusion with a smaller L2, so IV is not a purely set-theoretic necessity without the full-capacity convention.

Original paper, page 6