Conversation

Replying to
I always found the goal of the default allocator be better on the secure side and for short running tools. There is no point in using the glibc allocator when switching to tcmalloc (for MySQL) frees up multiple whole CPU cores...
1
1
Modern allocators have out-of-line region and slab metadata for memory usage and performance reasons. It's incredibly wasteful to have a 16 byte header on every 16 byte allocation, and you just don't need to do that with the much lower fragmentation slab allocation approaches.
1
1
A performance-oriented allocator will likely use free lists for within slabs inside the freed allocations. A security-oriented allocator will use bitmaps. Either way, there's only going to be around 32 to 128 bytes of metadata overhead per slab which will be at least 4096 bytes.
1
Show replies