IT lexicon › Infra & Ops › Cache invalidation

Cache invalidation

Infra & Ops På svenska → Updated: 2026-11-16

When the coherence protocol forces a cache to discard old data to ensure all cores see the latest version.

Each processor assumes its cache is correct. In multi-core systems, a coherence protocol must inform other cores when an update happens. An invalidate message tells other cores to throw away their stale value.

This is expensive — it incurs memory latency, bus bandwidth, and cache misses when the next read must go to main RAM. Many lock-free algorithms try to minimize the number of invalidates by updating only sparse, well-separated cache lines. The question "who's buying invalidates?" is a classic performance analysis in parallel programming.

← Back to the lexicon