Tagged articles
102 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
Deepin Linux
Deepin Linux
Apr 12, 2026 · Fundamentals

Why TLB Matters: Unlocking Linux Kernel Performance

This article explains the role of the Translation Lookaside Buffer (TLB) in Linux virtual‑memory translation, covering basic address concepts, page‑table mechanics, TLB operation, flush and synchronization strategies, hardware vs software management, Linux kernel APIs, and a practical C benchmark comparing sequential and random memory accesses.

CacheOperating SystemsPerformance Optimization
0 likes · 36 min read
Why TLB Matters: Unlocking Linux Kernel Performance
Deepin Linux
Deepin Linux
Mar 31, 2026 · Fundamentals

Why the MMU Is the Hidden Engine Behind Linux Memory Management

This article explains how the Memory Management Unit (MMU) underpins Linux's virtual memory, process isolation, and protection mechanisms, detailing its architecture, address‑translation workflow, TLB caching, practical C implementations, real‑world use cases, and debugging techniques for kernel developers.

KernelLinuxMMU
0 likes · 40 min read
Why the MMU Is the Hidden Engine Behind Linux Memory Management
Deepin Linux
Deepin Linux
Mar 13, 2026 · Fundamentals

How Does the MMU Translate Virtual to Physical Memory? A Deep Dive

This article explains the role of the Memory Management Unit (MMU) and paging in modern operating systems, covering hardware structure, address translation, permission checks, page tables, TLB behavior, virtual memory mechanisms, and practical Linux kernel code examples for memory protection, sharing, and performance optimization.

LinuxMMUMemory Management
0 likes · 58 min read
How Does the MMU Translate Virtual to Physical Memory? A Deep Dive
Linux Tech Enthusiast
Linux Tech Enthusiast
Dec 23, 2025 · Fundamentals

How Many Threads Can a Single Linux Process Create?

The article explains Linux virtual memory layout, shows that a 32‑bit process can create roughly 380 threads due to an 8 MB default stack, while a 64‑bit process can theoretically spawn millions of threads but is constrained by kernel parameters such as threads‑max, pid_max and max_map_count.

LinuxProcess LimitsStack Size
0 likes · 7 min read
How Many Threads Can a Single Linux Process Create?
AI2ML AI to Machine Learning
AI2ML AI to Machine Learning
Dec 22, 2025 · Artificial Intelligence

The Core Ideas Behind Paged Attention for KV‑Caching

This article explains how Paged Attention, introduced by the vLLM team, applies virtual‑memory techniques, non‑contiguous block mapping, copy‑on‑write reuse, distributed scheduling, and hardware‑level optimizations to improve KV‑cache efficiency and reduce memory fragmentation in large language model serving.

Copy-on-WriteDistributed SchedulingGPU Memory Management
0 likes · 6 min read
The Core Ideas Behind Paged Attention for KV‑Caching
Deepin Linux
Deepin Linux
Sep 20, 2025 · Fundamentals

How Linux Handles Page Faults: Inside Virtual Memory Management

This article explains Linux page faults, describing how the kernel intercepts invalid or unmapped memory accesses, the step‑by‑step handling process, the four typical fault scenarios, and optimization techniques, while providing code examples and diagrams to illustrate virtual‑memory management in depth.

LinuxMemory ManagementOperating System
0 likes · 41 min read
How Linux Handles Page Faults: Inside Virtual Memory Management
Deepin Linux
Deepin Linux
Sep 19, 2025 · Fundamentals

Unlocking Linux Memory: How Virtual Memory, MMU, and Heap Really Work

This article demystifies Linux process memory by explaining the layered architecture of virtual and physical memory, the role of the MMU and page tables, dynamic allocation mechanisms such as brk and mmap, and practical tools for inspecting and optimizing memory usage.

LinuxMMUMemory Management
0 likes · 47 min read
Unlocking Linux Memory: How Virtual Memory, MMU, and Heap Really Work
Deepin Linux
Deepin Linux
Sep 2, 2025 · Fundamentals

Unlocking Efficient Software: How Memory Management Powers Modern Computing

This article explores the fundamentals of memory management, covering static and dynamic allocation, virtual memory, paging, segmentation, protection mechanisms, garbage collection, common strategies, pitfalls like leaks and fragmentation, concurrency challenges, and practical tips and tools for optimizing memory usage across operating systems and applications.

PagingSegmentationVirtual Memory
0 likes · 40 min read
Unlocking Efficient Software: How Memory Management Powers Modern Computing
Deepin Linux
Deepin Linux
Sep 1, 2025 · Fundamentals

Unlocking Memory Performance: How MMU, Paging, and Caches Power Modern Computing

This article explores the hardware foundations of memory management, detailing the role of the Memory Management Unit, page tables, caching mechanisms like TLB, and strategies such as paging, segmentation, and large‑page optimization that together enable efficient virtual‑to‑physical address translation and protect process memory.

MMUOperating SystemsPaging
0 likes · 37 min read
Unlocking Memory Performance: How MMU, Paging, and Caches Power Modern Computing
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
IT Services Circle
IT Services Circle
Jul 19, 2025 · Fundamentals

How Linkers Assign Virtual Addresses Before Your Program Runs

This article explains how linkers determine virtual memory addresses during linking, describes the operating system's per‑process virtual address space, outlines ABI and ELF conventions including default base addresses and linker scripts, and shows how the loader later maps those virtual addresses to physical memory.

ELFLinkerVirtual Memory
0 likes · 5 min read
How Linkers Assign Virtual Addresses Before Your Program Runs
Deepin Linux
Deepin Linux
Jul 15, 2025 · Fundamentals

How Linux’s Page Table Cache Supercharges Memory Access

This article explains the role of the page‑table cache (TLB) in the Linux kernel, describing how it speeds up virtual‑to‑physical address translation, the underlying mapping process, cache organization, replacement policies, and its impact on system performance across desktops, servers, and high‑performance applications.

Linux kernelMemory ManagementTLB
0 likes · 29 min read
How Linux’s Page Table Cache Supercharges Memory Access
Deepin Linux
Deepin Linux
Jun 17, 2025 · Fundamentals

How the MMU Powers Linux Memory Management and Virtual‑Physical Translation

This article explores the role of the Memory Management Unit (MMU) in Linux, detailing how it translates virtual addresses to physical memory, enforces protection, utilizes page tables, TLB caching, multi‑level paging, and supports process isolation and efficient memory allocation, illustrating concepts with diagrams and code examples.

LinuxMMUTLB
0 likes · 27 min read
How the MMU Powers Linux Memory Management and Virtual‑Physical Translation
IT Services Circle
IT Services Circle
May 16, 2025 · Fundamentals

Understanding Page Faults and Their Impact on System Performance

The article explains what page faults are, how the Linux kernel handles them, methods to measure their frequency with tools like perf, vmstat and ftrace, and discusses why frequent faults degrade performance and how to mitigate them through memory, configuration, and code optimizations.

LinuxPerformance MonitoringVirtual Memory
0 likes · 7 min read
Understanding Page Faults and Their Impact on System Performance
Deepin Linux
Deepin Linux
May 2, 2025 · Fundamentals

Understanding CPU Cache, Memory Hierarchy, and Concurrency Control

This article explains the principles of CPU cache, the multi‑level memory hierarchy, virtual memory, data consistency, and concurrency control mechanisms, illustrating how they together bridge the speed gap between the fast processor and slower memory/storage in modern computer systems.

CPUMemory HierarchyVirtual Memory
0 likes · 21 min read
Understanding CPU Cache, Memory Hierarchy, and Concurrency Control
Java Tech Enthusiast
Java Tech Enthusiast
Apr 29, 2025 · Fundamentals

Evolution of Memory Management: Fixed Partition, Dynamic Partition, and Overlay Techniques

Early computers used fixed‑size partitions that wasted space, then dynamic partitions that improved utilization but caused fragmentation, and finally overlay techniques that let programs exceed physical RAM by swapping modules, each step exposing limitations that ultimately drove the creation of virtual memory systems.

Operating SystemsOverlayVirtual Memory
0 likes · 6 min read
Evolution of Memory Management: Fixed Partition, Dynamic Partition, and Overlay Techniques
Liangxu Linux
Liangxu Linux
Apr 19, 2025 · Fundamentals

Why Does Your C++ Program’s Memory Look Like This? From Punch Cards to Virtual Memory

This article traces the evolution of memory layout from early punched‑card computers through assembly‑level innovations, segment‑based designs, and virtual memory, then demonstrates a real 32‑bit Linux C++ program showing where globals, stack, heap, and mapped regions reside, and explains how this knowledge helps debug segmentation faults, stack overflows, and memory leaks.

BSSC++Virtual Memory
0 likes · 13 min read
Why Does Your C++ Program’s Memory Look Like This? From Punch Cards to Virtual Memory
Linux Kernel Journey
Linux Kernel Journey
Apr 7, 2025 · Fundamentals

Understanding Linux Kernel Page Faults: Causes and Handling Strategies

The article explains how Linux triggers a page fault when a process accesses a virtual memory page that is not resident in physical RAM, describes the underlying virtual memory and MMU concepts, the kernel data structures involved, the detailed fault‑handling flow, different fault types, and their performance impact.

LinuxMMUMemory Management
0 likes · 27 min read
Understanding Linux Kernel Page Faults: Causes and Handling Strategies
Deepin Linux
Deepin Linux
Mar 24, 2025 · Fundamentals

Understanding Page Fault Handling and Virtual Memory Management in the uCore Kernel

This article explains how Linux-like operating systems use virtual memory and the MMU to map virtual addresses to physical memory, describes the data structures (vma_struct and mm_struct) used by uCore, details the page‑fault handling flow, classifies fault types, and shows how these mechanisms affect system performance.

KernelMemory ManagementOperating System
0 likes · 27 min read
Understanding Page Fault Handling and Virtual Memory Management in the uCore Kernel
Practical DevOps Architecture
Practical DevOps Architecture
Mar 20, 2025 · Operations

How to Add a Swap File on Linux and Adjust Swappiness

This guide explains how to create a swap file on a Linux server, enable it, configure it to start at boot, and adjust the swappiness parameter to control virtual memory usage, providing step‑by‑step commands and explanations for each operation.

SwapSystem AdministrationVirtual Memory
0 likes · 5 min read
How to Add a Swap File on Linux and Adjust Swappiness
Java Tech Enthusiast
Java Tech Enthusiast
Feb 28, 2025 · Fundamentals

Does Adding More RAM Speed Up a Computer?

Adding more RAM only speeds up a computer when the existing memory is insufficient, because RAM supplies data to the CPU and serves as cache; with ample RAM the CPU remains the bottleneck, so extra memory mainly enables more simultaneous programs rather than increasing raw processing speed.

Memory ManagementOperating SystemRAM
0 likes · 6 min read
Does Adding More RAM Speed Up a Computer?
Linux Kernel Journey
Linux Kernel Journey
Jan 9, 2025 · Fundamentals

How Does a Linux Process Use Memory? A Deep Dive

This article explains the Linux kernel’s memory management for a process, covering virtual address spaces, page‑fault handling, VMA allocation, stack and heap initialization, sbrk/brk usage, thread‑stack creation, and the glibc ptmalloc heap allocator with concrete code examples and diagrams.

HeapLinuxPage Fault
0 likes · 15 min read
How Does a Linux Process Use Memory? A Deep Dive
DataFunSummit
DataFunSummit
Dec 28, 2024 · Artificial Intelligence

Memory Optimization for Large Model Inference: Virtual Tensor and LayerKV Techniques

This talk presents the Ant Group team's recent work on large‑model inference memory optimization, covering GPU memory challenges, virtual memory management (VMM), the Virtual Tensor framework, LayerKV techniques, performance comparisons with Page Attention and FlashAttention, and extensive experimental results demonstrating reduced latency and higher QPS.

GPUVirtual Memoryattention
0 likes · 25 min read
Memory Optimization for Large Model Inference: Virtual Tensor and LayerKV Techniques
Liangxu Linux
Liangxu Linux
Sep 17, 2024 · Fundamentals

Why CPU Memory Access Is Far More Complex Than You Think

The article explains how CPUs read and write memory through a hierarchy of caches, virtual memory translation, and coherence protocols, revealing that the seemingly simple operation actually involves multiple hardware and software layers that programmers must understand to write high‑performance code.

CacheCoherenceMemory Hierarchy
0 likes · 16 min read
Why CPU Memory Access Is Far More Complex Than You Think
Liangxu Linux
Liangxu Linux
Jul 27, 2024 · Fundamentals

Does malloc Allocate Memory? Exploring Virtual Memory, brk, and Page Faults

This article explains why calling malloc in C only reserves virtual address space, how the kernel maps it to physical memory on demand, and the roles of the brk pointer, memory layout, and page‑fault handling, illustrated with a 1 GB allocation example and detailed diagrams.

C programmingMemory ManagementPage Fault
0 likes · 7 min read
Does malloc Allocate Memory? Exploring Virtual Memory, brk, and Page Faults
Deepin Linux
Deepin Linux
Jul 17, 2024 · Fundamentals

Understanding Page Fault Handling and Virtual Memory Management in uCore OS

This article explains the principles of virtual memory, the data structures and functions used in uCore to manage page faults, and how the operating system handles demand paging, page swapping, and invalid accesses through detailed code examples and workflow descriptions.

KernelMemory ManagementOperating System
0 likes · 23 min read
Understanding Page Fault Handling and Virtual Memory Management in uCore OS
Deepin Linux
Deepin Linux
Jul 15, 2024 · Fundamentals

Understanding Memory Paging and Page Table Structures in x86-64

Memory paging, a core memory‑management technique used in modern operating systems and x86‑64 processors, divides physical memory into fixed‑size pages, enabling virtual memory, isolation, sharing, lazy loading, and protection, while the article explains page tables, hierarchical paging modes, and provides assembly code for enabling paging.

Virtual Memorymemory pagingx86-64
0 likes · 34 min read
Understanding Memory Paging and Page Table Structures in x86-64
Open Source Linux
Open Source Linux
Jun 28, 2024 · Fundamentals

How Much Virtual Memory Does a Linux Thread Actually Use?

This article reviews Linux virtual memory layouts for 32‑bit and 64‑bit systems, explains the kernel and user address spaces, details how threads consume stack memory, and outlines both virtual‑memory and kernel‑parameter limits that affect the maximum number of threads a process can create.

32-bit64-bitLinux
0 likes · 8 min read
How Much Virtual Memory Does a Linux Thread Actually Use?
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
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
Linux Code Review Hub
Linux Code Review Hub
Jan 31, 2024 · Fundamentals

Is POSIX Coming to an End? A Historical Review and Future Outlook

The article surveys the evolution of POSIX abstractions from the 1970s to the present, explains why hardware trends and modern workloads expose limitations of the CPU‑centric model, and argues that a new set of higher‑level interfaces is needed for future systems.

I/O abstractionsOperating SystemsPOSIX
0 likes · 25 min read
Is POSIX Coming to an End? A Historical Review and Future Outlook
MaGe Linux Operations
MaGe Linux Operations
Dec 17, 2023 · Fundamentals

How Linux Kernel Manages Dynamic Memory and Process Address Space

This article explains how the Linux kernel allocates dynamic memory, distinguishes kernel and user‑space allocation strategies, describes the mm_struct layout of a process address space, and shows how pages and page tables translate virtual addresses to physical memory.

KernelLinuxMemory Management
0 likes · 10 min read
How Linux Kernel Manages Dynamic Memory and Process Address Space
Liangxu Linux
Liangxu Linux
Oct 30, 2023 · Fundamentals

How Much Virtual Memory Does a Linux Thread Actually Consume?

This article reviews Linux virtual memory layouts for 32‑bit and 64‑bit systems, explains the different memory segments, shows how the default 8 MiB thread stack impacts virtual address consumption, and calculates practical thread limits based on virtual memory and kernel parameters.

32-bit64-bitThread Stack
0 likes · 8 min read
How Much Virtual Memory Does a Linux Thread Actually Consume?
Liangxu Linux
Liangxu Linux
Oct 4, 2023 · Fundamentals

Understanding Linux Memory Management: Physical, Virtual, and Page Tables

This article explains how Linux organizes physical memory into pages, zones, and nodes, allocates memory using the buddy system and SLUB, structures virtual address spaces for user and kernel, and maps virtual addresses to physical memory through page tables, dynamic mapping, and TLB caching.

Virtual Memorybuddy systempage-tables
0 likes · 12 min read
Understanding Linux Memory Management: Physical, Virtual, and Page Tables
MaGe Linux Operations
MaGe Linux Operations
Aug 30, 2023 · Fundamentals

How Linux Translates Virtual Addresses into Physical Memory

This article explains Linux's memory management, detailing how physical memory is organized into pages, zones, and nodes, how virtual addresses are structured for user and kernel space, and how page tables, the buddy system, SLUB, and TLB work together to map virtual addresses to physical memory.

LinuxMemory ManagementOS fundamentals
0 likes · 12 min read
How Linux Translates Virtual Addresses into Physical Memory
Bin's Tech Cabin
Bin's Tech Cabin
Jul 20, 2023 · Fundamentals

How Linux Maps Virtual Memory to Physical Memory: Inside Page Tables

This article walks through the Linux kernel's memory‑management subsystem, explaining how virtual memory is linked to physical memory via page tables, covering single‑level, two‑level and multi‑level paging, the structure of page‑table entries, the role of the MMU and TLB, and the complete CPU address‑translation process.

LinuxMemory ManagementVirtual Memory
0 likes · 67 min read
How Linux Maps Virtual Memory to Physical Memory: Inside Page Tables
Liangxu Linux
Liangxu Linux
Jul 12, 2023 · Fundamentals

Master Linux Memory Management: From Physical Pages to Virtual Mapping

This comprehensive guide explains Linux memory management concepts, covering physical and virtual memory, allocation and release methods, related kernel functions, process switching interactions, performance tuning, leak detection, fragmentation mitigation, and real‑world application examples with practical C code snippets.

C programmingLinuxPhysical Memory
0 likes · 36 min read
Master Linux Memory Management: From Physical Pages to Virtual Mapping
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
Open Source Linux
Open Source Linux
Jun 29, 2023 · Fundamentals

Master Linux Memory Management: From Physical to Virtual Memory Explained

This comprehensive guide covers Linux memory management fundamentals, detailing physical and virtual memory concepts, allocation and release mechanisms, key kernel functions, code examples, process switching, performance tuning, leak detection, fragmentation mitigation, and real‑world applications across system, driver, and optimization layers.

LinuxMemory ManagementPhysical Memory
0 likes · 38 min read
Master Linux Memory Management: From Physical to Virtual Memory Explained
AI Cyberspace
AI Cyberspace
Jun 21, 2023 · Fundamentals

Why Virtual Memory Solves the Biggest Problems of Physical Addressing

This article explains how modern computer systems use a hierarchical memory structure and virtual memory to overcome physical memory limitations, address translation challenges, fragmentation, and security issues, detailing concepts such as page tables, TLB caching, multi‑level paging, and practical examples.

Memory HierarchyTLBVirtual Memory
0 likes · 21 min read
Why Virtual Memory Solves the Biggest Problems of Physical Addressing
Efficient Ops
Efficient Ops
Jun 5, 2023 · Fundamentals

Master Linux Memory Management: From Physical Pages to Virtual Addressing

This comprehensive guide explains Linux memory management, covering physical and virtual memory concepts, allocation and release methods, related kernel functions, process switching interactions, performance tuning, leak detection, fragmentation handling, and real‑world application scenarios for servers, embedded systems, and driver development.

C programmingKernelPhysical Memory
0 likes · 37 min read
Master Linux Memory Management: From Physical Pages to Virtual Addressing
Open Source Linux
Open Source Linux
May 22, 2023 · Fundamentals

How Virtual Memory Works: From CPU Addressing to Linux Implementation

Virtual memory abstracts physical memory, giving each process a private, contiguous address space, and relies on CPU virtual addressing, MMU translation, page tables, TLB caching, multi-level paging, Linux’s memory mapping, dynamic allocation, and garbage collection to efficiently manage memory and protect processes.

LinuxMemory ManagementOperating System
0 likes · 29 min read
How Virtual Memory Works: From CPU Addressing to Linux Implementation
Liangxu Linux
Liangxu Linux
Apr 24, 2023 · Fundamentals

How MMU Enables Virtual Memory, Protection, and Process Isolation

The article explains the role of a Memory Management Unit (MMU) in translating virtual to physical addresses, managing page tables, providing memory protection and sharing, and why modern operating systems like Linux rely on it while some embedded systems can operate without one.

MMUOperating SystemsPage Table
0 likes · 7 min read
How MMU Enables Virtual Memory, Protection, and Process Isolation
Liangxu Linux
Liangxu Linux
Apr 17, 2023 · Fundamentals

Why Does a Process’s Address Space Include the Kernel?

This article explains why a Linux process’s address space contains the kernel, covering virtual memory concepts, user and kernel mode separation, page table mappings, and how mapping the kernel into each process avoids costly page‑table switches during system calls, interrupts, and exceptions.

Operating SystemProcess Address SpaceVirtual Memory
0 likes · 5 min read
Why Does a Process’s Address Space Include the Kernel?
Open Source Linux
Open Source Linux
Mar 7, 2023 · Fundamentals

How Virtual Memory Powers Modern Operating Systems: A Deep Dive

Virtual memory abstracts physical memory, providing each process with a private, contiguous address space, while the CPU, MMU, page tables, TLB, and paging mechanisms collaborate to translate virtual addresses, manage page faults, and optimize performance through locality, multi‑level tables, and memory‑mapped files.

Memory ManagementOperating SystemsPaging
0 likes · 31 min read
How Virtual Memory Powers Modern Operating Systems: A Deep Dive
Baidu App Technology
Baidu App Technology
Feb 2, 2023 · Fundamentals

Inside iOS: How Mach Virtual Memory and Memory Pressure Work

This article explains the architecture of Mach virtual memory in iOS, details its page‑based management, describes the core data structures and kernel APIs, analyzes the Objective‑C alloc implementation, and walks through the memory‑pressure (Jetsam) mechanism that triggers low‑memory warnings.

KernelMachMemory Management
0 likes · 21 min read
Inside iOS: How Mach Virtual Memory and Memory Pressure Work
Tencent Cloud Developer
Tencent Cloud Developer
Nov 16, 2022 · Fundamentals

Virtual Memory, Address Translation, and I/O Models in Operating Systems

Virtual memory extends limited physical RAM by giving each process a large address space translated via page tables and a TLB, while multi‑level tables manage size, and the OS separates kernel and user space, offering blocking/non‑blocking, synchronous/asynchronous, multiplexed I/O, reactor patterns, and zero‑copy techniques to optimize data transfer.

I/O MultiplexingOperating SystemTLB
0 likes · 28 min read
Virtual Memory, Address Translation, and I/O Models in Operating Systems
Bin's Tech Cabin
Bin's Tech Cabin
Oct 24, 2022 · Fundamentals

Unlocking Linux Kernel Memory Management: From Virtual Addresses to Physical Memory

This comprehensive guide explores Linux kernel memory management, explaining virtual and physical address concepts, the layout of process and kernel virtual memory spaces on 32‑ and 64‑bit systems, the role of mm_struct and vm_area_struct, and how ELF binaries are mapped into memory, while also detailing DRAM organization and CPU memory access.

LinuxMemory ManagementVirtual Memory
0 likes · 82 min read
Unlocking Linux Kernel Memory Management: From Virtual Addresses to Physical Memory
Java High-Performance Architecture
Java High-Performance Architecture
Aug 25, 2022 · Fundamentals

Unlocking mmap: How Memory‑Mapped Files Boost Linux Performance

This article explains the mmap system call’s core concepts, mapping process, kernel mechanisms, differences from traditional file I/O, performance benefits, and practical usage details, helping readers understand how memory‑mapped files work in Linux and why they’re advantageous for high‑performance applications.

LinuxMemory Mapped FilesVirtual Memory
0 likes · 13 min read
Unlocking mmap: How Memory‑Mapped Files Boost Linux Performance
Architects' Tech Alliance
Architects' Tech Alliance
Jul 1, 2022 · Fundamentals

Understanding Operating System Evolution, Boundaries, and Memory Management

This article explains how operating systems acquire execution rights from BIOS, traces their historical evolution from mainframes to modern platforms, examines their core functions and business value, and delves into memory management techniques such as real‑mode, protected‑mode, virtual memory, paging, and page‑fault handling.

Boot ProcessMemory ManagementOperating System
0 likes · 19 min read
Understanding Operating System Evolution, Boundaries, and Memory Management
Open Source Linux
Open Source Linux
Jun 15, 2022 · Fundamentals

Why TLBs Matter: Unlocking Faster Memory Access in Modern CPUs

This article explains the role of the Translation Lookaside Buffer (TLB) in virtual‑to‑physical address translation, details multi‑level page‑table walks, discusses aliasing and ambiguity issues across processes, and explores techniques such as ASID and global mappings to minimize costly TLB flushes.

ASIDPage TableTLB
0 likes · 11 min read
Why TLBs Matter: Unlocking Faster Memory Access in Modern CPUs
IT Services Circle
IT Services Circle
Jun 10, 2022 · Fundamentals

Page Replacement Algorithms: OPT, FIFO, LRU, CLOCK, and LFU

This article reviews virtual memory concepts and explains five page replacement algorithms—Optimal (OPT), First‑In‑First‑Out (FIFO), Least Recently Used (LRU), CLOCK (including a simple and improved version), and Least Frequently Used (LFU)—detailing their principles, operation, advantages, drawbacks, and illustrative examples.

FIFOLRUOPT
0 likes · 14 min read
Page Replacement Algorithms: OPT, FIFO, LRU, CLOCK, and LFU
ITPUB
ITPUB
May 10, 2022 · Fundamentals

Master Linux Memory Management: Virtual & Physical Memory Explained

This article provides a comprehensive guide to Linux memory management on x86‑32 systems, covering virtual address spaces, physical address translation, memory zones, user and kernel space layouts, the buddy and slab allocators, malloc/kmalloc/vmalloc mechanisms, and useful commands for inspecting memory usage.

KernelLinuxPhysical Memory
0 likes · 25 min read
Master Linux Memory Management: Virtual & Physical Memory Explained
Tencent Database Technology
Tencent Database Technology
Mar 29, 2022 · Fundamentals

Understanding Memory Management: From OS to MySQL

This article explores memory management concepts from both operating system and MySQL perspectives, covering virtual vs physical memory, process memory usage analysis using tools like top and /proc, and experimental verification of memory allocation behaviors.

LinuxOperating SystemsSystem Administration
0 likes · 9 min read
Understanding Memory Management: From OS to MySQL
ITPUB
ITPUB
Jan 27, 2022 · Fundamentals

Why Does Linux Need Complex Memory Management? Inside Virtual Memory, malloc, and OOM

This article explains the reasons behind Linux's sophisticated memory management, covering virtual memory mechanisms, page tables, MMU/TLB interactions, page fault handling, the layout of a process's address space, glibc's malloc internals, memory reclamation techniques, and the OOM killer's decision process.

KernelLinuxOOM
0 likes · 33 min read
Why Does Linux Need Complex Memory Management? Inside Virtual Memory, malloc, and OOM
Architects' Tech Alliance
Architects' Tech Alliance
Nov 17, 2021 · Fundamentals

Understanding Operating System Evolution, Boundaries, and Memory Management

The article explains how operating systems acquire execution control, traces their historical evolution from early mainframes to modern mobile platforms, and details memory management techniques in real and protected modes, highlighting the roles of BIOS, boot loaders, virtual memory, and the shifting boundaries between hardware, OS, and browsers.

Boot ProcessMemory ManagementOperating System
0 likes · 20 min read
Understanding Operating System Evolution, Boundaries, and Memory Management
Laravel Tech Community
Laravel Tech Community
Nov 2, 2021 · Operations

Understanding Virtual Memory: Concepts, Paging, and Management in Linux

This article explains the fundamentals of virtual memory, including paging, page tables, swap, and Linux management commands, highlighting how virtual memory abstracts physical addresses, resolves process memory conflicts, and enhances security and data sharing while providing practical tips for monitoring and tuning memory usage.

LinuxMemory ManagementPage Table
0 likes · 9 min read
Understanding Virtual Memory: Concepts, Paging, and Management in Linux
Programmer DD
Programmer DD
Aug 25, 2021 · Databases

Understanding Redis Virtual Memory (VM): Mechanism, Config & Best Practices

This article explains Redis's virtual memory (VM) feature, how it swaps cold data to disk while keeping keys in memory, details configuration parameters, describes the two threading models for data swap-in/out, and highlights why Redis's custom VM implementation boosts performance.

CacheConfigurationVirtual Memory
0 likes · 8 min read
Understanding Redis Virtual Memory (VM): Mechanism, Config & Best Practices
Programmer DD
Programmer DD
Jul 28, 2021 · Fundamentals

Understanding Linux Virtual Memory: From Pages to Swap

This article explains the fundamentals of Linux virtual memory, covering its origin, paging and page tables, memory addressing, the role of swap, common questions about 32‑bit vs 64‑bit systems, and practical commands for monitoring and configuring virtual memory on Linux.

LinuxMemory ManagementOperating System
0 likes · 13 min read
Understanding Linux Virtual Memory: From Pages to Swap
ITPUB
ITPUB
Jun 18, 2021 · Fundamentals

Understanding Linux Virtual Memory: Paging, Swapping, and Management Commands

This article explains the core concepts of Linux virtual memory, including why it exists, how paging and page tables work, the role of the MMU, swap usage, common pitfalls, and practical commands for inspecting and tuning memory behavior on a Linux system.

LinuxOS fundamentalsPaging
0 likes · 11 min read
Understanding Linux Virtual Memory: Paging, Swapping, and Management Commands
Liangxu Linux
Liangxu Linux
May 31, 2021 · Fundamentals

Demystifying Linux Virtual Memory: Concepts, Paging, and Practical Commands

This article explains Linux virtual memory fundamentals, covering its purpose, paging and page tables, address translation, swap usage, common issues like 32‑bit vs 64‑bit limits, and practical commands such as free, vmstat, pmap, and sysctl for monitoring and configuring memory management.

LinuxMemory ManagementOperating System
0 likes · 12 min read
Demystifying Linux Virtual Memory: Concepts, Paging, and Practical Commands
Liangxu Linux
Liangxu Linux
May 25, 2021 · Fundamentals

Why Virtual Memory Feels Like a Hotel: Understanding Linux Paging

This article uses vivid analogies to explain the concepts of physical memory, virtual memory, and Linux's paging mechanism, showing how operating systems abstract hardware resources to simplify programming while managing limited RAM through disk-backed storage.

LinuxMemory ManagementOperating System
0 likes · 9 min read
Why Virtual Memory Feels Like a Hotel: Understanding Linux Paging
Tencent Music Tech Team
Tencent Music Tech Team
Mar 4, 2021 · Mobile Development

Analysis of Android Virtual Memory and Address Space in QQ Music/Karaoke App

The article explains Android virtual memory concepts, address space limits for 32‑ and 64‑bit apps, layout of QQ Music/Karaoke process memory, tools for inspecting /proc/pid/smaps, and shows how memory growth (e.g., loading libYTCommon.so) can cause 32‑bit apps to hit the 4 GB limit and crash.

AndroidMemory ManagementMobile Development
0 likes · 20 min read
Analysis of Android Virtual Memory and Address Space in QQ Music/Karaoke App
Liangxu Linux
Liangxu Linux
Jan 10, 2021 · Fundamentals

Why Does Your Computer Need Virtual Memory? A Deep Dive into Memory Management

This article explains the fundamentals of operating‑system memory management, covering physical memory limits, the need for address spaces, base‑limit protection, paging, virtual memory mapping, page‑fault handling, and a comprehensive review of page‑replacement algorithms such as FIFO, LRU, Clock, and Working‑Set.

Memory ManagementPagingTLB
0 likes · 26 min read
Why Does Your Computer Need Virtual Memory? A Deep Dive into Memory Management
ITPUB
ITPUB
Dec 12, 2020 · Operations

Why Does Linux Need Swapping? Uncovering Memory Management Mechanics

This article explains Linux's swapping mechanism, detailing how the kernel moves rarely used memory pages to disk to handle memory shortage and idle memory, the underlying allocation paths, key parameters, and the trade‑offs involved for system performance and stability.

SwappingVirtual Memorymemory-management
0 likes · 11 min read
Why Does Linux Need Swapping? Uncovering Memory Management Mechanics
Liangxu Linux
Liangxu Linux
Oct 22, 2020 · Fundamentals

Mastering Core OS Concepts: Processes, Memory, Files, I/O, and Protection

This article introduces fundamental operating‑system concepts—including processes, address spaces, file systems, I/O devices, protection mechanisms, and virtual memory—explaining their roles, state models, and how they enable reliable communication between hardware and application software.

Memory ManagementOperating SystemVirtual Memory
0 likes · 19 min read
Mastering Core OS Concepts: Processes, Memory, Files, I/O, and Protection
Liangxu Linux
Liangxu Linux
May 11, 2020 · Fundamentals

Understanding Linux Executable Files and Their Virtual Address Space

This article explains how Linux creates a new process with its own virtual address space, maps ELF executable segments to memory regions, describes the roles of code, data, and BSS sections, shows how to inspect mappings via /proc/pid/maps, and clarifies segment‑section relationships and loading details.

ELFProcess Address SpaceSegments
0 likes · 9 min read
Understanding Linux Executable Files and Their Virtual Address Space
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
JavaEdge
JavaEdge
Aug 17, 2019 · Fundamentals

Why 640K Was Once “Enough” and How Modern Memory Management Solves It

From Bill Gates’s 640 KB claim to today’s multi‑gigabyte machines, this article explains how loaders map executable files, the evolution from segmentation to swapping and paging, and why virtual memory lets programs run with far less physical RAM despite performance trade‑offs.

Memory ManagementOperating SystemsPaging
0 likes · 12 min read
Why 640K Was Once “Enough” and How Modern Memory Management Solves It
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Aug 29, 2018 · Fundamentals

Why Java Processes Show 50GB+ VIRT Memory and How to Control It

An investigation reveals that Java 8 processes can report virtual memory usage exceeding 50 GB due to extensive address space allocation by glibc’s arena mechanism, not actual physical memory, and explains how environment variables like MALLOC_ARENA_MAX can limit this VIRT growth.

MALLOC_ARENA_MAXVIRTVirtual Memory
0 likes · 5 min read
Why Java Processes Show 50GB+ VIRT Memory and How to Control It
21CTO
21CTO
Aug 1, 2018 · Fundamentals

Why Virtual Memory and Paging Make Your Computer Faster and Safer

This article explains how memory serves as the main storage for processes, introduces the concepts of virtual memory and paging, and describes how page tables and multi‑level paging enable efficient address translation, isolation, and sharing in modern operating systems.

Memory ManagementPagingVirtual Memory
0 likes · 12 min read
Why Virtual Memory and Paging Make Your Computer Faster and Safer
ITPUB
ITPUB
Aug 1, 2018 · Fundamentals

How Does Linux Manage Memory? A Deep Dive into Virtual Memory and Paging

This article explains the fundamentals of computer memory, covering linear addresses, virtual memory translation, paging mechanisms, page size queries, and the structure of multi‑level page tables used by Linux to efficiently map virtual to physical memory.

LinuxPage TablePaging
0 likes · 13 min read
How Does Linux Manage Memory? A Deep Dive into Virtual Memory and Paging
MaGe Linux Operations
MaGe Linux Operations
Jul 31, 2018 · Fundamentals

Understanding Memory, Virtual Memory, and Paging in Linux

This article explains how computer memory works, covering physical memory characteristics, address spaces, RAM's random access nature, virtual memory translation, paging mechanisms, page size queries, and multi‑level page tables that enable efficient and secure memory management in Linux.

LinuxMemory ManagementOperating System
0 likes · 13 min read
Understanding Memory, Virtual Memory, and Paging in Linux
ITPUB
ITPUB
Jul 26, 2017 · Fundamentals

Why Linux Uses Virtual Memory and How It Works

This article explains the need for virtual memory in Linux, describes its implementation mechanisms such as swap space and lazy allocation, and details the typical layout of the kernel and user address spaces, including high‑memory handling and zone mapping.

KernelMemory ManagementSwap
0 likes · 14 min read
Why Linux Uses Virtual Memory and How It Works
ITPUB
ITPUB
Nov 14, 2016 · Fundamentals

How Linux Kernel Turns malloc Calls into Physical Memory: A Simple Guide

This article explains Linux kernel memory management by describing how user‑level malloc allocates virtual memory, how page tables map virtual to physical addresses, and how the hardware‑triggered page‑fault mechanism ultimately provides the needed physical pages.

KernelMemory ManagementPage Fault
0 likes · 9 min read
How Linux Kernel Turns malloc Calls into Physical Memory: A Simple Guide
MaGe Linux Operations
MaGe Linux Operations
Oct 6, 2016 · Fundamentals

Understanding Linux’s Three‑Tier Physical Memory and Virtual Page Table Architecture

This article explains Linux’s hardware‑independent three‑tier physical memory model (node, zone, page) and the three‑level virtual memory page‑table hierarchy (PGD, PMD, PTE), including key macros, structure definitions, and the macros used to walk the tables from a virtual address to a physical page.

LinuxMemory ManagementVirtual Memory
0 likes · 6 min read
Understanding Linux’s Three‑Tier Physical Memory and Virtual Page Table Architecture