Screen Version
School of Computer Science & Engineering
University of New South Wales

 Advanced Operating Systems 
 COMP9242 2002/S2 
next up previous
Next: Non-Uniform Memory Architecture (NUMA) Up: 10-smp Previous: Cache Consistency

Subsections

Hardware cache coherency


Write-invalidate protocols:
 Ensure that:
Write-update protocols:
 Update all cached copies at the time of a store.

Write-through invalidate protocol

Two versions:

  1. All stores write through the cache.
  2. Cache snoops bus for write cycles and invalidates any copies.
Normal bus arbitration resolves race conditions.

Write-once protocol

Works with write-back caches:

Normal bus arbitration resolves race conditions.

Write-once state diagram:

cc-w1

MESI protocol

Named after initials of states: Modified-Exclusive-Shared-Invalid.

Used in many modern SMP architectures.

Write-invalidate protocols:

Wastes bus cycles if lines cease to be shared.

H/W cache coherency issues


next up previous
Next: Non-Uniform Memory Architecture (NUMA) Up: 10-smp Previous: Cache Consistency
Gernot Heiser 2002-10-11