Tagged articles

Cache Memory

2 articles · Page 1 of 1
Architect's Must-Have
Architect's Must-Have
Sep 15, 2025 · Fundamentals

Why Caches Matter: Unlocking CPU Performance with Memory Hierarchy

This article explains how memory hierarchy and cache design, guided by the principle of locality, reduce the CPU‑memory speed gap, and provides practical guidelines for writing cache‑friendly code to dramatically improve program performance.

Cache MemoryPerformance Optimizationcomputer architecture
0 likes · 14 min read
Why Caches Matter: Unlocking CPU Performance with Memory Hierarchy
Liangxu Linux
Liangxu Linux
Jul 5, 2023 · Fundamentals

Why CPUs Need Cache Memory and How the MESI Protocol Keeps It Consistent

Modern CPUs use multi‑level cache memory to bridge the speed gap with main memory, relying on temporal and spatial locality, and employ the MESI protocol with states M, E, S, I to maintain coherence across cores, while techniques like store buffers and memory barriers mitigate latency and ordering issues.

CPUCache MemoryMemory Consistency
0 likes · 15 min read
Why CPUs Need Cache Memory and How the MESI Protocol Keeps It Consistent