Tagged articles
17 articles
Page 1 of 1
Deepin Linux
Deepin Linux
May 13, 2026 · Fundamentals

Don’t Claim Linux Memory‑Tuning Skills Without Mastering Memory Compaction

This article explains Linux memory compaction—from its core principles and page‑migration mechanics to the different compaction strategies, trigger conditions, practical test cases, and optimization tips—showing how proper compaction resolves fragmentation, improves allocation success, and boosts overall system performance.

KernelLinuxMemory Compaction
0 likes · 47 min read
Don’t Claim Linux Memory‑Tuning Skills Without Mastering Memory Compaction
Deepin Linux
Deepin Linux
May 11, 2026 · Fundamentals

Eliminate Memory Fragmentation: Understanding Memory Pools

The article explains how frequent dynamic allocations cause external and internal memory fragmentation, illustrates the problem with C++ examples, and shows that pre‑allocating a large contiguous block as a memory pool—managed via block division, free‑list tracking, and thread‑safe operations—significantly reduces fragmentation, improves allocation speed, and boosts concurrency performance.

CMemory FragmentationPerformance Optimization
0 likes · 30 min read
Eliminate Memory Fragmentation: Understanding Memory Pools
MaGe Linux Operations
MaGe Linux Operations
Dec 26, 2025 · Operations

Taming vLLM OOM: Real‑World Causes and Proven Fixes for Production

This article examines why vLLM experiences out‑of‑memory errors in production, explains memory fragmentation caused by PagedAttention, outlines four typical OOM scenarios with concrete command‑line solutions, and provides deep analysis, configuration scripts, dynamic tuning, troubleshooting flowcharts, monitoring alerts, and best‑practice recommendations.

DeploymentGPUMemory Fragmentation
0 likes · 24 min read
Taming vLLM OOM: Real‑World Causes and Proven Fixes for Production
Deepin Linux
Deepin Linux
Jun 30, 2025 · Fundamentals

Boost C++ Performance with Fixed-Size Memory Pools: Theory and Code

This article explains why frequent dynamic memory allocation can cause slowdown and fragmentation, introduces fixed-size memory pools as an efficient solution, details their core principles, data structures, key allocation and deallocation functions, and demonstrates their performance advantage with C++ code examples and benchmarks.

CMemory Fragmentationcustom allocator
0 likes · 20 min read
Boost C++ Performance with Fixed-Size Memory Pools: Theory and Code
Deepin Linux
Deepin Linux
Jun 6, 2025 · Fundamentals

How eBPF Can Tackle Linux Memory Fragmentation and Boost Android Performance

This article explains the problem of internal and external memory fragmentation in Linux systems, introduces eBPF as a powerful tracing tool, and provides step‑by‑step guidance for building, loading, and running eBPF programs to analyze and mitigate fragmentation on both Linux and Android platforms.

AndroidBPFLinux kernel
0 likes · 22 min read
How eBPF Can Tackle Linux Memory Fragmentation and Boost Android Performance
Sanyou's Java Diary
Sanyou's Java Diary
Mar 27, 2025 · Databases

Why Your MySQL Indexes Fail: Cost Estimation, Fragmentation, and Slow Query Secrets

This article examines MySQL slow‑query troubleshooting, explaining how the optimizer estimates costs, why indexes may be ineffective even when present, the impact of memory fragmentation, pitfalls of prefix indexes, index merging techniques, and additional resource‑related factors that can cause seemingly healthy SQL statements to become slow.

Index OptimizationMemory Fragmentationcost estimation
0 likes · 11 min read
Why Your MySQL Indexes Fail: Cost Estimation, Fragmentation, and Slow Query Secrets
Java Tech Enthusiast
Java Tech Enthusiast
Jun 29, 2024 · Fundamentals

Understanding Memory Allocation in C

The article explains C’s memory allocation, detailing how functions like malloc obtain heap space, the role of system calls such as brk, the distinction between stack and heap, address layout, fragmentation challenges, and practical implications for efficient dynamic memory management.

C programmingHeapMemory Fragmentation
0 likes · 5 min read
Understanding Memory Allocation in C
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Nov 10, 2023 · Operations

Memory Compaction in the Linux Kernel: Mechanisms, Strategies, and Implementation Details

Linux’s memory compaction mitigates external fragmentation by moving movable pages, employing four strategies—direct, passive (kcompactd), proactive, and active—each invoking the compact_zone core with configurable compact_control parameters, migrate‑page and free‑page scanners, and distinct trigger and exit conditions.

Linux kernelMemory CompactionMemory Fragmentation
0 likes · 45 min read
Memory Compaction in the Linux Kernel: Mechanisms, Strategies, and Implementation Details
ByteDance SYS Tech
ByteDance SYS Tech
May 19, 2023 · Backend Development

Why DPDK Memory Allocation Slows Down and How to Fix It

This article investigates the performance degradation caused by DPDK memory fragmentation, explains the underlying heap and element management, presents detailed profiling and test results, and proposes two practical solutions that dramatically reduce allocation latency and improve overall system throughput.

CDPDKMemory Fragmentation
0 likes · 16 min read
Why DPDK Memory Allocation Slows Down and How to Fix It
Liangxu Linux
Liangxu Linux
Apr 6, 2023 · Operations

How Linux Compacts Memory to Eliminate Fragmentation

This article explains the problem of memory fragmentation in Linux, describes the compaction algorithm that moves free pages together, and walks through the key kernel functions—alloc_pages_node, __alloc_pages_direct_compact, try_to_compact_pages, isolate_migratepages, migrate_pages, and unmap_and_move—detailing their roles in gathering movable pages and relocating them to create contiguous memory blocks.

KernelLinuxMemory Fragmentation
0 likes · 10 min read
How Linux Compacts Memory to Eliminate Fragmentation
Sohu Tech Products
Sohu Tech Products
Sep 14, 2022 · Databases

Understanding Redis Memory Fragmentation and How to Manage It

This article explains why Redis may show high OS‑allocated memory despite low data usage, describes the causes of memory fragmentation, and provides practical steps—including configuration changes and automatic defragmentation settings—to diagnose and mitigate fragmentation for stable performance.

Memory Fragmentationcachingdatabases
0 likes · 9 min read
Understanding Redis Memory Fragmentation and How to Manage It
Baidu Intelligent Testing
Baidu Intelligent Testing
Jun 14, 2016 · Fundamentals

Analysis of Common C/C++ Memory Issues: Leaks and Performance Degradation

This article examines typical C/C++ memory problems, classifying them into memory leaks and performance issues caused by fragmentation, explains root causes such as lost pointers, improper releases, unbounded allocations, and provides diagnostic examples and mitigation strategies using memory pools like tcmalloc.

CDebuggingMemory Fragmentation
0 likes · 13 min read
Analysis of Common C/C++ Memory Issues: Leaks and Performance Degradation