Jemalloc
jemalloc is a general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support. jemalloc first came into use as the FreeBSD libc allocator in 2005, and since then it has found its way into numerous applications that rely on its predictable behavior. In 2010 jemalloc development efforts broadened to include developer support features such as heap profiling and extensive monitoring/tuning hooks. Modern jemalloc releases continue to be integrated back into FreeBSD, and therefore versatility remains critical. Ongoing development efforts trend toward making jemalloc among the best allocators for a broad range of demanding applications, and eliminating/mitigating weaknesses that have practical repercussions for real world applications.
How to use
Heap Profiling
Leak Checking
MALLOC_CONF=prof_leak:true,lg_prof_sample:0,prof_final:true \
LD_PRELOAD=${JEMALLOC_PATH}/lib/libjemalloc.so.2 w
See also
- std::allocator
- mtrace (glibc debugging)
- Thread-Caching Malloc (TCMalloc)
- nedmalloc
- ptmalloc
- heaptrack
- mimalloc
Favorite site
- jemalloc web site
- Github - jemalloc project site
- Facebook의 메모리 할당자 jemalloc
- [추천] Scalable memory allocation using jemalloc
- 멀티쓰레드 최적화 힙 메모리 할당기 - tcmalloc. jemalloc
- [추천] 멀티 쓰레드 환경에서 Memory Allocator 1
- [추천] Testing Memory Allocators: ptmalloc2 vs tcmalloc vs hoard vs jemalloc While Trying to Simulate Real-World Loads 2
- Benchmarking Ruby's Heap: malloc, tcmalloc, jemalloc
- MySQL DBA를 위한 :: 18. JEMalloc 작동 원리
- 마지막 남은 공짜 점심. Facebook의 메모리 할당자 jemalloc