- 2069 Bhadra · 2 marks
Cache write techniques
Short answer
The two main cache write techniques are write-through and write-back. Write-through updates both cache and main memory on every write, keeping memory current but slow. Write-back updates only the cache and sets a dirty bit; the block is written to memory only when evicted, reducing bus traffic but adding complexity.
Describe the cache write techniques.
When the processor writes to a cached location, the cache and main memory must stay consistent. The two techniques are:
- Write-through: every write updates both the cache and main memory at once. Memory is always current and the design is simple, but writes are slow (memory-speed) and bus traffic is high.
- Write-back (copy-back): a write updates only the cache and sets a dirty bit. The block is written to main memory only when it is replaced. This is faster and gives less bus traffic, but memory may be stale and the hardware is more complex.
A write miss is handled by write-allocate (load the block, then write) or no-write-allocate (write straight to memory).
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Cache memory mapping techniques · Embedded System, chapter 4 · asked 3×
- Cache mapping techniques · Computer Organization and Architecture, chapter 6 · asked 7×
- Cache write policy techniques · Computer Organization and Architecture, chapter 6
- Cache read and direct-mapping demerits · Computer Organization and Architecture, chapter 6