Tag

MemBlock

1 views collected around this technical thread.

Refining Core Development Skills
Refining Core Development Skills
Mar 25, 2025 · Fundamentals

Understanding Linux Kernel Physical Memory Management and the memblock Allocator

Linux does not expose all physical memory to users; this article explains why the kernel reserves memory, detailing the early memblock allocator, crash kernel reservations, page structure overhead, and the handoff to the buddy system, illustrating how these mechanisms consume several hundred megabytes of RAM.

Crash KernelKernelLinux
0 likes · 15 min read
Understanding Linux Kernel Physical Memory Management and the memblock Allocator
Deepin Linux
Deepin Linux
Dec 31, 2024 · Fundamentals

Understanding the Linux Kernel MemBlock Allocator: Architecture, Initialization, and Usage

An in‑depth overview of the Linux kernel MemBlock allocator explains its purpose during early boot, its core data structures (memblock, memblock_type, memblock_region), initialization process, allocation strategies, key APIs such as memblock_add, memblock_remove, memblock_alloc, and how it hands off to the buddy system.

KernelLinuxMemBlock
0 likes · 21 min read
Understanding the Linux Kernel MemBlock Allocator: Architecture, Initialization, and Usage