Memory Hierarchy
Which policy, on a write miss, writes directly to the lower level without loading the line into the cache?
- AWrite-allocate
- BWrite-back
- CNo-write-allocate
Show answer and explanation
Answer: C. No-write-allocate
Writing straight to the lower level on a write miss without loading the line is no-write-allocate, commonly paired with write-through. It avoids useless fetches for data that is written once and not read back. Write-allocate instead loads the line and then writes it, which pays off when written data is soon reused, so it is commonly paired with write-back. Write-back governs when hits are propagated to memory, a separate axis from whether a miss loads the line.
- A. Write-allocate loads the line and then writes it.
- B. Write-back concerns when writes reach memory, separate from the miss decision.
- C. Correct. It writes to the lower level without loading the line.