Tagged articles
66 articles
Page 1 of 1
Deepin Linux
Deepin Linux
Apr 22, 2026 · Fundamentals

Why Page Cache Is the Hidden Engine Behind Linux I/O Performance

The article explains how Linux’s page cache bridges memory and disk, detailing its read/write mechanisms, dirty page handling, pre‑read optimization, kernel parameters, and practical tuning tips for static file serving, databases, and logging, showing why mastering it is essential for performance.

Dirty PagesI/O performanceKernel
0 likes · 30 min read
Why Page Cache Is the Hidden Engine Behind Linux I/O Performance
NiuNiu MaTe
NiuNiu MaTe
Dec 10, 2025 · Operations

How Memory Leaks Sneak Into Your System and How to Stop Them

This article explains why memory leaks act like invisible thieves that gradually fill the RSS space, outlines their four‑step attack process, shows how to spot the tell‑tale signs using process‑level and system‑level metrics, and provides practical emergency and preventive measures to protect your applications.

OOM killerRSSResource Management
0 likes · 17 min read
How Memory Leaks Sneak Into Your System and How to Stop Them
Linux Kernel Journey
Linux Kernel Journey
Nov 10, 2025 · Fundamentals

Multithreaded Parallel Writeback: Vivo’s Exploration of Page Cache Write Acceleration

The article examines Linux's page‑cache writeback mechanism, explains why the single‑threaded writeback path becomes a bottleneck under heavy writes, and details Vivo's multithreaded writeback patches—including inode‑to‑context mapping and sysfs‑controlled thread counts—that achieve up to 2.4 GB/s on XFS and a 22 % speedup on F2FS, while also discussing fragmentation trade‑offs and optimal thread‑to‑allocation‑group ratios.

F2FSFilesystemLinux
0 likes · 8 min read
Multithreaded Parallel Writeback: Vivo’s Exploration of Page Cache Write Acceleration
Architect Chen
Architect Chen
Sep 10, 2025 · Big Data

How Kafka Achieves Million‑Message Throughput: Sequential Writes, Page Cache, Batching & Zero‑Copy

The article explains how Kafka attains high‑throughput performance by using sequential disk writes, leveraging the OS page cache, employing producer and consumer batching with configurable parameters, and utilizing zero‑copy sendfile to minimize CPU and memory overhead, enabling stable million‑message per second rates.

BatchingBig DataHigh Throughput
0 likes · 5 min read
How Kafka Achieves Million‑Message Throughput: Sequential Writes, Page Cache, Batching & Zero‑Copy
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Jul 7, 2025 · Big Data

How Kafka Achieves Billion-Message Throughput: Sequential Disk Writes, Page Cache, and Zero‑Copy

This article explains how Kafka sustains massive traffic by writing logs sequentially to disk, leveraging the operating system’s page cache for fast in‑memory writes, employing zero‑copy techniques like sendfile to avoid user‑space copying, and batching messages to reduce network overhead, thereby delivering high‑throughput, low‑latency streaming.

BatchingHigh ThroughputKafka
0 likes · 4 min read
How Kafka Achieves Billion-Message Throughput: Sequential Disk Writes, Page Cache, and Zero‑Copy
Deepin Linux
Deepin Linux
Jun 10, 2025 · Fundamentals

How Linux Memory Reclamation Works: Zones, Swap, and Compression Explained

This article explains Linux's memory reclamation mechanisms, covering the role of memory as the system's bloodstream, the three reclamation paths (fast, direct, kswapd), zone watermarks, page cache structures, reverse mapping, and how swap and compression are used to keep the system stable under memory pressure.

Memory ManagementSwapmemory reclamation
0 likes · 52 min read
How Linux Memory Reclamation Works: Zones, Swap, and Compression Explained
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Jun 3, 2025 · Big Data

Kafka High-Concurrency Core Design Explained

This article explains how Kafka achieves high concurrency through its distributed broker cluster, partitioned topics, sequential log writes, message compression, asynchronous producer mechanisms, and OS page‑cache techniques, illustrating the combined architectural and performance optimizations that enable massive throughput.

Kafkaasynchronous producerdistributed architecture
0 likes · 4 min read
Kafka High-Concurrency Core Design Explained
Cognitive Technology Team
Cognitive Technology Team
May 21, 2025 · Fundamentals

Understanding Linux Page Cache: Concepts, Workflow, and Optimization

This article explains the Linux Page Cache mechanism, covering its core concepts, read/write workflows, data consistency, optimization strategies, real-world use cases, advanced topics, common misconceptions, and practical tips for improving system performance and resource management.

I/O optimizationLinuxMemory Management
0 likes · 8 min read
Understanding Linux Page Cache: Concepts, Workflow, and Optimization
Linux Kernel Journey
Linux Kernel Journey
Mar 23, 2025 · Fundamentals

Efficient Dynamic Memory Reclamation Techniques in Linux

The article provides an in‑depth technical analysis of Linux’s memory reclamation system, covering zones, watermarks, page flags, LRU lists, the shrink_zone workflow, kswapd, direct reclaim, OOM handling, page‑cache structures, and practical tuning tips for optimal performance.

LRULinuxSwap
0 likes · 97 min read
Efficient Dynamic Memory Reclamation Techniques in Linux
Tencent Cloud Developer
Tencent Cloud Developer
Jan 3, 2025 · Operations

Deep Dive into Linux Kernel Page Cache Xarray: Problem, Analysis, and Optimizations

The article examines a long‑standing hidden bug in the Linux kernel’s page‑cache Xarray that caused occasional data loss with Large Folio support, details its discovery and fix by the TencentOS team, and shows how consolidating multiple tree walks into a single walk in Linux 6.10 reduced latency and improved performance by about ten percent.

Linux kernelbug fixkernel-development
0 likes · 27 min read
Deep Dive into Linux Kernel Page Cache Xarray: Problem, Analysis, and Optimizations
Deepin Linux
Deepin Linux
Nov 1, 2024 · Fundamentals

Will Data Be Lost When a Process Crashes During File Write?

This article examines the conditions under which data may be lost when a Linux process crashes while writing a file, explaining page cache behavior, the roles of stdio versus system calls, dirty page handling, write‑back mechanisms, and strategies such as fflush, fsync, and direct I/O to ensure data integrity.

Linuxdata integrityfile I/O
0 likes · 22 min read
Will Data Be Lost When a Process Crashes During File Write?
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Jun 4, 2024 · Big Data

Why Kafka Can Achieve Million‑Message‑Per‑Second Throughput: Disk Sequential Write, Zero‑Copy, Page Cache, and Memory‑Mapped Files

The article explains how Kafka attains ultra‑high write throughput by leveraging disk sequential writes, zero‑copy data transfer, operating‑system page cache, and memory‑mapped files, detailing each technique’s impact on latency, CPU usage, and overall performance.

Sequential WriteZero Copybig-data
0 likes · 5 min read
Why Kafka Can Achieve Million‑Message‑Per‑Second Throughput: Disk Sequential Write, Zero‑Copy, Page Cache, and Memory‑Mapped Files
Linux Code Review Hub
Linux Code Review Hub
May 17, 2024 · Fundamentals

How Linux Kernel Performs File Readahead: An Illustrated Walkthrough

This article explains the design and implementation of file readahead in the Linux 3.12 kernel, using sequential, random, and multithreaded read scenarios to show how the kernel initializes readahead windows, triggers synchronous and asynchronous prefetches, and updates the page cache.

KernelLinuxfile system
0 likes · 8 min read
How Linux Kernel Performs File Readahead: An Illustrated Walkthrough
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Feb 2, 2024 · Fundamentals

Linux Shared Memory (shmem) Deep Dive: Architecture, Implementation, and Practice

Linux’s shmem subsystem provides hybrid anonymous/file‑backed pages that enable diverse shared‑memory scenarios—parent‑child communication, IPC, tmpfs, Android ashmem, and memfd—by using APIs such as shmem_file_setup, handling page faults through cache and swap mechanisms, and employing a specialized reclamation process to manage memory efficiently.

Linux kernelMemory ManagementVirtual Memory
0 likes · 10 min read
Linux Shared Memory (shmem) Deep Dive: Architecture, Implementation, and Practice
Liangxu Linux
Liangxu Linux
Aug 13, 2023 · Fundamentals

How Zero‑Copy and Async I/O Supercharge Large File Transfers

The article explains why the naïve approach of reading a file into a small user‑space buffer and sending it piece‑by‑piece is inefficient, and how zero‑copy, PageCache, asynchronous I/O and direct I/O can dramatically reduce context switches, memory copies, and CPU usage for high‑throughput file transfers.

Direct I/OPerformance OptimizationZero Copy
0 likes · 12 min read
How Zero‑Copy and Async I/O Supercharge Large File Transfers
Liangxu Linux
Liangxu Linux
Aug 9, 2023 · Fundamentals

How Zero‑Copy and PageCache Supercharge File Transfer Performance

This article explains why a naïve 32 KB‑chunk file transfer incurs excessive context switches and memory copies, and how zero‑copy, PageCache, asynchronous I/O, and direct I/O techniques dramatically reduce overhead and boost throughput for large‑scale data transfers.

Direct I/OPerformance Optimizationasync I/O
0 likes · 11 min read
How Zero‑Copy and PageCache Supercharge File Transfer Performance
Open Source Linux
Open Source Linux
Aug 4, 2023 · Backend Development

Boost File Transfer Speed: Zero‑Copy, PageCache, Async & Direct I/O Explained

This article examines traditional file transfer methods, highlights their performance drawbacks caused by excessive context switches and memory copies, and explains how zero‑copy, PageCache, asynchronous I/O, and direct I/O can dramatically improve throughput and reduce CPU usage in backend systems.

Backend DevelopmentDirect I/OPerformance Optimization
0 likes · 12 min read
Boost File Transfer Speed: Zero‑Copy, PageCache, Async & Direct I/O Explained
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jun 30, 2023 · Fundamentals

Understanding Linux Kernel Folio: From Page to Folio and Its Design Rationale

Linux kernel introduced the struct folio abstraction to replace ad‑hoc compound‑page tricks, giving a clear collection‑oriented representation for power‑of‑two page groups such as THP and HugeTLB, and providing dedicated APIs that eliminate naming confusion, unify reference handling, and make memory‑management code safer and easier to understand.

Linux kernelMemory Managementcompound page
0 likes · 15 min read
Understanding Linux Kernel Folio: From Page to Folio and Its Design Rationale
Tencent Cloud Developer
Tencent Cloud Developer
Jan 9, 2023 · Operations

Linux I/O Optimization: Zero-Copy Techniques

The article explains Linux I/O optimization through zero‑copy techniques—such as mmap + write, sendfile, and splice—detailing memory hierarchy, the benefits of reducing user‑kernel copies, the suitability of async + direct I/O for large file transfers, real‑world uses like Kafka and Nginx, and inherent platform limitations.

DMALinux I/OMMU
0 likes · 32 min read
Linux I/O Optimization: Zero-Copy Techniques
Refining Core Development Skills
Refining Core Development Skills
Nov 13, 2022 · Fundamentals

Understanding JDK NIO File I/O and Linux Kernel Mechanisms: Buffered vs Direct IO, Page Cache, and Dirty Page Management

This article provides a comprehensive analysis of how JDK NIO performs file read and write operations by examining the underlying Linux kernel mechanisms, including the differences between Buffered and Direct IO, the structure and management of the page cache, file readahead algorithms, and the kernel parameters governing dirty page writeback.

Buffered IODirty Page WritebackJDK NIO
0 likes · 78 min read
Understanding JDK NIO File I/O and Linux Kernel Mechanisms: Buffered vs Direct IO, Page Cache, and Dirty Page Management
Coolpad Technology Team
Coolpad Technology Team
Oct 28, 2022 · Fundamentals

Understanding Linux Kernel Readahead: Concepts, Benefits, Drawbacks, and Code Analysis

This article explains the design background, performance benefits, potential drawbacks, synchronous and asynchronous mechanisms, key data structures, operational principles, illustrative examples, and critical code paths of Linux kernel file readahead, providing a comprehensive technical overview for developers and system engineers.

I/O performanceLinuxfile system
0 likes · 15 min read
Understanding Linux Kernel Readahead: Concepts, Benefits, Drawbacks, and Code Analysis
Su San Talks Tech
Su San Talks Tech
Sep 9, 2022 · Fundamentals

How Linux Kernel Handles JDK NIO File I/O: From Page Cache to Direct IO

This article deeply explores the Linux kernel's handling of JDK NIO file reads and writes, detailing the role of page cache, radix trees, buffered versus direct I/O, prefetch algorithms, dirty‑page write‑back mechanisms, and the key sysctl parameters that control performance and data safety.

I/O performanceJavaLinux kernel
0 likes · 80 min read
How Linux Kernel Handles JDK NIO File I/O: From Page Cache to Direct IO
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Aug 28, 2022 · Backend Development

Why Is Kafka So Fast? Uncover the 4 Core Performance Secrets

This article explains the four key techniques—page‑cache usage, sequential disk writes, zero‑copy transfers, and partitioned segment indexing—that enable Kafka to achieve exceptionally high write performance, detailing how each mechanism reduces latency and maximizes throughput.

Backend DevelopmentKafkaPartitioning
0 likes · 5 min read
Why Is Kafka So Fast? Uncover the 4 Core Performance Secrets
IT Services Circle
IT Services Circle
May 27, 2022 · Backend Development

Design Principles of a High‑Performance Message Broker (RocketMQ)

The article explains how to redesign a high‑traffic user‑registration flow by introducing an asynchronous queue layer, detailing the broker architecture, commitlog, consumeQueue, page‑cache, mmap, topic/tag routing, high‑availability strategies, and the role of a nameserver in a RocketMQ‑style system.

Message QueueRocketMQasynchronous processing
0 likes · 26 min read
Design Principles of a High‑Performance Message Broker (RocketMQ)
Architecture Digest
Architecture Digest
Jan 5, 2022 · Fundamentals

Traditional System Call I/O, Read/Write Operations, and High‑Performance Optimizations in Linux

This article explains how Linux implements traditional system‑call I/O using read() and write(), details the data‑copy and context‑switch overhead of read and write operations, describes network and disk I/O, and introduces high‑performance techniques such as zero‑copy, multiplexing, and page‑cache optimizations.

I/OLinuxOperating Systems
0 likes · 12 min read
Traditional System Call I/O, Read/Write Operations, and High‑Performance Optimizations in Linux
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Dec 16, 2021 · Fundamentals

How Traditional System Call I/O Works and How to Optimize It

Traditional Linux I/O relies on read() and write() system calls that involve multiple CPU and DMA copies and context switches, while modern optimizations such as zero‑copy, multiplexing, and page cache techniques reduce copying overhead, and understanding buffered, mmap, and direct I/O reveals their impact on performance.

I/OLinuxpage cache
0 likes · 12 min read
How Traditional System Call I/O Works and How to Optimize It
Programmer DD
Programmer DD
Aug 30, 2021 · Big Data

Why Is Kafka So Fast? Unveiling the Secrets Behind Its High Throughput

This article explains how Kafka achieves remarkable speed and massive throughput by using sequential disk I/O, OS page cache, zero‑copy transfers, partitioned log segments with indexes, batch processing, and efficient compression, making it a cornerstone of modern big‑data pipelines.

Big DataHigh ThroughputKafka
0 likes · 9 min read
Why Is Kafka So Fast? Unveiling the Secrets Behind Its High Throughput
ITPUB
ITPUB
Apr 16, 2021 · Fundamentals

What Really Happens When You Read One Byte? Inside the Linux I/O Stack

This article demystifies the Linux I/O stack by tracing a single‑byte read through system calls, VFS, page cache, filesystem layers, block management and I/O scheduling, revealing when real disk I/O occurs and how much data is actually transferred.

Disk I/OFilesystemI/O Stack
0 likes · 13 min read
What Really Happens When You Read One Byte? Inside the Linux I/O Stack
Refining Core Development Skills
Refining Core Development Skills
Apr 14, 2021 · Fundamentals

Understanding the Linux I/O Stack and File Read Process

This article explains how a seemingly simple read‑of‑one‑byte in user code triggers a complex Linux I/O stack involving the I/O engine, system calls, VFS, page cache, file system implementations, generic block layer and I/O scheduler, and clarifies when actual disk I/O occurs and its granularity.

I/OLinuxOperating System
0 likes · 12 min read
Understanding the Linux I/O Stack and File Read Process
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 31, 2020 · Backend Development

Why Kafka Is Fast: Partition Parallelism, Sequential Disk Writes, Page Cache, Zero‑Copy, Batching and Compression

The article explains how Kafka achieves high throughput by using partition‑level parallelism, sequential disk writes with segment files, extensive use of the OS page cache, zero‑copy data paths, request batching and optional compression, while also discussing the underlying disk I/O principles.

BackendKafkaPartitioning
0 likes · 14 min read
Why Kafka Is Fast: Partition Parallelism, Sequential Disk Writes, Page Cache, Zero‑Copy, Batching and Compression
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Apr 24, 2020 · Fundamentals

Evolution from Radix Tree to XArray in the Linux Kernel

The Linux kernel’s page‑cache indexing migrated from the classic radix‑tree structure—using shift‑based multi‑way nodes, RCU‑protected insert, lookup, and delete operations—to the newer XArray API introduced in 4.20, which retains the radix layout while offering automatic resizing, built‑in locking, richer marking, and a cleaner, safer interface.

Data StructuresLinux kernelRCU
0 likes · 17 min read
Evolution from Radix Tree to XArray in the Linux Kernel
58 Tech
58 Tech
Jul 18, 2019 · Fundamentals

Analyzing Memory-Mapped File Memory Usage and Monitoring in Linux

This article explains how memory-mapped files are used in a search engine, describes the underlying Linux mechanisms such as page cache, multi-level page tables and radix trees, and presents practical methods—including mincore, /proc smaps, pagemap and system commands—to analyze and monitor their memory consumption at both kernel and process levels.

LinuxMemory Mapped FilesMemory analysis
0 likes · 14 min read
Analyzing Memory-Mapped File Memory Usage and Monitoring in Linux
MaGe Linux Operations
MaGe Linux Operations
Jun 4, 2016 · Fundamentals

Why Linux’s Buffer/Cache Isn’t Always Free Memory – A Deep Dive

This article explains how the Linux free command reports memory usage, clarifies the roles of buffer and page cache, shows how to manually drop caches, and reveals scenarios—such as tmpfs, shared memory, and mmap—where cached memory cannot be reclaimed, helping readers achieve a deeper understanding of system memory behavior.

Buffer CacheCachepage cache
0 likes · 14 min read
Why Linux’s Buffer/Cache Isn’t Always Free Memory – A Deep Dive