Tagged articles
buddy system
27 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

The article explains why the Linux kernel reports less usable memory than the physical RAM, detailing the memblock allocator, crashkernel reservations, page‑struct overhead, and the handoff to the buddy system, showing how the kernel consumes memory for its own management.
Linux kernelbuddy systemcrashkernel
0 likes · 16 min read

This article explains the core principles of Linux kernel memory management, detailing how the buddy system handles large contiguous pages while the SLUB allocator optimizes small-object allocation, and compares their performance, fragmentation handling, and real‑world usage in servers and embedded devices.
Linux kernelOS fundamentalsSLUB allocator
0 likes · 43 min read

A deep technical dive reveals Claude Code's secret Buddy system, Auto‑Dream memory consolidation, the always‑on KAIROS mode, and powerful Ultra planning and review tools, exposing how Anthropic’s AI agent architecture works and why the recent source leak matters for developers worldwide.
AI agentsAnthropicAuto-dream
0 likes · 7 min read

This article reveals how Linux kernel memory layout—its partitions, address allocation, and resource scheduling—directly impacts system stability, explains the roles of each memory region, demonstrates common pitfalls like fragmentation and dentry leaks, and provides practical debugging and optimization techniques for developers and operators.
Kernel MemoryLinuxOOM
0 likes · 60 min read

This article explains the Linux kernel buddy system, detailing its data structures, initialization, allocation and free processes, and discusses its advantages and drawbacks in managing physical memory and reducing fragmentation.
Free AreaLinuxbuddy system
0 likes · 22 min read

This article explains Linux's memory management architecture, covering physical memory organization, the buddy and SLUB allocators, virtual address spaces for user and kernel, page‑table translation, TLB caching, and the role of swap in virtual memory.
LinuxSLUBbuddy system
0 likes · 13 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 explains how Linux organizes physical memory into pages, zones, and nodes, allocates memory using the buddy system and SLUB, structures virtual address spaces for user and kernel, and maps virtual addresses to physical memory through page tables, dynamic mapping, and TLB caching.
buddy systempage-tablesvirtual memory
0 likes · 12 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 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.
LinuxPage TableSLUB
0 likes · 13 min read

Linux’s Contiguous Memory Allocator (CMA) reserves and manages large physical memory blocks for devices by integrating with the Buddy system, using structures like struct cma, bitmap allocation, and APIs such as cma_init_reserved_mem and cma_alloc, while handling page migration, LRU and per‑CPU PCP caches to ensure efficient allocation and release.
CMAContiguous MemoryLRU cache
0 likes · 15 min read

This article explains the Linux kernel’s buddy memory allocator, covering its core data structures, the concepts of buddies, allocation and fallback mechanisms, and the detailed process of freeing memory back to the buddy system, with code examples and diagrams.
Linuxbuddy systemmemory management
0 likes · 75 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


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

Linux uses a buddy‑system allocator organized into nodes and zones to manage physical memory, distinguishing internal fragmentation (unused space within allocated blocks) from external fragmentation (insufficient contiguous free blocks), and mitigates the latter through memory compaction, the kcompactd daemon, and various allocation‑policy optimizations.
LinuxPhysical Fragmentationbuddy system
0 likes · 12 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 comprehensive guide explores Linux memory architecture, address spaces, paging, fragmentation, buddy and slab allocation algorithms, kernel and user‑space memory pools, DMA handling, practical usage scenarios, and common pitfalls, providing developers with actionable insights to optimize system performance.
Allocation AlgorithmsLinuxbuddy system
0 likes · 21 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


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
