Persistent Memory Allocator

Jason Evans jasone at
Sat Apr 16 19:47:36 PDT 2011

On 04/15/2011 06:27 PM, Daniel Wong wrote:
> I'm trying to setup jemalloc as a persistent memory allocator.
> Basically, variables that I allocated can survive across program runs.
> Would this be achievable by using --enable-swap, set swap.fds though
> mallctl and set opt.overcommit to false?

This is sufficient if your use case is merely to continue accessing 
objects that were allocated during the previous program run.  However, 
it won't allow you to call realloc(), free(), etc. on those objects. 
Making that work would be non-trivial.


More information about the jemalloc-discuss mailing list