Tagged articles
105 articles
Page 1 of 2
Deepin Linux
Deepin Linux
May 4, 2026 · Fundamentals

Deep Dive into Linux VMA: Core Mechanisms of Virtual Memory Areas

Linux’s Virtual Memory Area (VMA) is the kernel’s core structure for managing a process’s address space, and this article explains its definition, key fields, linked‑list and red‑black‑tree organization, allocation, protection, page‑fault handling, copy‑on‑write, and practical usage examples.

Copy-on-WriteLinuxVMA
0 likes · 26 min read
Deep Dive into Linux VMA: Core Mechanisms of Virtual Memory Areas
Shuge Unlimited
Shuge Unlimited
Apr 29, 2026 · Databases

Milvus Storage Tuning in Practice: 25× Query Speedup and Three Tricks to Cut Memory Usage by Half

This article walks through Milvus 2.3‑2.6.x storage optimizations—Mmap, tiered storage, and clustering compaction—explaining their principles, configuration hierarchy, benchmark results, and concrete deployment templates that together can boost query performance up to 25‑fold while halving memory consumption.

MilvusStorage Optimizationclustering compaction
0 likes · 24 min read
Milvus Storage Tuning in Practice: 25× Query Speedup and Three Tricks to Cut Memory Usage by Half
Data STUDIO
Data STUDIO
Mar 20, 2026 · Fundamentals

Save Up to 80% Memory in Python with 5 Built‑In Tricks

The article shows how to diagnose and dramatically cut Python’s memory usage by using built‑in tools such as sys.getsizeof, psutil, __slots__, generator expressions, memory‑mapped files (mmap) and string interning, providing concrete code examples, benchmarks and practical tips to avoid common pitfalls.

Memory OptimizationPythonString Interning
0 likes · 15 min read
Save Up to 80% Memory in Python with 5 Built‑In Tricks
Deepin Linux
Deepin Linux
Feb 13, 2026 · Fundamentals

Unlocking Linux Performance: How mmap Bridges Memory and I/O

This article explains the fundamentals of Linux memory mapping (mmap), covering its API, parameters, shared vs. private modes, kernel internals, page‑fault handling, performance benefits, zero‑copy I/O techniques, practical code examples, and common pitfalls for developers.

Page Faultmemory mappingmmap
0 likes · 57 min read
Unlocking Linux Performance: How mmap Bridges Memory and I/O
Deepin Linux
Deepin Linux
Jan 25, 2026 · Fundamentals

Why mmap Outperforms io_uring in Real-World I/O – A Deep Linux Memory‑Mapping Guide

mmap, the classic Linux memory‑mapping technique, often surpasses the modern async io_uring in various I/O scenarios by eliminating redundant data copies, reducing system calls, and enabling zero‑copy access, while the article explains its fundamentals, workflow, performance comparisons, practical usage, pitfalls, and code examples.

LinuxZero Copyio_uring
0 likes · 44 min read
Why mmap Outperforms io_uring in Real-World I/O – A Deep Linux Memory‑Mapping Guide
Linux Tech Enthusiast
Linux Tech Enthusiast
Jan 12, 2026 · Fundamentals

Why Zero‑Copy Is Critical for High‑Performance I/O on Linux

The article explains how Direct Memory Access (DMA) eliminates CPU‑bound data copies, compares traditional I/O with zero‑copy techniques such as mmap and sendfile, and shows how reducing system calls and context switches can double file‑transfer throughput while highlighting the limits of kernel cache for large files.

DMALinux I/OZero Copy
0 likes · 15 min read
Why Zero‑Copy Is Critical for High‑Performance I/O on Linux
Deepin Linux
Deepin Linux
Sep 23, 2025 · Fundamentals

Mastering Linux Memory Allocation: When to Use brk vs mmap

This article explains the low‑level mechanisms of brk and mmap in Linux, compares their characteristics, shows why malloc selects one over the other based on allocation size, and provides practical code examples, performance tips, and common pitfalls for developers.

LinuxMemory ManagementSystem Calls
0 likes · 29 min read
Mastering Linux Memory Allocation: When to Use brk vs mmap
IT Services Circle
IT Services Circle
Aug 28, 2025 · Fundamentals

How mmap Lets You Treat Disk Files Like Memory – Benefits and Pitfalls

mmap maps a file directly into a process’s address space, allowing programmers to read and write disk data as if it were memory, eliminating extra system calls and copies, while introducing complexities like page faults, address‑space limits, and performance trade‑offs that must be evaluated per workload.

File I/OVirtual Memorymemory mapping
0 likes · 11 min read
How mmap Lets You Treat Disk Files Like Memory – Benefits and Pitfalls
Liangxu Linux
Liangxu Linux
Jul 26, 2025 · Fundamentals

How mmap Supercharges File I/O by Cutting System Calls and Data Copies

mmap maps files directly into a process’s virtual memory, eliminating the double‑copy between kernel and user space and reducing costly read/write system calls, which boosts I/O performance, simplifies code, but requires careful handling of address space limits, page faults, and concurrency.

I/O performanceSystem CallsZero Copy
0 likes · 8 min read
How mmap Supercharges File I/O by Cutting System Calls and Data Copies
Deepin Linux
Deepin Linux
Jul 7, 2025 · Fundamentals

What Happens to mmap-Mapped Files When a Program Crashes? A Deep Dive into Linux Memory Mapping

This article explains the fundamentals of the mmap system call, its internal working mechanism, zero‑copy I/O model, advantages, typical use cases, and detailed usage guidelines—including function prototypes, parameter meanings, mapping steps, and sample code—while also exploring how mmap‑mapped files behave during program crashes.

File I/OLinuxSystem Programming
0 likes · 29 min read
What Happens to mmap-Mapped Files When a Program Crashes? A Deep Dive into Linux Memory Mapping
IT Services Circle
IT Services Circle
Jun 8, 2025 · Information Security

Why mmap Shared Memory Is More Dangerous Than malloc – Risks Explained

mmap shared memory lets multiple processes access the same physical memory, which can break process isolation, expose permission misconfigurations like PROT_EXEC, and cause cross‑process crashes or code‑injection attacks, making it far riskier than heap allocations with malloc that remain confined to a single process.

C Programmingmallocmmap
0 likes · 5 min read
Why mmap Shared Memory Is More Dangerous Than malloc – Risks Explained
Deepin Linux
Deepin Linux
Jun 6, 2025 · Fundamentals

Unlocking Linux Memory Management: From malloc to Buddy Allocation

This comprehensive guide explores Linux's memory management ecosystem, detailing user‑space allocators like malloc, kernel‑space mechanisms such as kmalloc, vmalloc, and mmap, and core kernel algorithms including the Buddy system, CMA, slab allocator, and memory pools, while providing code examples and practical usage tips.

Buddy AlgorithmLinuxMemory Management
0 likes · 60 min read
Unlocking Linux Memory Management: From malloc to Buddy Allocation
IT Services Circle
IT Services Circle
May 13, 2025 · Fundamentals

Understanding mmap: How Memory Mapping Improves I/O Performance

This article explains how mmap maps files into a process's virtual memory to eliminate double data copies and reduce system‑call overhead, offering performance gains, a simpler programming model, and discusses its limitations such as address‑space constraints and page‑fault latency.

I/O performanceLinuxSystem Calls
0 likes · 8 min read
Understanding mmap: How Memory Mapping Improves I/O Performance
Liangxu Linux
Liangxu Linux
Mar 13, 2025 · Fundamentals

How Zero‑Copy Techniques Supercharge Network I/O Performance

This article explains why traditional I/O interfaces rely on data copying, demonstrates the hidden overhead of read/write in a network server, and introduces zero‑copy methods such as mmap, sendfile, DMA Gather Copy, and splice to dramatically reduce copies and context switches for faster I/O.

IO optimizationLinuxZero Copy
0 likes · 12 min read
How Zero‑Copy Techniques Supercharge Network I/O Performance
Deepin Linux
Deepin Linux
Feb 27, 2025 · Fundamentals

Understanding malloc and free: Memory Allocation Mechanisms in C

This article explains how the C functions malloc and free allocate and release memory, covering stack vs heap, the brk and mmap system calls, fragmentation, header metadata, and why both allocation strategies are needed for efficient memory management.

C ProgrammingFreeHeap
0 likes · 17 min read
Understanding malloc and free: Memory Allocation Mechanisms in C
Deepin Linux
Deepin Linux
Jan 23, 2025 · Backend Development

Zero‑Copy Techniques in Linux: sendfile, mmap, splice and tee

This article explains the concept of zero‑copy in Linux, compares the four main system calls—sendfile, mmap, splice and tee—describes their APIs, internal mechanisms, performance characteristics, typical use‑cases and provides practical code examples for high‑performance network programming.

LinuxTEEmmap
0 likes · 37 min read
Zero‑Copy Techniques in Linux: sendfile, mmap, splice and tee
Deepin Linux
Deepin Linux
Dec 17, 2024 · Fundamentals

Efficient Memory Sharing with mmap and Zero‑Copy Techniques

This article explains how mmap and zero‑copy mechanisms, combined with DMA and shared‑memory APIs, can dramatically reduce CPU involvement, context switches, and data copies during file and network I/O, thereby improving system performance for high‑throughput applications.

DMAmmapperformance optimization
0 likes · 33 min read
Efficient Memory Sharing with mmap and Zero‑Copy Techniques
Deepin Linux
Deepin Linux
Dec 12, 2024 · Backend Development

Understanding Zero‑Copy Architecture: Concepts, Techniques, and Applications

Zero‑copy eliminates CPU‑mediated data copies between user and kernel spaces by using DMA and memory‑mapping, dramatically improving I/O performance, reducing context switches, and enabling high‑throughput applications such as file servers, Kafka brokers, and Java networking frameworks.

DMAI/O optimizationLinux
0 likes · 28 min read
Understanding Zero‑Copy Architecture: Concepts, Techniques, and Applications
Liangxu Linux
Liangxu Linux
Dec 9, 2024 · Fundamentals

Master Linux Zero‑Copy: Sendfile, Splice, mmap+write, and tee Explained

This article explains how Linux zero‑copy techniques—DMA, sendfile, splice, mmap + write, and tee—reduce CPU involvement in large file and network transfers by moving data directly within kernel space, detailing their workflows, code examples, performance trade‑offs, and suitable use cases.

DMALinuxSystem Programming
0 likes · 20 min read
Master Linux Zero‑Copy: Sendfile, Splice, mmap+write, and tee Explained
Linux Kernel Journey
Linux Kernel Journey
Dec 8, 2024 · Fundamentals

Linux Kernel Source Analysis: Understanding Heap Memory Management

This article explains how the Linux kernel implements heap memory management, covering the heap data structure, the mm_struct fields start_brk and brk, the brk/sbrk and malloc/free allocation methods, the brk and mmap system calls, and the internal glibc structures heap_info and malloc_state that track heap state.

Heap MemoryLinuxbrk
0 likes · 17 min read
Linux Kernel Source Analysis: Understanding Heap Memory Management
ITPUB
ITPUB
Dec 1, 2024 · Fundamentals

Why Does Kafka Outperform RocketMQ? The Role of Zero‑Copy Techniques

The article explains how Kafka’s use of sendfile zero‑copy gives it higher throughput than RocketMQ, which relies on mmap, and discusses the trade‑offs between performance and feature richness when choosing between the two message‑queue systems.

Message QueueRocketMQZero Copy
0 likes · 9 min read
Why Does Kafka Outperform RocketMQ? The Role of Zero‑Copy Techniques
Su San Talks Tech
Su San Talks Tech
Sep 2, 2024 · Fundamentals

Why Zero-Copy Supercharges RocketMQ & Kafka: mmap, sendfile, DMA

Zero‑copy techniques such as mmap + write, sendfile, and sendfile + DMA scatter/gather reduce CPU‑memory copies and context switches compared with traditional read/write IO, improving performance for high‑throughput systems like RocketMQ and Kafka, while explaining user‑kernel mode, DMA, and their trade‑offs.

DMAIO performanceLinux
0 likes · 11 min read
Why Zero-Copy Supercharges RocketMQ & Kafka: mmap, sendfile, DMA
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 5, 2024 · Databases

Evaluating the Use of mmap in Prometheus TSDB: Advantages, Disadvantages, and Performance Implications

This article examines mmap's historical origins, its performance benefits and drawbacks, and analyzes how Prometheus' time‑series database employs memory‑mapped files, revealing why mmap does not degrade Prometheus performance despite known kernel‑level issues such as TLB misses and lock contention.

LinuxPrometheusTSDB
0 likes · 26 min read
Evaluating the Use of mmap in Prometheus TSDB: Advantages, Disadvantages, and Performance Implications
Su San Talks Tech
Su San Talks Tech
Mar 19, 2024 · Backend Development

Cut Page Load Time from 5 s to <1 s: Java IO, NIO, mmap & Zero‑Copy Tricks

This article explains why a Java page took five seconds to load, identifies three bottlenecks involving large BLOB fields and file I/O, and walks through four optimization steps—including lazy loading, buffered streams, memory‑mapped files, and sendFile zero‑copy—that reduce the load time to under one second.

IO performancebuffered streamsjava
0 likes · 17 min read
Cut Page Load Time from 5 s to <1 s: Java IO, NIO, mmap & Zero‑Copy Tricks
Deepin Linux
Deepin Linux
Mar 7, 2024 · Fundamentals

Understanding Linux mmap: Memory Mapping, Shared Memory, and IPC Mechanisms

This article explains Linux's mmap mechanism, its relationship with shared memory, the advantages and disadvantages of mmap versus traditional shared memory, and provides practical code examples and detailed steps for using mmap in interprocess communication and large‑file handling.

IPCLinuxVirtual Memory
0 likes · 19 min read
Understanding Linux mmap: Memory Mapping, Shared Memory, and IPC Mechanisms
Liangxu Linux
Liangxu Linux
Mar 2, 2024 · Fundamentals

How DMA and Zero‑Copy Revolutionize Linux I/O Performance

This article explains the principles of Direct Memory Access (DMA), compares it with traditional I/O, details the DMA data‑transfer workflow, and explores zero‑copy techniques such as mmap + write and sendfile, highlighting how they reduce context switches, data copies, and improve overall Linux I/O efficiency.

DMALinux I/OZero Copy
0 likes · 15 min read
How DMA and Zero‑Copy Revolutionize Linux I/O Performance
Sohu Tech Products
Sohu Tech Products
Feb 28, 2024 · Big Data

Why Use Zarr? Storing and Accessing Large NumPy Arrays with mmap and Zarr

Zarr provides a modern, chunked and compressed storage format that lets you treat massive NumPy arrays like in‑memory objects, offering on‑demand loading, flexible back‑ends (disk, S3, zip), automatic caching, resizing, parallel reads/writes, and superior performance compared to traditional mmap‑based memmap files.

NumPyPythonZarr
0 likes · 18 min read
Why Use Zarr? Storing and Accessing Large NumPy Arrays with mmap and Zarr
Open Source Linux
Open Source Linux
Jan 4, 2024 · Fundamentals

How DMA and Zero‑Copy Boost I/O Performance: A Deep Dive

This article explains Direct Memory Access (DMA), compares it with traditional I/O, details the complete DMA‑based I/O workflow, and explores zero‑copy techniques such as mmap, sendfile, and asynchronous I/O, highlighting their impact on context switches, data copies, and overall transfer performance.

DMAI/O optimizationLinux
0 likes · 14 min read
How DMA and Zero‑Copy Boost I/O Performance: A Deep Dive
Deepin Linux
Deepin Linux
Nov 20, 2023 · Fundamentals

Linux Memory Allocation Mechanisms: malloc, kmalloc, vmalloc, mmap, and Slab

This article explains Linux's flexible memory allocation system, covering user‑space malloc, kernel‑space kmalloc, vmalloc for large buffers, mmap for file and anonymous mappings, page allocation functions, the slab allocator, and memory pools, with detailed code examples and operational insights.

Linuxkmallocmalloc
0 likes · 30 min read
Linux Memory Allocation Mechanisms: malloc, kmalloc, vmalloc, mmap, and Slab
Deepin Linux
Deepin Linux
Nov 9, 2023 · Fundamentals

Understanding Linux Memory Mapping (mmap): API, Implementation, and Use Cases

This article explains Linux memory mapping (mmap), covering its purpose, API parameters, different mapping types, internal kernel implementation, page‑fault handling, copy‑on‑write semantics, practical use cases, and includes a complete Objective‑C example demonstrating file mapping and manipulation.

Copy-on-WriteLinux kernelPage Fault
0 likes · 27 min read
Understanding Linux Memory Mapping (mmap): API, Implementation, and Use Cases
Bin's Tech Cabin
Bin's Tech Cabin
Sep 18, 2023 · Fundamentals

Unveiling Linux mmap: From Virtual Memory to Page Tables and Huge Pages

This article provides an in‑depth exploration of the Linux mmap system call, covering its role in virtual memory management, page table structures, various mapping types (anonymous, file‑backed, shared, private), flag options, and advanced concepts such as huge pages and transparent huge pages, with kernel‑level diagrams and code examples.

LinuxPage Tablehugepages
0 likes · 62 min read
Unveiling Linux mmap: From Virtual Memory to Page Tables and Huge Pages
Baidu Geek Talk
Baidu Geek Talk
Aug 23, 2023 · Mobile Development

Why MMKV Can Stall Your Mobile App and How to Fix It

The article analyzes IO‑intensive bottlenecks in mobile apps, explains how MMKV’s mmap‑based storage, rewrite, and expansion mechanisms cause main‑thread stalls, and presents concrete optimizations such as value comparison before write, pre‑expansion, compression, expiration handling, and proper instance management to dramatically reduce latency.

AndroidIO optimizationMMKV
0 likes · 26 min read
Why MMKV Can Stall Your Mobile App and How to Fix It
MaGe Linux Operations
MaGe Linux Operations
Jul 12, 2023 · Fundamentals

How mmap Turns Files into Memory: A Deep Dive into Virtual Memory

This article explains how mmap maps file segments into a process's virtual address space, how virtual memory and physical memory interact, and the mechanisms of address translation, paging, and segmentation that enable efficient memory sharing and file I/O in Linux.

LinuxOS fundamentalsVirtual Memory
0 likes · 6 min read
How mmap Turns Files into Memory: A Deep Dive into Virtual Memory
Top Architect
Top Architect
Nov 16, 2022 · Backend Development

Understanding Zero‑Copy in Java: Concepts, Mechanisms, and Implementations

This article explains the zero‑copy technique in Java, covering I/O fundamentals, kernel read/write flow, mmap+write and Sendfile methods, virtual memory mapping, MappedByteBuffer and DirectByteBuffer usage, channel‑to‑channel transfer, Netty composite buffers, and how frameworks like RocketMQ and Kafka leverage zero‑copy for performance.

Java NIONettyZero Copy
0 likes · 13 min read
Understanding Zero‑Copy in Java: Concepts, Mechanisms, and Implementations
Xingsheng Youxuan Technology Community
Xingsheng Youxuan Technology Community
Oct 28, 2022 · Backend Development

How We Processed 1 Million Images in Sub-Second: Backend Optimization Secrets

Facing a challenge of managing roughly one million server-side images and 180 client images, the TOOSIMPLE team built a high-performance backend using fingerprinting, parallel processing, mmap-SSE2 acceleration, and sparsemap indexing, achieving sub-second response times while ensuring correct ordered display.

GolangHashinglarge-scale data
0 likes · 12 min read
How We Processed 1 Million Images in Sub-Second: Backend Optimization Secrets
ITPUB
ITPUB
Oct 4, 2022 · Big Data

How Kafka Achieves Million‑TPS with Sequential I/O, MMAP, and Zero‑Copy

This article explains how Kafka attains million‑level transactions per second by leveraging sequential disk writes, memory‑mapped files, zero‑copy data transfer, and batch processing, detailing each technique's mechanics and performance impact.

Big DataHigh ThroughputSequential I/O
0 likes · 10 min read
How Kafka Achieves Million‑TPS with Sequential I/O, MMAP, and Zero‑Copy
Liangxu Linux
Liangxu Linux
Jul 10, 2022 · Fundamentals

Lighting an LED on Linux with mmap: From Folklore to Kernel Memory Mapping

The article uses a cultural analogy about Emperor Yongzheng to introduce the concept of mapping, then explains how Linux's mmap can map a physical GPIO register into user space, provides a complete code example for toggling an LED, and discusses mmap's broader uses and performance trade‑offs.

GPIOLinuxembedded
0 likes · 10 min read
Lighting an LED on Linux with mmap: From Folklore to Kernel Memory Mapping
Liangxu Linux
Liangxu Linux
Jun 22, 2022 · Fundamentals

Understanding Linux Memory Management: From Process Allocation to OOM and Cache

This article provides a comprehensive walkthrough of Linux kernel memory management, covering process address space layout, memory allocation mechanisms, OOM selection criteria, where allocated memory resides, and both manual and automatic memory reclamation techniques, complete with code examples and diagrams.

CacheLinuxMemory Management
0 likes · 20 min read
Understanding Linux Memory Management: From Process Allocation to OOM and Cache
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)
Open Source Linux
Open Source Linux
May 17, 2022 · Fundamentals

How Linux Manages Process Memory: From Allocation to OOM Recovery

This article explains Linux's process memory layout, allocation mechanisms, out‑of‑memory handling, where different types of memory reside, and both manual and automatic memory reclamation techniques, providing practical examples and kernel‑level insights for developers and system engineers.

Linuxmmapprocess memory
0 likes · 19 min read
How Linux Manages Process Memory: From Allocation to OOM Recovery
Top Architect
Top Architect
Feb 22, 2022 · Fundamentals

Understanding DMA and Zero‑Copy Techniques in Linux

This article explains how DMA offloads memory‑to‑device data transfers, reduces the four data copies and context switches of traditional I/O, and introduces zero‑copy methods such as sendfile, mmap and Direct I/O, illustrating their mechanisms, advantages, limitations, and real‑world use cases like Kafka and MySQL.

DMADirect I/OI/O optimization
0 likes · 15 min read
Understanding DMA and Zero‑Copy Techniques in Linux
Architect
Architect
Feb 19, 2022 · Fundamentals

Understanding DMA and Zero‑Copy Techniques in Linux I/O

This article explains how DMA offloads memory‑to‑device data transfers, reduces the four data copies and context switches of traditional I/O, and introduces zero‑copy mechanisms such as sendfile, mmap and Direct I/O, with practical examples like Kafka and MySQL.

DMADirect I/OI/O optimization
0 likes · 15 min read
Understanding DMA and Zero‑Copy Techniques in Linux I/O
Efficient Ops
Efficient Ops
Sep 27, 2021 · Fundamentals

How Linux Kernel Manages Memory: Allocation, OOM, and Recovery

This article explains Linux kernel memory management by covering process address space layout, allocation mechanisms, OOM killer behavior, overcommit settings, various types of file and anonymous mappings, tmpfs usage, and both manual and automatic memory reclamation techniques.

LinuxMemory ManagementOOM
0 likes · 20 min read
How Linux Kernel Manages Memory: Allocation, OOM, and Recovery
Liangxu Linux
Liangxu Linux
Sep 11, 2021 · Fundamentals

How DMA and Zero‑Copy Transform Linux I/O Performance

This article explains the costly four‑copy, four‑context‑switch data path in traditional Linux I/O, introduces DMA as a co‑processor that offloads memory transfers, describes zero‑copy techniques such as sendfile, mmap and Direct I/O, and shows how Kafka and MySQL leverage these methods to reduce CPU overhead and improve throughput.

DMADirect I/OKafka
0 likes · 16 min read
How DMA and Zero‑Copy Transform Linux I/O Performance
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 3, 2021 · Databases

Diagnosing MySQL Memory Spikes Using perf and mmap Monitoring

This tutorial demonstrates how to reproduce a MySQL memory‑spike bug, monitor the process with Linux perf to capture mmap system calls, and analyze the resulting perf.out to identify which SQL statements trigger large memory allocations, while also discussing the method’s limitations.

Database PerformanceLinuxmemory profiling
0 likes · 5 min read
Diagnosing MySQL Memory Spikes Using perf and mmap Monitoring
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jun 11, 2021 · Fundamentals

Analysis of Linux mmap File Read Process and Page Fault Handling

The article walks through Linux’s mmap file‑read workflow—from the kernel entry point and VMA creation, through page‑fault handling that allocates pages and invokes synchronous or asynchronous readahead, to munmap’s unmapping steps and the deferred file‑cache reclamation mechanisms.

File CacheLinuxMemory Management
0 likes · 10 min read
Analysis of Linux mmap File Read Process and Page Fault Handling
Top Architect
Top Architect
Jun 1, 2021 · Backend Development

Zero‑Copy Mechanisms in Operating Systems and Java

This article explains how zero‑copy techniques such as mmap, sendfile, and splice reduce CPU involvement in data transfer by avoiding memory copies between kernel and user spaces, and shows how Java NIO and Netty implement these mechanisms for high‑performance backend I/O.

BackendJava NIOZero Copy
0 likes · 8 min read
Zero‑Copy Mechanisms in Operating Systems and Java
Liangxu Linux
Liangxu Linux
Apr 18, 2021 · Fundamentals

Zero-Copy Explained: How mmap, sendfile, and DMA Boost RocketMQ & Kafka

Zero-copy techniques such as mmap + write, sendfile, and sendfile + DMA scatter/gather reduce CPU copies and context switches by leveraging kernel‑space data transfers and DMA, dramatically improving I/O performance for high‑throughput systems like RocketMQ and Kafka, as explained with detailed process flows and comparisons.

DMAIO performanceZero Copy
0 likes · 10 min read
Zero-Copy Explained: How mmap, sendfile, and DMA Boost RocketMQ & Kafka
Liangxu Linux
Liangxu Linux
Feb 13, 2021 · Fundamentals

How Linux Zero‑Copy I/O Works: mmap, sendfile, splice & tee Explained

The article explains Linux zero‑copy I/O techniques—mmap, sendfile, splice, and tee—detailing their design principles, execution flows, context‑switch and data‑copy reductions, advantages, limitations, and appropriate use cases, helping developers choose the optimal method for high‑performance file and network transfers.

I/OLinuxTEE
0 likes · 11 min read
How Linux Zero‑Copy I/O Works: mmap, sendfile, splice & tee Explained
Programmer DD
Programmer DD
Jan 17, 2021 · Backend Development

Mastering Zero-Copy in Java: Boost Performance with NIO, Netty, and Sendfile

This article explains the concept of zero-copy I/O, covering buffer types, virtual memory, mmap+write and sendfile techniques in Java, and demonstrates how Java NIO, Netty, and other frameworks like RocketMQ and Kafka leverage zero-copy to reduce data copying and improve performance.

Zero Copymmapperformance
0 likes · 14 min read
Mastering Zero-Copy in Java: Boost Performance with NIO, Netty, and Sendfile
macrozheng
macrozheng
Dec 15, 2020 · Big Data

How Kafka Achieves Million‑TPS Through Sequential I/O, MMAP, and Zero‑Copy

Kafka can sustain millions of transactions per second by writing data sequentially to disk, leveraging memory‑mapped files, employing zero‑copy DMA transfers, and batching messages, each technique reducing I/O overhead and CPU involvement, which together enable its high‑throughput performance in big‑data pipelines.

Big DataHigh ThroughputKafka
0 likes · 11 min read
How Kafka Achieves Million‑TPS Through Sequential I/O, MMAP, and Zero‑Copy
Architect
Architect
Jul 26, 2020 · Backend Development

Understanding Zero‑Copy in Java: I/O Concepts, mmap, Sendfile, and Netty

This article explains the zero‑copy technique in Java, covering basic I/O concepts, buffer management, mmap + write and Sendfile methods, and how frameworks like NIO, Netty, Kafka, and RocketMQ use these mechanisms to eliminate data copies and improve performance.

NettyZero Copyjava
0 likes · 11 min read
Understanding Zero‑Copy in Java: I/O Concepts, mmap, Sendfile, and Netty
ITPUB
ITPUB
Jul 23, 2020 · Fundamentals

How Zero‑Copy Techniques Slash Data Transfer Overhead in Linux

This article explains why traditional read/write file serving incurs multiple data copies and context switches, then introduces mmap, sendfile, and splice as zero‑copy methods that reduce CPU load, discuss their usage, limitations, and practical pitfalls for high‑performance Linux servers.

I/O optimizationLinuxZero Copy
0 likes · 11 min read
How Zero‑Copy Techniques Slash Data Transfer Overhead in Linux
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jun 12, 2020 · Fundamentals

Linux Kernel Virtual Memory Management: Process Virtual Address Space and Allocation

The article explains Linux kernel virtual memory management on 64‑bit ARM64 Android systems, detailing user‑ and kernel‑space address layout, physical vs. linear addresses, allocation mechanisms such as brk and mmap, common allocators, key structures like mm_struct and vm_area_struct, and the functions that control mmap layout and unmapped‑area selection.

ARM64ASLRKernel Internals
0 likes · 20 min read
Linux Kernel Virtual Memory Management: Process Virtual Address Space and Allocation
Java Captain
Java Captain
Apr 7, 2020 · Backend Development

Zero‑Copy Techniques in Java: I/O Concepts, mmap, Sendfile, and Netty

This article explains the zero‑copy principle, describes core I/O concepts such as buffers and virtual memory, and details Java implementations including mmap + write, Sendfile, MappedByteBuffer, DirectByteBuffer, channel‑to‑channel transfer, and Netty’s composite buffers for high‑performance data transfer.

NettyZero Copyjava
0 likes · 12 min read
Zero‑Copy Techniques in Java: I/O Concepts, mmap, Sendfile, and Netty
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Nov 7, 2019 · Fundamentals

Unlocking Linux Memory: A Practical Guide to mmap and Its Real-World Uses

This article explains Linux’s virtual address space, the mmap system call, its prototype and typical applications—including shared file mapping, inter‑process communication, and file I/O optimization—while illustrating concepts with diagrams and code examples, and discusses alignment, copy‑on‑write, and memory swapping considerations.

Copy-on-WriteSystem CallVirtual Memory
0 likes · 9 min read
Unlocking Linux Memory: A Practical Guide to mmap and Its Real-World Uses
360 Tech Engineering
360 Tech Engineering
Nov 7, 2019 · Fundamentals

Understanding mmap: Concepts, Usage, and Typical Applications in Linux

This article explains the Linux mmap system call, covering virtual address space fundamentals, how mmap interacts with the page cache and inode structures, typical use‑cases such as shared memory and anonymous mappings, code examples, and special considerations like alignment, copy‑on‑write and memory swapping.

Copy-on-WriteLinuxMemory Management
0 likes · 9 min read
Understanding mmap: Concepts, Usage, and Typical Applications in Linux
MaGe Linux Operations
MaGe Linux Operations
Sep 7, 2019 · Fundamentals

How Linux Manages Memory: From Process Allocation to OOM and Cache

This article explores Linux kernel memory management, detailing process address space allocation, the behavior of the OOM killer, various memory mapping types (shared, private, anonymous), cache usage, manual and automatic memory reclamation, and related kernel parameters, providing practical insights and examples.

CacheMemory ManagementOOM
0 likes · 20 min read
How Linux Manages Memory: From Process Allocation to OOM and Cache
58 Tech
58 Tech
Mar 18, 2019 · Mobile Development

Design and Implementation of a Mobile Log Retrieval Component

This article presents the background, requirements, and technical solution of a mobile log retrieval component that ensures secure, complete, and efficient log collection, storage, and on‑demand retrieval for iOS and Android applications, including design details such as mmap‑based writing, stream compression, multi‑process handling, and a management platform.

AndroidiOSlog retrieval
0 likes · 11 min read
Design and Implementation of a Mobile Log Retrieval Component
Efficient Ops
Efficient Ops
May 14, 2017 · Fundamentals

Understanding Linux Memory Management: Allocation, OOM, and Cache

This article explains Linux kernel memory management, covering process address space layout, memory allocation methods, OOM killer behavior, where different types of memory reside, and both manual and automatic memory reclamation techniques, illustrated with diagrams and command examples.

CacheMemory ManagementOOM
0 likes · 18 min read
Understanding Linux Memory Management: Allocation, OOM, and Cache
MaGe Linux Operations
MaGe Linux Operations
Apr 16, 2017 · Fundamentals

Unlocking Linux Memory: How mmap Works and When to Use It

This article explains the Linux mmap system call, its usage, flags, error handling, related calls like munmap and msync, two shared‑memory techniques, and the underlying virtual‑address and vm_area_struct mechanisms that enable memory mapping.

System Callmemory mappingmmap
0 likes · 16 min read
Unlocking Linux Memory: How mmap Works and When to Use It