Tagged articles
3 articles
Page 1 of 1
Linux Kernel Journey
Linux Kernel Journey
Oct 17, 2024 · Fundamentals

Inside Linux Memory Compaction: A Source‑Code Walkthrough of Memory Management

The article explains how Linux manages memory page watermarks, when the allocator falls back to kswapd, and the exact conditions that trigger direct compaction via __alloc_pages_direct_compact, then walks through the core compaction functions—try_to_compact_pages, compact_zone_order, compact_zone, and the page‑migration helpers—illustrated with flow diagrams and real kernel code.

CLinuxMemory Management
0 likes · 37 min read
Inside Linux Memory Compaction: A Source‑Code Walkthrough of Memory Management
Bin's Tech Cabin
Bin's Tech Cabin
Nov 21, 2022 · Fundamentals

Inside Linux Physical Memory Management: From FLATMEM to NUMA, Watermarks, and Page Structures

This article provides an in‑depth, step‑by‑step explanation of how the Linux kernel organizes and manages physical memory, covering memory models (FLATMEM, DISCONTIGMEM, SPARSEMEM), NUMA vs. UMA architectures, zone partitioning, watermarks, reserved pages, hot‑cold page handling, and the detailed struct page layout used for both anonymous and file‑backed pages.

LinuxMemory ManagementNUMA
0 likes · 99 min read
Inside Linux Physical Memory Management: From FLATMEM to NUMA, Watermarks, and Page Structures
Liangxu Linux
Liangxu Linux
Aug 3, 2020 · Fundamentals

Understanding Linux Memory Management: Segments, Paging, and Allocation

This article explains how Linux organizes a process's address space into text, data, and stack segments, describes virtual memory concepts such as paging, page tables, and page faults, and details the kernel's allocation, deallocation, and memory‑mapping mechanisms including brk, mmap, and the buddy allocator.

LinuxPagingkernel
0 likes · 22 min read
Understanding Linux Memory Management: Segments, Paging, and Allocation