Tagged articles
30 articles
Page 1 of 1
Deepin Linux
Deepin Linux
Oct 28, 2025 · Fundamentals

Why kmalloc Is the Secret Weapon for Fast Kernel Memory Allocation

This article explains how the Linux kernel's kmalloc function provides fast, contiguous physical memory allocation using the slab allocator, covering its API, internal mechanisms, allocation flags, memory management strategies, common pitfalls, and practical kernel module examples for developers.

Linux kernelSlab Allocatorkernel-development
0 likes · 73 min read
Why kmalloc Is the Secret Weapon for Fast Kernel Memory Allocation
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 AlgorithmLinuxMemory Management
0 likes · 60 min read
Unlocking Linux Memory Management: From malloc to Buddy Allocation
Deepin Linux
Deepin Linux
May 26, 2025 · Fundamentals

Understanding Linux Memory Management: Bootmem, Memblock, Buddy Allocator, and Slab Allocator

This article provides a comprehensive overview of Linux memory management, detailing the roles and mechanisms of the early boot memory allocator, the memblock subsystem, the buddy allocator for physical pages, and the slab allocator for small objects, including their data structures, algorithms, and practical usage scenarios.

BootmemKernelOperating System
0 likes · 72 min read
Understanding Linux Memory Management: Bootmem, Memblock, Buddy Allocator, and Slab Allocator
Open Source Linux
Open Source Linux
Mar 28, 2024 · Fundamentals

Unlocking Linux Memory: From Basics to Advanced Allocation Algorithms

This comprehensive guide explores Linux memory fundamentals, address space layout, fragmentation causes, and optimization techniques, detailing the buddy and slab allocation algorithms, memory pools, DMA handling, user‑space allocation functions, common pitfalls, and tools for monitoring and debugging memory usage on Linux systems.

LinuxSlab Allocatorbuddy system
0 likes · 20 min read
Unlocking Linux Memory: From Basics to Advanced Allocation Algorithms
Deepin Linux
Deepin Linux
Dec 4, 2023 · Fundamentals

Linux Memory Management: Bootmem, Buddy, and Slab Allocators Explained

This article provides an in‑depth overview of Linux memory management, covering the three primary allocators—bootmem, buddy, and slab—including their data structures, initialization, allocation and free mechanisms, code examples, and the role of memblock and zone watermarks.

AllocatorsLinuxSlab Allocator
0 likes · 67 min read
Linux Memory Management: Bootmem, Buddy, and Slab Allocators Explained
Liangxu Linux
Liangxu Linux
Sep 18, 2023 · Fundamentals

Master Linux Memory Management: From CPU Access to CMA and Page Faults

This comprehensive guide walks through Linux memory management, explaining CPU memory access, virtual‑to‑physical address translation, page‑table structures, zone organization, the buddy and slab allocators, vmalloc, page‑fault handling, and the Contiguous Memory Allocator (CMA) with detailed code examples and diagrams.

CMASlab Allocatorbuddy allocator
0 likes · 29 min read
Master Linux Memory Management: From CPU Access to CMA and Page Faults
Liangxu Linux
Liangxu Linux
Jul 23, 2023 · Backend Development

Unlocking Linux Memory: From Address Spaces to Allocation Algorithms

This article provides a comprehensive guide to Linux memory management, covering memory fundamentals, address space layout, paging and segmentation, the buddy and slab allocation algorithms, kernel and user‑space memory pools, common pitfalls, and practical tools for monitoring and debugging memory usage.

DMALinuxSlab Allocator
0 likes · 18 min read
Unlocking Linux Memory: From Address Spaces to Allocation Algorithms
Open Source Linux
Open Source Linux
Jul 17, 2023 · Backend Development

Unlocking Linux Memory: From Address Spaces to Allocation Algorithms

This comprehensive guide explores Linux memory fundamentals, address space layout, fragmentation, the buddy and slab allocation algorithms, kernel and user‑space memory usage scenarios, and common pitfalls, providing backend developers with practical insights to improve performance and stability.

Allocation AlgorithmsDMALinux
0 likes · 20 min read
Unlocking Linux Memory: From Address Spaces to Allocation Algorithms
Bin's Tech Cabin
Bin's Tech Cabin
Jun 20, 2023 · Fundamentals

How Linux’s kmalloc Memory Pool Works: From Slab Design to Allocation

This article explains the architecture and implementation of the Linux kernel kmalloc memory pool, detailing slab cache creation, size selection rules, cache initialization, allocation and free paths, and how different memory zones are handled, with code examples and diagrams.

KernelLinuxSlab Allocator
0 likes · 31 min read
How Linux’s kmalloc Memory Pool Works: From Slab Design to Allocation
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.

KernelLinuxMemory Management
0 likes · 9 min read
Understanding Linux Memory Allocation: Buddy, Slab, and Slub Explained
ITPUB
ITPUB
May 10, 2022 · Fundamentals

Master Linux Memory Management: Virtual & Physical Memory Explained

This article provides a comprehensive guide to Linux memory management on x86‑32 systems, covering virtual address spaces, physical address translation, memory zones, user and kernel space layouts, the buddy and slab allocators, malloc/kmalloc/vmalloc mechanisms, and useful commands for inspecting memory usage.

KernelLinuxPhysical Memory
0 likes · 25 min read
Master Linux Memory Management: Virtual & Physical Memory Explained
Architects' Tech Alliance
Architects' Tech Alliance
Feb 28, 2022 · Fundamentals

Comprehensive Guide to Linux Memory Management and Allocation Algorithms

This article provides an in‑depth overview of Linux memory architecture, including address spaces, segmentation and paging, memory allocation strategies such as the buddy and slab allocators, kernel and user‑space memory pools, DMA considerations, common pitfalls, and practical tools for monitoring and optimizing memory usage.

DMAKernelLinux
0 likes · 19 min read
Comprehensive Guide to Linux Memory Management and Allocation Algorithms
360 Smart Cloud
360 Smart Cloud
Jun 1, 2021 · Fundamentals

Physical Address Space Management and Memory Allocation in Linux (NUMA, Nodes, Zones, Pages, Slab, and Page Fault Handling)

This article explains how Linux manages physical address space using SMP and NUMA architectures, describes the node, zone, and page data structures, details page allocation via the buddy system and slab allocator, and outlines user‑ and kernel‑mode page‑fault handling, swapping, and address translation mechanisms.

LinuxMemory ManagementNUMA
0 likes · 17 min read
Physical Address Space Management and Memory Allocation in Linux (NUMA, Nodes, Zones, Pages, Slab, and Page Fault Handling)
Liangxu Linux
Liangxu Linux
May 22, 2021 · Fundamentals

Unlocking Linux Memory Management: From CPU Access to CMA and Page Allocation

This comprehensive guide walks through Linux memory management, explaining CPU memory access, virtual‑to‑physical address translation, page‑table initialization, zone organization, the buddy allocator, slab allocator, vmalloc, page‑fault handling, and CMA, providing code examples and diagrams to form a complete understanding.

KernelLinuxMemory Management
0 likes · 34 min read
Unlocking Linux Memory Management: From CPU Access to CMA and Page Allocation
ITPUB
ITPUB
Jun 18, 2020 · Fundamentals

Mastering Linux Memory Management: From Address Space to Allocation Algorithms

This article provides a comprehensive guide to Linux memory management, covering the memory organization, address spaces, fragmentation causes and mitigation, the buddy and slab allocation algorithms, kernel and user‑space memory pools, common pitfalls, and practical tools for monitoring and debugging memory usage.

KernelLinuxMemory Management
0 likes · 20 min read
Mastering Linux Memory Management: From Address Space to Allocation Algorithms
Xueersi Online School Tech Team
Xueersi Online School Tech Team
May 31, 2019 · Backend Development

Nginx Shared Memory Allocation and Slab Management Mechanism

This article explains how Nginx obtains and releases shared memory on Unix and Windows, describes the unified ngx_shm_alloc/ngx_shm_free interfaces, and details the slab allocator’s page‑level and small‑block management, including allocation strategies, bitmap handling, and fragmentation issues.

Backend DevelopmentNGINXSlab Allocator
0 likes · 15 min read
Nginx Shared Memory Allocation and Slab Management Mechanism
ITPUB
ITPUB
Dec 28, 2018 · Fundamentals

Unlocking Linux Memory: Architecture, Allocation Algorithms, and Common Pitfalls

This comprehensive guide explores Linux memory architecture, address spaces, allocation algorithms like the buddy system and slab allocator, DMA handling, user‑space allocation functions, and practical pitfalls, providing developers with essential insights to optimize performance and avoid common errors.

DMALinuxMemory Management
0 likes · 20 min read
Unlocking Linux Memory: Architecture, Allocation Algorithms, and Common Pitfalls
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Jul 30, 2017 · Backend Development

Memcached Slab Allocator Explained: Memory Management & Scaling

This article explains Memcached's slab allocator memory management, key concepts like items, chunks, slab classes and pages, the calcium problem, and how master‑slave double‑layer and L1 cache architectures enable high concurrency, high availability, and linear scaling.

Slab Allocatorcachinghigh availability
0 likes · 12 min read
Memcached Slab Allocator Explained: Memory Management & Scaling
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Nov 6, 2016 · Backend Development

Uncovering Memcached’s Slab Allocator: How Memory Is Managed and Optimized

This article explains Memcached’s slab allocator mechanism—including items, chunks, slab classes, and pages—how memory is allocated, fragmented, and evicted, and then explores master‑slave double‑layer architectures, high‑concurrency challenges, and scaling strategies such as L1 caching for robust, high‑availability deployments.

MemcachedSlab Allocator
0 likes · 11 min read
Uncovering Memcached’s Slab Allocator: How Memory Is Managed and Optimized