Understanding Jemalloc's Memory Management Through "Hive Box" Parcel Lockers

Introduction In certain workloads, memory usage gradually grows over time until an OOM occurs. Later, it was found to be a memory fragmentation issue. Replacing the system’s default memory allocator ( glibc malloc ) with jemalloc can effectively control the upper bound of memory growth. To understand the principles behind it, I sought out jemalloc’s original paper: A Scalable Concurrent malloc(3)…