Memory Allocator Choices for a Long-Running Server: jemalloc vs tcmalloc vs mimalloc
The default glibc allocator is fine for most workloads. For multi-threaded services with specific allocation patterns, jemalloc, tcmalloc, and mimalloc offer measurable improvements in different areas.
The default glibc allocator is fine for most workloads. For multi-threaded services with specific allocation patterns, jemalloc, tcmalloc, and mimalloc offer measurable improvements in different areas.
Overview
This note is part of the field-notes archive generated for this site. The summary below is the published excerpt; you can expand the full write-up anytime in the CMS.
Related notes
Tags
- memory
- allocator
- jemalloc
- performance
- linux
Manish Bookreader
Electronics enthusiast, Embedded Systems Expert, Linux/Networking programmer, and Software Engineer passionate about AI, electronics, books, and cooking.