GATE / CS ARCHIVE

GATE CSE 2022 / QUESTION 24

GATE CSE 2022 Q24

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

GATE 2022, Q24 1 mark · MSQ
Report issue

Cache Memory

Question 24, GATE 2022: WB and WT are set-associative LRU caches using write-back and write-through respectively. Select FALSE statements: A both need a dirty bit per block; B every WB write hit transfers data to main memory; C WT eviction causes no cache-to-memory transfer; D a WB read miss never evicts a dirty block.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A,B,D

The question asks for false statements. A is false because write-through does not require dirty bits: writes already update memory. B is false because a write-back hit normally only changes the cache and marks the line dirty. C is true: evicting a write-through line needs no extra write-back. D is false because a write-back read miss can evict a dirty victim and consequently write memory. Thus A, B, D.

Dirty means the cached copy differs from memory. A write-back eviction of a clean victim needs no write; a dirty victim must be written before replacement. LRU determines which victim is chosen, not whether it is dirty, so a read operation can indirectly cause a write-back.

Original paper, page 19 · Answer key