Write-back cache
A caching strategy where a write only goes to the cache immediately and is written through to the slower layer later (when the line is evicted or flushed). Fast, but risks data loss on power failure before the data has been written back.
Mechanic: the write is marked "dirty" in the cache and returns immediately; the underlying memory/disk is updated only later. Win: maximum write speed, fewer expensive writes to the backing layer (several writes to the same line are coalesced). Risk: data sitting "dirty" in the cache is lost on crash/power failure → which is why RAID controllers with write-back have battery backup (BBU) and databases have careful flush discipline. It occurs at all levels: CPU cache, RAID controller, disk cache, OS page cache. The opposite is write-through (write immediately, safer but slower). The classic trade-off speed vs safety. Related to write-through and MESI (Modified = a dirty write-back line).