Tag

glibc

0 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++freeglibc
0 likes · 29 min read
Understanding glibc Heap Memory Management: Architecture, Mechanisms, and Exploitation
Deepin Linux
Deepin Linux
May 28, 2025 · Fundamentals

Understanding glibc malloc: Overview, Mechanisms, and Optimization Techniques

This article explains the role of glibc malloc in dynamic memory allocation, describes its internal data structures and allocation/free algorithms, provides a C code example, and offers practical optimization tips and common pitfalls for safe and efficient memory management.

C Programmingdynamic allocationglibc
0 likes · 13 min read
Understanding glibc malloc: Overview, Mechanisms, and Optimization Techniques
vivo Internet Technology
vivo Internet Technology
Dec 11, 2024 · Databases

RocksDB Memory Usage Analysis and Optimization: Troubleshooting Excessive Memory Consumption in Production

The article examines a production RocksDB memory‑usage problem where two instances consumed 59 GB on a 32‑CPU, 64‑GB server, identifies glibc ptmalloc’s unreclaimed free memory as the main cause, and shows that switching to jemalloc cuts usage by roughly 25 % while improving I/O and CPU efficiency.

Linux Memory ManagementMemory OptimizationRocksDB
0 likes · 11 min read
RocksDB Memory Usage Analysis and Optimization: Troubleshooting Excessive Memory Consumption in Production
vivo Internet Technology
vivo Internet Technology
Nov 6, 2024 · Fundamentals

Analysis of glibc Memory Management and Solutions to an Online Memory Incident

The article examines a real‑world memory alarm in a Vivo service, explains how glibc’s ptmalloc allocator manages heap memory via brk, sbrk, and mmap, shows why freed chunks stay in bins, and recommends limiting heap growth or switching to jemalloc for faster reclamation.

Backend DevelopmentC runtimeglibc
0 likes · 20 min read
Analysis of glibc Memory Management and Solutions to an Online Memory Incident
Tencent Cloud Developer
Tencent Cloud Developer
Jun 18, 2024 · Fundamentals

Porting QQ Audio/Video SDK to Linux: Architecture, Build Process, and Debugging

The article details the complete process of porting QQ's NTRTC audio/video SDK to Linux, covering platform surveys, packaging, build‑time issues like GLIBC mismatches and fPIC errors, debugging steps, Qt/Electron demos, GPU blocklist workarounds, and future compatibility plans.

AudioVideoElectronLinux
0 likes · 30 min read
Porting QQ Audio/Video SDK to Linux: Architecture, Build Process, and Debugging
Wukong Talks Architecture
Wukong Talks Architecture
Jun 7, 2024 · Operations

Troubleshooting Node Installation Failure on Ubuntu Due to Missing GLIBC 2.28 and Recovery Steps

This article recounts a failed Node.js installation on an older Ubuntu server caused by a missing GLIBC 2.28 library, details the attempted GLIBC upgrade script that led to system-wide segmentation faults, and explains how reinstalling a newer Ubuntu version resolved the issue while emphasizing careful backup practices.

DeploymentLinuxNode.js
0 likes · 4 min read
Troubleshooting Node Installation Failure on Ubuntu Due to Missing GLIBC 2.28 and Recovery Steps
Refining Core Development Skills
Refining Core Development Skills
Jan 23, 2024 · Fundamentals

Deep Dive into the Internal Working of malloc and the ptmalloc Memory Allocator

This article explains how the glibc malloc implementation (ptmalloc) manages memory by using arenas, chunks, and various bin structures such as fastbins, smallbins, largebins, and unsorted bins, and describes the step‑by‑step allocation process performed by public_mALLOc and its helper functions.

C++glibcheap
0 likes · 14 min read
Deep Dive into the Internal Working of malloc and the ptmalloc Memory Allocator
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++Linuxfree
0 likes · 12 min read
Exploring ptmalloc: Memory Management in Linux C++ Programs
360 Tech Engineering
360 Tech Engineering
Jan 9, 2020 · Fundamentals

Function Call Mechanics and Assembly Implementations of memcpy and memset in glibc

This article explains CPU registers, stack layout, function call conventions, and provides detailed explanations of how glibc implements memcpy and memset both in C and in low‑level assembly, including code snippets and the handling of remaining bytes.

Function CallLow-level programmingassembly
0 likes · 8 min read
Function Call Mechanics and Assembly Implementations of memcpy and memset in glibc
Hujiang Technology
Hujiang Technology
Jun 29, 2017 · Operations

Understanding DNS Resolver Caching Issues in Salt-Minion and glibc res_init() Behavior

The article explains how salt‑minion’s DNS resolution can become stale after a data‑center migration because each Linux process caches resolver settings in a private _res structure initialized by glibc’s res_init(), and it offers practical ways to force a refresh or redesign the lookup mechanism.

DNSLinuxOperations
0 likes · 8 min read
Understanding DNS Resolver Caching Issues in Salt-Minion and glibc res_init() Behavior