GATE / CS ARCHIVE

GATE CSE 2021 SET 2 / QUESTION 27

GATE CSE 2021 Set 2 Q27

Computer Organization & Architecture · Cache Memory · Full GATE CSE 2021 Set 2 paper

GATE 2021 Set 2, Q27 2 marks · MCQ
Report issue

Cache Memory

Question 27, GATE 2021: Inclusive two-level cache L1,L2 with L2 larger. S1 read misses in write-through L1 do not cause dirty writebacks to L2. S2 write-allocate must accompany write-through and no-write-allocate must accompany write-back. A only S1; B only S2; C both; D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Write-through propagates each L1 write to the next level, so an evicted L1 line does not need a dirty writeback to L2. S1 is true. Allocation on a write miss is a separate design choice, and the asserted mandatory policy pairing is false. Thus A; conventional write-back/write-allocate and write-through/no-write-allocate combinations already refute S2.

Separate write propagation from write-miss allocation. Write-through specifies when lower memory is updated; write-allocate specifies whether a missing block enters the cache. They are independent policy axes. Inclusion says L1-resident blocks also reside in L2; it does not reverse the normal dirty-state argument for write-through L1.

Original paper, page 68 · Answer key