Tagged articles
memory mapping
23 articles · Page 1 of 1
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.
memory mappingmmappage fault
0 likes · 57 min read

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.
Linuxio_uringmemory mapping
0 likes · 44 min read

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/Omemory mappingmmap
0 likes · 11 min read

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 performancememory mappingmmap
0 likes · 8 min read

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

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

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 performanceLinuxmemory mapping
0 likes · 8 min read

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.
EL2KVMLinux kernel
0 likes · 13 min read

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.
I/OLinux kernelboot process
0 likes · 39 min read

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.
LinuxSystem Monitoringkernel
0 likes · 23 min read

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.
IPCLinuxShared Memory
0 likes · 19 min read

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.
Linux kernelVMAcopy-on-write
0 likes · 27 min read

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.
HugePagesLinuxPage Table
0 likes · 62 min read

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 fundamentalsmemory mapping
0 likes · 6 min read

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.
EmbeddedGPIOLinux
0 likes · 10 min read

This article explains the core principles of building a Nintendo Entertainment System (NES) emulator, covering the collaboration of CPU, PPU, and APU, memory mapping, ROM loading, instruction decoding, graphics rendering, and interrupt handling, with practical code examples.
CPUNES emulatorPPU
0 likes · 19 min read


ITPUBFeb 27, 2021 · Fundamentals
This article demystifies the computer startup sequence by explaining why BIOS controls the initial steps, how memory‑mapping works, what the 0x7c00 boot sector is, and how the BIOS loads and transfers control to the operating system kernel.
BIOSassemblyboot process
0 likes · 18 min read

This article demystifies the computer startup sequence by explaining why BIOS controls the initial steps, how memory mapping works, what the 0x7C00 boot sector is, and how the CPU jumps from the power‑on reset to the operating system loader.
BIOSboot processbootloader
0 likes · 17 min read

This article demystifies the computer startup sequence by explaining why BIOS controls the first steps, how memory‑mapping works, how the CPU’s PC register is forced to 0xFFFF0, how the boot sector is loaded to 0x7C00, and what the initial assembly code actually does.
BIOSassemblyboot process
0 likes · 18 min read

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

This article demystifies the computer startup sequence by explaining why BIOS controls the initial boot, how memory mapping and real-mode address space work, the role of the 0x7C00 loading address, and what the boot sector code actually does.
BIOSassemblyboot process
0 likes · 19 min read

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-writememory mappingmmap
0 likes · 9 min read

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.
Shared Memorymemory mappingmmap
0 likes · 16 min read
