Tag

kmalloc

0 views collected around this technical thread.

Deepin Linux
Deepin Linux
Jun 6, 2025 · Fundamentals

Unlocking Linux Memory Management: From malloc to Buddy Allocation

This comprehensive guide explores Linux's memory management ecosystem, detailing user‑space allocators like malloc, kernel‑space mechanisms such as kmalloc, vmalloc, and mmap, and core kernel algorithms including the Buddy system, CMA, slab allocator, and memory pools, while providing code examples and practical usage tips.

Buddy AlgorithmLinuxMMAP
0 likes · 60 min read
Unlocking Linux Memory Management: From malloc to Buddy Allocation
Deepin Linux
Deepin Linux
Nov 20, 2023 · Fundamentals

Linux Memory Allocation Mechanisms: malloc, kmalloc, vmalloc, mmap, and Slab

This article explains Linux's flexible memory allocation system, covering user‑space malloc, kernel‑space kmalloc, vmalloc for large buffers, mmap for file and anonymous mappings, page allocation functions, the slab allocator, and memory pools, with detailed code examples and operational insights.

LinuxMMAPMemory Management
0 likes · 30 min read
Linux Memory Allocation Mechanisms: malloc, kmalloc, vmalloc, mmap, and Slab