Tagged articles
slab allocator
32 articles · Page 1 of 1
This article comprehensively covers Linux memory organization, virtual address spaces, buddy and slab allocation algorithms, memory usage scenarios, common C/C++ memory pitfalls, and practical monitoring commands.
C++ smart pointersDMALinux memory management
0 likes · 23 min read

This comprehensive guide covers Linux memory fundamentals, address space layout, buddy and slab allocation algorithms, kernel/user memory APIs, page fault handling, shared memory, common C/C++ memory pitfalls, and essential monitoring tools for backend developers.
C++ smart pointersLinux kernelShared Memory
0 likes · 25 min read

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 kernelkernel-developmentkmalloc
0 likes · 73 min read

This article explores Linux's dynamic memory management, covering virtual and physical memory, user and kernel space separation, paging and segmentation, mmap and brk allocation methods, the slab allocator, malloc/free behavior, and the system's memory reclamation strategies including swap usage.
Linuxdynamic allocationmemory management
0 likes · 33 min read

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 AlgorithmLinuxkmalloc
0 likes · 60 min read

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.
Bootmembuddy allocatorkernel
0 likes · 72 min read

This comprehensive guide explains Linux memory fundamentals, address space layout, fragmentation, the buddy and slab allocators, kernel and user‑mode memory pools, DMA handling, common programming pitfalls, and practical tools for monitoring memory usage.
DMALinuxbuddy system
0 likes · 19 min read

This comprehensive guide explores Linux memory architecture, address spaces, allocation strategies like the buddy and slab allocators, user‑ and kernel‑level memory management, DMA, and practical tips to avoid common memory bugs and performance issues.
DMALinuxbuddy system
0 likes · 17 min read

This article provides a comprehensive guide to Linux memory management, covering memory fundamentals, address spaces, MMU translation, segmentation and paging, the buddy and slab allocation algorithms, kernel and user memory pools, typical usage scenarios, common bugs, and practical tools for monitoring and debugging memory usage.
DMALinuxMemory Leak
0 likes · 25 min read

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.
Linuxbuddy systemslab allocator
0 likes · 20 min read

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.
AllocatorsLinuxbuddy allocator
0 likes · 67 min read

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.
CMAbuddy allocatorpage-tables
0 likes · 29 min read

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.
DMALinuxbuddy allocator
0 likes · 18 min read

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

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.
Linuxkernelkmalloc
0 likes · 31 min read

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.
LinuxSLUBkernel
0 likes · 58 min read

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.
LinuxSLUBkernel
0 likes · 66 min read

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.
LinuxSLUBbuddy allocator
0 likes · 9 min read


ITPUBMay 10, 2022 · Fundamentals
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.
LinuxPhysical Memorybuddy system
0 likes · 25 min read

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.
DMALinuxbuddy allocator
0 likes · 19 min read

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.
LinuxNUMAmemory management
0 likes · 17 min read

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.
Linuxbuddy allocatorkernel
0 likes · 34 min read


ITPUBJan 25, 2021 · Fundamentals
This article explains how Linux 3.10 organizes memory using NUMA nodes, zones, the buddy system, and the SLAB allocator, providing commands, code examples, and visual diagrams to illustrate each layer of the kernel's efficient memory management.
LinuxNUMAbuddy system
0 likes · 11 min read

This article explains the Linux kernel memory management hierarchy—including NUMA nodes, memory zones, the buddy system for free pages, and the SLAB allocator—providing command‑line examples, code snippets, and visual diagrams to illustrate how the kernel efficiently allocates and reclaims memory.
LinuxNUMAbuddy system
0 likes · 11 min read

This comprehensive guide walks through Linux memory management fundamentals, covering virtual address spaces, physical memory zones, user‑space structures, kernel allocation strategies like the buddy system and slab allocator, and practical commands for inspecting memory usage.
Kernel SpaceLinuxbuddy system
0 likes · 22 min read


ITPUBJun 18, 2020 · Fundamentals
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.
Linuxbuddy systemfragmentation
0 likes · 20 min read

This article explains how Linux maps logical to physical addresses, describes the buddy and slab memory allocation mechanisms, outlines their limitations and improvements such as slub and vmalloc, and details the page‑fault handling process including registers involved and swap behavior.
buddy systemkernelmemory management
0 likes · 7 min read

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.
Shared Memorybackend developmentnginx
0 likes · 15 min read


ITPUBDec 28, 2018 · Fundamentals
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.
DMALinuxUser Space Allocation
0 likes · 20 min read

This article explains how Linux manages memory by covering address translation, the buddy and slab allocation systems, the role of vmalloc and kmap, and the detailed handling of page faults, providing programmers with essential knowledge of kernel and user‑space memory operations.
Linuxbuddy systemmemory management
0 likes · 8 min read

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.
CachingHigh Availabilityslab allocator
0 likes · 12 min read

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
