Tag

free

1 views collected around this technical thread.

Deepin Linux
Deepin Linux
May 29, 2025 · Fundamentals

Understanding glibc Heap Memory Management: Architecture, Mechanisms, and Exploitation

This article provides a comprehensive overview of glibc's heap memory management, explaining the role of brk and mmap, the organization of arenas, heaps, chunks, bin structures, allocation and deallocation strategies, and how these concepts are applied in security research and exploit development.

C++Memory Managementfree
0 likes · 29 min read
Understanding glibc Heap Memory Management: Architecture, Mechanisms, and Exploitation
Deepin Linux
Deepin Linux
May 28, 2025 · Fundamentals

Understanding Heap Memory Management in C: Detailed Guide to malloc and free

This article provides a comprehensive overview of heap memory management in C, explaining the concepts of heap versus stack, the usage and internal mechanisms of malloc and free, common pitfalls such as memory leaks and dangling pointers, and compares these functions with new/delete, calloc, and realloc.

C++Memory Managementfree
0 likes · 29 min read
Understanding Heap Memory Management in C: Detailed Guide to malloc and free
Deepin Linux
Deepin Linux
Feb 27, 2025 · Fundamentals

Understanding malloc and free: Memory Allocation Mechanisms in C

This article explains how the C functions malloc and free allocate and release memory, covering stack vs heap, the brk and mmap system calls, fragmentation, header metadata, and why both allocation strategies are needed for efficient memory management.

C ProgrammingMMAPbrk
0 likes · 17 min read
Understanding malloc and free: Memory Allocation Mechanisms in C
Deepin Linux
Deepin Linux
Dec 19, 2024 · Fundamentals

Understanding the Implementation and Mechanisms of the C malloc Function

This article explains the purpose, prototype, and usage of C's malloc function, delves into its underlying implementation using free‑list mechanisms, virtual‑memory translation, system calls like brk and mmap, and compares it with related functions such as calloc, realloc and new, while providing practical code examples and best‑practice guidelines.

C++dynamic memoryfree
0 likes · 32 min read
Understanding the Implementation and Mechanisms of the C malloc Function
Deepin Linux
Deepin Linux
Dec 6, 2023 · Fundamentals

Dynamic Memory Allocation, malloc/free, new/delete, and Linux Memory Management Overview

This article explains the principles and usage of dynamic memory allocation in C/C++ (malloc, calloc, realloc, free, new, delete), compares their behaviors, demonstrates common pitfalls, and extends the discussion to Linux kernel memory statistics, cache handling, swappiness tuning, and garbage‑collection concepts.

C++Garbage CollectionLinux
0 likes · 31 min read
Dynamic Memory Allocation, malloc/free, new/delete, and Linux Memory Management Overview
Baidu Geek Talk
Baidu Geek Talk
Dec 16, 2022 · Fundamentals

Exploring ptmalloc: Memory Management in Linux C++ Programs

The article explains how glibc’s default ptmalloc allocator structures memory into main and non‑main arenas, uses chunk‑based bins (fast, unsorted, small, large) for allocation and deallocation, details its locking and OS‑interaction mechanisms, and evaluates its design trade‑offs versus modern allocators.

C++LinuxMemory Management
0 likes · 12 min read
Exploring ptmalloc: Memory Management in Linux C++ Programs
Efficient Ops
Efficient Ops
Nov 14, 2021 · Operations

Master Linux Performance Monitoring: Top, Free, and Vmstat Commands Explained

This comprehensive guide walks you through Linux performance monitoring tools—top, free, and vmstat—detailing their syntax, key options, real‑world output examples, and how to interpret CPU, memory, swap, and process statistics for effective system administration.

LinuxPerformance MonitoringSystem Administration
0 likes · 32 min read
Master Linux Performance Monitoring: Top, Free, and Vmstat Commands Explained