Tag

memory fragmentation

0 views collected around this technical thread.

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.

Linux kernelandroidbpf
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 OptimizationMySQLcost 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 ProgrammingOperating SystemStack
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 CompactionPage Migration
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.

C++DPDKmalloc
0 likes · 16 min read
Why DPDK Memory Allocation Slows Down and How to Fix It
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.

CachingRedisdatabases
0 likes · 9 min read
Understanding Redis Memory Fragmentation and How to Manage It
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 25, 2022 · Databases

Diagnosing Periodic Redis Latency Caused by BGSAVE and Fork Overhead

The article analyzes a recurring one‑second pause in a Redis 4.0 master‑slave setup, identifies the periodic BGSAVE fork operation as the root cause through metrics like latest_fork_usec, and presents mitigation strategies such as memory limits, activedefrag, and migration to a lower‑RSS instance.

BGSAVERedisfork
0 likes · 6 min read
Diagnosing Periodic Redis Latency Caused by BGSAVE and Fork Overhead
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 29, 2021 · Databases

Understanding Low Redis Memory Fragmentation Ratio and Its Real Causes

This article explains why a low Redis memory fragmentation ratio is not necessarily caused by swap usage, demonstrates experiments with disabled swap and varying repl‑backlog‑size, and concludes that large replication buffers and small data sets can naturally produce ratios far below 1, which is normal.

BacklogRedisReplication
0 likes · 7 min read
Understanding Low Redis Memory Fragmentation Ratio and Its Real Causes
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.

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