I would like to use a high performance general purpose allocator like jemalloc
/tcmalloc
with a memory pool. Is there a guide for doing this? I don't want to use jemalloc
/tcmalloc
as a drop-in replacement for malloc
.
I have memory pool that uses libarena
and carves a largish memory area (2GB). I want to create fixed size objects pool like gslice
on this arena for say 1 GB. (like the Bonwick slab allocator) and want to use the rest of the memory for variable sized general purpose allocation. I would like to have jemalloc
/tcmalloc
use this memory area. Is this possible? Any ideas as to how I can proceed? If there is an alternate library, I would like to hear about it as well.