Tag

Memory Compaction

0 views collected around this technical thread.

OPPO Kernel Craftsman
OPPO Kernel Craftsman
Nov 10, 2023 · Operations

Memory Compaction in the Linux Kernel: Mechanisms, Strategies, and Implementation Details

Linux’s memory compaction mitigates external fragmentation by moving movable pages, employing four strategies—direct, passive (kcompactd), proactive, and active—each invoking the compact_zone core with configurable compact_control parameters, migrate‑page and free‑page scanners, and distinct trigger and exit conditions.

Linux kernelMemory CompactionPage Migration
0 likes · 45 min read
Memory Compaction in the Linux Kernel: Mechanisms, Strategies, and Implementation Details
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jul 3, 2020 · Fundamentals

Overview of Linux Physical Memory Fragmentation and Management

Linux uses a buddy‑system allocator organized into nodes and zones to manage physical memory, distinguishing internal fragmentation (unused space within allocated blocks) from external fragmentation (insufficient contiguous free blocks), and mitigates the latter through memory compaction, the kcompactd daemon, and various allocation‑policy optimizations.

Buddy SystemMemory CompactionMemory Management
0 likes · 12 min read
Overview of Linux Physical Memory Fragmentation and Management