Deepin Linux
Deepin Linux
Apr 27, 2026 · Fundamentals

Understanding the SLUB Memory Allocator: A Deep Dive into Linux Kernel Object Management

SLUB, the default Linux kernel memory allocator, reduces fragmentation and improves allocation speed for frequently created objects like task_struct and inode by using per‑CPU caches, object slabs, and NUMA‑aware node caches, with detailed structures, allocation/free paths, tuning parameters, and real‑world case studies.

Linux kernelNUMAPerformance Tuning
0 likes · 46 min read
Understanding the SLUB Memory Allocator: A Deep Dive into Linux Kernel Object Management
Open Source Linux
Open Source Linux
Jun 26, 2023 · Fundamentals

How Linux Organizes Memory: From Physical Pages to Virtual Address Mapping

This article explains how Linux manages memory by organizing physical pages, using zones and nodes, allocating memory with the buddy system and SLUB, structuring user and kernel virtual address spaces, and translating virtual addresses to physical ones via page tables, TLBs, and dynamic mapping.

Buddy systemLinuxSLUB
0 likes · 13 min read
How Linux Organizes Memory: From Physical Pages to Virtual Address Mapping
Bin's Tech Cabin
Bin's Tech Cabin
Jun 17, 2023 · Fundamentals

Why Linux Relies on Slab Allocators: Inside the Kernel’s Small Object Pool

This article explains how the Linux kernel supplements its buddy system with the slab allocator to efficiently manage tiny memory blocks, covering slab’s design, memory layout, red‑zone protection, poisoning, per‑CPU caches, NUMA node warehouses, allocation fast‑paths, slow‑paths, and release strategies.

KernelLinuxSLUB
0 likes · 58 min read
Why Linux Relies on Slab Allocators: Inside the Kernel’s Small Object Pool
Bin's Tech Cabin
Bin's Tech Cabin
Apr 4, 2023 · Fundamentals

Why Does Linux Need a Slab Allocator? Unveiling the Secrets of Kernel Memory Pools

This article revisits Linux memory allocation, then dives deep into the slab allocator—explaining its relationship with the buddy system, its internal layout, the differences between slab, slub and slob, and how the kernel uses slab caches, per‑CPU caches, and NUMA nodes to efficiently allocate and free small memory objects.

KernelLinuxSLUB
0 likes · 66 min read
Why Does Linux Need a Slab Allocator? Unveiling the Secrets of Kernel Memory Pools
AI Cyberspace
AI Cyberspace
Mar 27, 2023 · Fundamentals

Understanding Linux Memory Allocation: Buddy, Slab, and Slub Explained

Linux’s memory allocation mechanisms—Buddy for main memory and Slab/Slub for CPU cache—aim to maximize memory utilization, minimize fragmentation, and boost allocation efficiency, with detailed explanations of their structures, operation steps, and how to inspect them via /proc interfaces.

Buddy AllocatorKernelLinux
0 likes · 9 min read
Understanding Linux Memory Allocation: Buddy, Slab, and Slub Explained