Changing the default userspace memory allocator for a distribution is less a technical choice than you think: lists.fedoraproject.org/archives/list/
Conversation
Replying to
jemalloc, tcmalloc, hardened_malloc, mimalloc, etc. are as general purpose as glibc malloc. glibc malloc isn't good at any niche. It's not a modern/competitive allocator design. It's not simply choosing different tradeoffs than modern allocators. It's an obsolete design overall.
Almost everyone who caring mostly about memory usage and performance would be happier with jemalloc with suitable defaults for libc inclusion (see: FreeBSD, Android). Essentially no one would replace jemalloc with glibc malloc if it was the other way around with jemalloc in libc.
1
2
FreeBSD uses jemalloc as their default libc allocator. Android used it for a long time tuned for low memory usage rather than parallelism until recent versions replaced it with a more security focused allocator (Scudo) outside low memory devices. What's less general purpose?
1
2
Show replies

