Tagged articles
23 articles
Page 1 of 1
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
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.

Virtual Memoryfile I/Omemory 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 performanceZero Copymemory mapping
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.

LinuxSystem Programmingfile I/O
0 likes · 29 min read
What Happens to mmap-Mapped Files When a Program Crashes? A Deep Dive into Linux Memory Mapping
Linux Kernel Journey
Linux Kernel Journey
Jun 17, 2025 · Fundamentals

Master the Three Classic Cache Mapping Strategies: Theory and Practical Implementation

This article explains why cache is critical for computer performance and provides a thorough analysis of the three classic cache mapping strategies—direct‑mapped, fully associative, and set‑associative—detailing their mechanisms, advantages, disadvantages, concrete examples, and guidance on selecting the appropriate method for different system scenarios.

CacheDirect MappingFully Associative
0 likes · 24 min read
Master the Three Classic Cache Mapping Strategies: Theory and Practical Implementation
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 performanceLinuxZero Copy
0 likes · 8 min read
Understanding mmap: How Memory Mapping Improves I/O Performance
Linux Kernel Journey
Linux Kernel Journey
Mar 3, 2025 · Fundamentals

Understanding KVM Hyp Mode Memory Mapping Initialization

This article walks through the step‑by‑step initialization of KVM's hyp mode memory mapping on ARM64, covering EL2 register setup, identity mapping, page‑table allocation, stack preparation, and code section mappings required for a functional hypervisor environment.

ARM64EL2KVM
0 likes · 13 min read
Understanding KVM Hyp Mode Memory Mapping Initialization
Deepin Linux
Deepin Linux
Jan 4, 2025 · Fundamentals

Early I/O Memory Mapping (early_ioremap) in the Linux Kernel

The article explains the purpose, implementation, and usage of early I/O memory mapping (early_ioremap) in the Linux kernel, detailing its initialization, fixmap foundations, code flow, and differences from regular ioremap, with examples and kernel source snippets.

Boot ProcessI/OLinux kernel
0 likes · 39 min read
Early I/O Memory Mapping (early_ioremap) in the Linux Kernel
Liangxu Linux
Liangxu Linux
May 16, 2024 · Fundamentals

Understanding the Linux /proc Virtual Filesystem and Its Key Entries

The article provides a comprehensive guide to the Linux /proc virtual filesystem, explaining its purpose, how to mount it, and detailing the most important files and directories such as /proc/pid, /proc/self, security attributes, memory maps, and network information, along with practical commands for inspection.

KernelLinuxProc Filesystem
0 likes · 23 min read
Understanding the Linux /proc Virtual Filesystem and Its Key Entries
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
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.

KernelLinuxPage Table
0 likes · 62 min read
Unveiling Linux mmap: From Virtual Memory to Page Tables and Huge Pages
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
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
MaGe Linux Operations
MaGe Linux Operations
Nov 29, 2020 · Big Data

How Vaex Enables Billion‑Row Data Analysis on a Laptop

This article explains how Vaex, an open‑source DataFrame library, lets data scientists efficiently explore, visualize, and analyze massive datasets—such as the over‑billion‑row NYC taxi records—using memory‑mapping and virtual columns, all on a standard notebook without costly cloud resources.

NYC taxi datasetPythonVaex
0 likes · 11 min read
How Vaex Enables Billion‑Row Data Analysis on a Laptop
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
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