Tagged articles
3 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Sep 17, 2024 · Fundamentals

Why CPU Memory Access Is Far More Complex Than You Think

The article explains how CPUs read and write memory through a hierarchy of caches, virtual memory translation, and coherence protocols, revealing that the seemingly simple operation actually involves multiple hardware and software layers that programmers must understand to write high‑performance code.

CacheCoherenceMemory Hierarchy
0 likes · 16 min read
Why CPU Memory Access Is Far More Complex Than You Think
Liangxu Linux
Liangxu Linux
Jun 23, 2023 · Fundamentals

Understanding CPU Cache Consistency: MESI Protocol, Performance Tips & Code Examples

Cache consistency spans icache‑dcache synchronization, multi‑CPU cache coherence, and device‑CPU interactions; the article explains the MESI protocol, demonstrates performance impacts with multithreaded code, explores prefetching, false sharing, mapping strategies, and practical tips for writing cache‑aware software.

CPUCacheCoherence
0 likes · 24 min read
Understanding CPU Cache Consistency: MESI Protocol, Performance Tips & Code Examples