Tag

Virtual Memory

0 views collected around this technical thread.

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.

Virtual Memorylinuxmemory management
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.

CPUCacheComputer Architecture
0 likes · 21 min read
Understanding CPU Cache, Memory Hierarchy, and Concurrency Control
Deepin Linux
Deepin Linux
May 1, 2025 · Fundamentals

Understanding Memory and Process Interaction: Virtual Memory, Paging, and Allocation in Linux

This article explains how memory works as a temporary storage stage for processes, describes the fundamentals of physical and virtual memory, details paging, page tables, multi‑level paging, allocation mechanisms such as brk() and mmap(), and outlines Linux memory‑management techniques including caching, swapping, and OOM handling.

MMUOOMPaging
0 likes · 33 min read
Understanding Memory and Process Interaction: Virtual Memory, Paging, and Allocation in Linux
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 SystemsVirtual Memorydynamic partition
0 likes · 6 min read
Evolution of Memory Management: Fixed Partition, Dynamic Partition, and Overlay Techniques
Deepin Linux
Deepin Linux
Apr 8, 2025 · Fundamentals

Understanding Linux Virtual Memory: Principles, Mechanisms, Tools, and Optimization Strategies

This article provides a comprehensive overview of Linux virtual memory, explaining its purpose, page‑based architecture, page‑table mappings, fault handling, swap mechanisms, useful monitoring commands, and practical optimization techniques for both kernel parameters and application code.

PagingSwapVirtual Memory
0 likes · 31 min read
Understanding Linux Virtual Memory: Principles, Mechanisms, Tools, and Optimization Strategies
Deepin Linux
Deepin Linux
Apr 5, 2025 · Fundamentals

Understanding Linux Kernel Reverse Mapping (RMAP): Concepts, Data Structures, and Implementation

This article explains the Linux kernel reverse‑mapping (RMAP) mechanism, covering its historical background, core concepts, key data structures such as anon_vma and anon_vma_chain, and the detailed workflow for page creation, fork handling, and page reclaim or migration, with full code examples.

Anonymous PagesRMAPReverse Mapping
0 likes · 27 min read
Understanding Linux Kernel Reverse Mapping (RMAP): Concepts, Data Structures, and Implementation
Deepin Linux
Deepin Linux
Mar 25, 2025 · Fundamentals

Understanding x86-64 Memory Paging Mechanism and Its Implementation

This article explains the role, operation, and different modes of x86‑64 memory paging, describes how page directories and tables are set up in assembly, shows the relevant control‑register bits, and provides practical code examples for enabling and managing paging in a protected‑mode kernel.

Operating SystemPage TablesVirtual Memory
0 likes · 43 min read
Understanding x86-64 Memory Paging Mechanism and Its Implementation
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.

Operating SystemVirtual Memorykernel
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.

SwapVirtual Memorylinux
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.

Operating SystemPerformanceRAM
0 likes · 6 min read
Does Adding More RAM Speed Up a Computer?
Deepin Linux
Deepin Linux
Jan 1, 2025 · Fundamentals

Understanding Linux Paging Mechanism and Virtual Memory Management

This article explains Linux's paging mechanism, covering the basics of virtual memory, page tables, multi‑level paging structures, virtual memory layout, allocation and reclamation strategies, and the performance and security benefits that paging brings to modern operating systems.

Page TablesPagingVirtual Memory
0 likes · 27 min read
Understanding Linux Paging Mechanism and Virtual Memory Management
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.

GPUMemory OptimizationPerformance
0 likes · 25 min read
Memory Optimization for Large Model Inference: Virtual Tensor and LayerKV Techniques
Refining Core Development Skills
Refining Core Development Skills
Aug 5, 2024 · Fundamentals

Deep Dive into Linux Processes and Memory: A Comprehensive Guide

This article introduces a new book 'Deep Understanding of Linux Processes and Memory' that systematically explains CPU, memory, and process scheduling principles, covering hardware fundamentals, virtual memory, Golang coroutines, container resource management, and performance optimization techniques.

CPU architectureProcessesVirtual Memory
0 likes · 5 min read
Deep Dive into Linux Processes and Memory: A Comprehensive Guide
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.

Operating SystemPagingVirtual Memory
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.

Operating SystemsPage TablesVirtual Memory
0 likes · 34 min read
Understanding Memory Paging and Page Table Structures in x86-64
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.

IPCMMAPVirtual 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 kernelVirtual Memorymemfd
0 likes · 10 min read
Linux Shared Memory (shmem) Deep Dive: Architecture, Implementation, and Practice
Deepin Linux
Deepin Linux
Nov 27, 2023 · Fundamentals

Understanding Linux Memory Mapping (mmap): Concepts, APIs, and Source‑Code Analysis

This article explains the fundamentals of memory‑mapped files in Linux, covering the mmap/munmap interfaces, mapping types, protection flags, error handling, virtual‑memory structures, kernel implementation details, driver examples, and practical use‑cases such as shared memory and high‑performance I/O.

MMAPVirtual Memorykernel
0 likes · 34 min read
Understanding Linux Memory Mapping (mmap): Concepts, APIs, and Source‑Code Analysis
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 ProgrammingPhysical MemoryVirtual Memory
0 likes · 37 min read
Master Linux Memory Management: From Physical Pages to Virtual Addressing
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