Tagged articles
24 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Sep 28, 2025 · Fundamentals

Why Memory Leaks Hurt Your Programs and How to Detect Them

This article explains what memory leaks are, distinguishes different leak types such as space leaks and fragmentation, shows how unreferenced allocations cause hidden waste, and introduces common detection tools like Valgrind, AddressSanitizer, and tcmalloc Heap Profiler.

C programmingDebuggingfragmentation
0 likes · 7 min read
Why Memory Leaks Hurt Your Programs and How to Detect Them
Deepin Linux
Deepin Linux
Sep 18, 2025 · Fundamentals

How Linux’s Buddy Allocator Powers Efficient Memory Management

This article explains the Linux kernel’s buddy memory allocation algorithm, covering its core principles, data structures, allocation and free workflows, performance advantages and drawbacks, monitoring tools, tuning parameters, and real‑world use cases such as Kubernetes, embedded IoT devices, and real‑time operating systems.

Memory Managementbuddy allocatorfragmentation
0 likes · 50 min read
How Linux’s Buddy Allocator Powers Efficient Memory Management
Fighter's World
Fighter's World
Sep 5, 2025 · Industry Insights

AI 2025: Growth, Fragmentation, and the Emerging Moat Landscape

The article analyzes a16z’s 2025 AI round‑table, outlining a new AI‑native growth paradigm, the split between high‑velocity “Supernovas” and sustainable “Shooting Stars,” a prosumer‑driven go‑to‑market shift, and how moats are moving from technical stacks to commercial and workflow integration advantages.

AI industryAI-nativeGrowth
0 likes · 20 min read
AI 2025: Growth, Fragmentation, and the Emerging Moat Landscape
Deepin Linux
Deepin Linux
Jul 17, 2025 · Fundamentals

Unlock Faster C++ Performance: Master Memory Pools and Eliminate Fragmentation

This article explains why traditional C++ new/delete memory management leads to internal and external fragmentation and performance loss, introduces the concept and principles of memory pools, compares various pool implementations, and provides a complete, thread‑safe example that integrates with std::allocator for high‑efficiency allocation.

AllocatorMemory Managementc++
0 likes · 29 min read
Unlock Faster C++ Performance: Master Memory Pools and Eliminate Fragmentation
Liangxu Linux
Liangxu Linux
Apr 2, 2025 · Fundamentals

How Does malloc Actually Work? Inside a Simple Memory Allocator

This article explains why dynamic memory allocation is essential, models the heap as a parking lot, outlines the core challenges of implementing malloc and free, describes block headers, explores First Fit, Next Fit, and Best Fit strategies, and details splitting, internal fragmentation, and efficient coalescing using footers.

Systems Programmingallocation strategiesfragmentation
0 likes · 17 min read
How Does malloc Actually Work? Inside a Simple Memory Allocator
Deepin Linux
Deepin Linux
Feb 14, 2025 · Fundamentals

Understanding Jemalloc: Principles, Comparisons, and Optimization Practices

This article provides a comprehensive overview of Jemalloc, covering its architecture, memory allocation fundamentals, performance comparison with ptmalloc and tcmalloc, practical optimization cases across web, database, and big‑data workloads, and detailed configuration guidelines to improve memory efficiency and multithreaded performance.

Performance Optimizationfragmentationjemalloc
0 likes · 31 min read
Understanding Jemalloc: Principles, Comparisons, and Optimization Practices
Linux Kernel Journey
Linux Kernel Journey
Oct 17, 2024 · Fundamentals

Inside Linux Memory Compaction: A Source‑Code Walkthrough of Memory Management

The article explains how Linux manages memory page watermarks, when the allocator falls back to kswapd, and the exact conditions that trigger direct compaction via __alloc_pages_direct_compact, then walks through the core compaction functions—try_to_compact_pages, compact_zone_order, compact_zone, and the page‑migration helpers—illustrated with flow diagrams and real kernel code.

Memory Managementc++compaction
0 likes · 37 min read
Inside Linux Memory Compaction: A Source‑Code Walkthrough of Memory Management
Liangxu Linux
Liangxu Linux
Jul 13, 2024 · Fundamentals

How Does malloc Actually Allocate Memory? A Visual Walkthrough

This article explains what happens inside a computer when you request memory with malloc, covering the C standard library, compilation, memory layout, heap allocation, fragmentation, and how the operating system expands the heap using system calls.

C programmingHeapOperating System
0 likes · 6 min read
How Does malloc Actually Allocate Memory? A Visual Walkthrough
Liangxu Linux
Liangxu Linux
May 9, 2024 · Fundamentals

How mem_malloc Eliminates Fragmentation in MCU RAM – A Complete Guide

This article introduces the open‑source mem_malloc module for microcontrollers, explains its fragmentation‑free allocation algorithm, shows how to integrate and compile it on an IOT development board, and provides detailed test code and results illustrating efficient RAM usage.

C programmingMemory Managementfragmentation
0 likes · 8 min read
How mem_malloc Eliminates Fragmentation in MCU RAM – A Complete Guide
AI Cyberspace
AI Cyberspace
Apr 6, 2023 · Fundamentals

Understanding IPv4: Header Structure, Fragmentation, and CIDR Explained

This article provides a comprehensive overview of IPv4, detailing the header fields, fragmentation and reassembly processes, MTU considerations, Path MTU Discovery, address formatting, classful and classless (CIDR) addressing, subnetting techniques, and network aggregation strategies.

CIDRIP headerIPv4
0 likes · 14 min read
Understanding IPv4: Header Structure, Fragmentation, and CIDR Explained
MaGe Linux Operations
MaGe Linux Operations
Dec 20, 2022 · Fundamentals

Why UDP Drops Packets and How to Make It Reliable

This article explains UDP packet structure, why UDP lacks a send buffer, how fragmentation and buffer overflows cause packet loss, and presents practical solutions—including socket buffer tuning, delayed sending, retransmission strategies, redundancy, and RUDP—to achieve reliable communication over an inherently unreliable protocol.

Packet LossUDPfragmentation
0 likes · 24 min read
Why UDP Drops Packets and How to Make It Reliable
ITPUB
ITPUB
Jul 20, 2022 · Databases

Master Redis Memory: 7 Proven Techniques to Store More Data with Less RAM

This article explains how Redis stores key‑value pairs, dives into the underlying dict, dictEntry and redisObject structures, and presents seven practical memory‑saving tricks—including key shortening, encoding tweaks, object sharing, bitmap usage, hash consolidation, fragmentation cleanup, and 32‑bit deployment—to dramatically reduce RAM consumption while preserving performance.

BitmapData StructuresHash
0 likes · 19 min read
Master Redis Memory: 7 Proven Techniques to Store More Data with Less RAM
Code Ape Tech Column
Code Ape Tech Column
Jul 16, 2021 · Databases

How to Recover Disk Space from MySQL Fragmentation: A Step‑by‑Step Guide

This article walks through diagnosing MySQL disk‑usage spikes caused by data fragmentation, explains why common cleanup commands may fail, and provides a detailed, repeatable procedure—including stopping the service, removing InnoDB files, and restoring the database—to finally free up the occupied space.

BackupDatabase MaintenanceRestore
0 likes · 8 min read
How to Recover Disk Space from MySQL Fragmentation: A Step‑by‑Step Guide
Aikesheng Open Source Community
Aikesheng Open Source Community
Jun 28, 2021 · Databases

How to Check and Optimize MySQL Table Space Fragmentation

This article explains how to detect table‑space fragmentation in MySQL, demonstrates the performance impact of deleted rows, and provides step‑by‑step commands—including ALTER TABLE FORCE, OPTIMIZE TABLE, and mysqlcheck—to reclaim space and improve query speed.

Database Maintenancefragmentationmysql
0 likes · 8 min read
How to Check and Optimize MySQL Table Space Fragmentation
Architecture Digest
Architecture Digest
Dec 8, 2020 · Databases

Resolving MySQL Disk Usage 100% Issue by Removing InnoDB Fragmentation

This article describes a MySQL disk‑space exhaustion problem, explains why data_free can consume tens of gigabytes, and provides step‑by‑step commands—including schema analysis, table engine conversion, service control, and file removal—to defragment InnoDB tables, reclaim space, and successfully restore a backup.

disk usagefragmentationoptimization
0 likes · 6 min read
Resolving MySQL Disk Usage 100% Issue by Removing InnoDB Fragmentation
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.

Memory ManagementSlab AllocatorUser Space
0 likes · 20 min read
Mastering Linux Memory Management: From Address Space to Allocation Algorithms
Architects' Tech Alliance
Architects' Tech Alliance
Jun 7, 2020 · Fundamentals

Linux Memory Management: Organization, Address Space, Allocation Algorithms, and Common Pitfalls

This article provides a comprehensive overview of Linux memory management, covering memory organization, address spaces, fragmentation causes and mitigation, kernel allocation strategies such as the buddy and slab systems, user‑space memory pools, DMA handling, usage scenarios, and typical pitfalls for developers.

Allocation AlgorithmsDMAMemory Pools
0 likes · 17 min read
Linux Memory Management: Organization, Address Space, Allocation Algorithms, and Common Pitfalls
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 8, 2019 · Databases

Understanding and Resolving MySQL Table Fragmentation

This article explains MySQL table fragmentation, how to detect it with SHOW TABLE STATUS, the reasons such as frequent DELETE and UPDATE operations, demonstrates its effects, and presents cleanup methods like OPTIMIZE TABLE and engine conversion, showing significant space savings and query speed improvements.

fragmentationmysqloptimization
0 likes · 5 min read
Understanding and Resolving MySQL Table Fragmentation
Baidu Intelligent Testing
Baidu Intelligent Testing
Mar 27, 2018 · Fundamentals

Analysis of Memory Leaks and Performance Issues in C/C++ Programs

This article examines common memory leak and performance problems in C/C++ applications, categorizing causes such as pointer loss, improper memory release, excessive fragmentation, infinite allocation, and container misuse, and discusses diagnostic techniques, underlying allocation mechanisms, and mitigation strategies.

CPUMemory Managementfragmentation
0 likes · 15 min read
Analysis of Memory Leaks and Performance Issues in C/C++ Programs