Tagged articles
cache coherence
21 articles · Page 1 of 1
This article explains the complete CPU memory access process, covering cache hierarchy (L1/L2/L3), write-through vs write-back policies, multi-core cache coherence with MESI protocol, virtual memory translation via MMU, and how memory acts as a cache for disk storage.
CPU architectureMESI protocolMMU
0 likes · 16 min read

The article explains that DMA fundamentally changes data flow in a system by offloading memory transfers from the CPU, introduces cache‑coherency challenges, and requires careful handling of data visibility between CPU, cache, memory, and devices to avoid subtle bugs.
DMALinux DMA APIcache coherence
0 likes · 13 min read

The article demystifies why Java's synchronized keyword can be slower by tracing the full path from CPU cache‑coherence (MESI) through bus and cache locks, volatile, biased and lightweight locks, up to the heavyweight monitor implementation, revealing each layer’s impact on visibility, ordering and atomicity.
ConcurrencyJVMJava
0 likes · 15 min read

CPU caches bridge the speed gap between processors and memory, but cache misses can dramatically degrade performance, especially under high concurrency or big‑data workloads; this article explains cache architecture, common miss causes, diagnostic tools like perf and cachestat, and practical optimization techniques for Linux systems.
CPU cacheMESI protocolcache coherence
0 likes · 44 min read

This article explains how compilers generate load/store instructions, why modern CPUs rely on multi‑level caches instead of direct memory access, the impact of program locality, cache write policies, replacement strategies, and the challenges of cache coherence in multicore systems.
CISCCPUCache
0 likes · 14 min read

Memory barriers act like traffic signals for concurrent threads, enforcing a strict order of memory operations to prevent data races, cache incoherence, and compiler reordering, thereby ensuring program correctness and stability across multi‑core and multi‑processor systems.
CPU orderingLinux kernelMultithreading
0 likes · 37 min read

The article provides a detailed technical overview of the Loongson 3A5000 processor, covering its multi‑core architecture, cache coherence protocol, AXI interconnect, performance specs, and four CPU‑GPU‑display communication modes, while omitting promotional content.
AXI interconnectLoongsoncache coherence
0 likes · 8 min read

This article explains why modern multi‑core CPUs need memory barriers, describes the different kinds of barriers (full, read, write), shows how they are implemented in the Linux kernel and hardware, and illustrates their use in multithreaded and cache‑coherent programming.
CPU architectureConcurrencycache coherence
0 likes · 41 min read

This article explains how CPU caches bridge the speed gap between the processor and main memory, describes cache hierarchy, locality principles, write policies, coherence protocols, and provides concrete C code examples and practical tips such as data alignment and loop restructuring to improve cache hit rates and overall program speed.
CPU cacheMESI protocolPerformance Tuning
0 likes · 30 min read

This article explains the fundamental role of CPU cache in bridging the speed gap between processors and memory, covering cache hierarchy, locality principles, write policies, coherence protocols, and practical code optimizations such as data alignment and loop restructuring to improve performance.
CPU cacheMESI protocolMemory Architecture
0 likes · 31 min read

This article explains Linux CPU cache architecture—from physical and logical cores, through L1/L2/L3 hierarchy and cache‑line basics, to write‑through/write‑back policies and coherence mechanisms—while demonstrating practical analysis with Valgrind and perf tools.
CPU cacheLinuxPerformance Analysis
0 likes · 22 min read

This article explains the purpose of CPU cache memory, the principles of temporal and spatial locality, the multi‑level cache architecture, the MESI cache‑coherence protocol for multi‑core processors, and the optimizations such as store buffers and memory barriers that address performance and consistency challenges.
CPU cachecache coherencememory hierarchy
0 likes · 16 min read

The article explains how modern computers use fast SRAM caches (L1‑L3) inside the CPU with various mapping schemes and the MESI coherence protocol to keep data consistent, while DRAM serves as main memory, and virtual memory with multi‑level page tables and a TLB abstracts physical memory, provides isolation, and enables swapping.
CPU cacheMESI protocolTLB
0 likes · 16 min read

This article explores the fundamentals of CPU cache hierarchy, why caches are needed, how cache inconsistency arises in multicore systems, and the mechanisms—such as cache coherence protocols, MESI, store buffers, invalidate queues, and memory barriers—that ensure correct data ordering and visibility across processors.
CPUConcurrencycache coherence
0 likes · 21 min read

This article explains the structure of modern CPU caches, the principles of cache lines, associativity, and coherence protocols, and demonstrates how these hardware details affect program performance through multiple code examples covering loop stride, matrix traversal, multithreading, and false sharing.
CPU cacheMultithreadingcache coherence
0 likes · 21 min read


21CTODec 2, 2021 · Fundamentals
This article provides a comprehensive overview of CPU caches, covering why they are needed, their classification, placement and lookup mechanisms, replacement and write policies, and coherence protocols such as MESI, illustrating each concept with diagrams and code examples.
CPUCachecache coherence
0 likes · 11 min read

This article explains the motivation behind CPU caches, describes their placement in the memory hierarchy, details cache organization, placement policies, lookup mechanisms, replacement strategies, write handling, and coherence protocols such as MESI, providing a comprehensive overview of cache fundamentals.
CPUCachecache coherence
0 likes · 13 min read

This article explains the purpose of CPU caches, their classification, placement and replacement strategies, write policies, and coherence protocols, providing a comprehensive overview of cache concepts essential for modern computer architecture.
CacheLRUcache coherence
0 likes · 13 min read

This article explains the motivation behind CPU caches, their classification, placement and lookup methods, replacement and write policies, and coherence protocols, providing a comprehensive overview of cache fundamentals for modern computer architectures.
LRUcache coherencememory hierarchy
0 likes · 14 min read

This article explains concurrency fundamentals by examining hardware-level cache coherence, memory barriers, and lock mechanisms, then shows how Go's sync.Mutex and Java's volatile keyword implement these concepts to ensure atomicity, visibility, and ordering across multiple cores.
Concurrencycache coherencehardware
0 likes · 8 min read

This article explains how the volatile keyword provides a lightweight alternative to synchronized by ensuring visibility and ordering without the heavy cost of full locks, covering Java memory model concepts, cache coherence, atomicity limits, and practical usage scenarios.
Javacache coherencevolatile
0 likes · 13 min read
