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 runtimeMemory Management
0 likes · 20 min read