Increase the number of arenas
jasone at canonware.com
Tue Aug 6 20:27:30 PDT 2013
On Aug 6, 2013, at 4:42 PM, Veeravadivel Duraisamy <catchveera at yahoo.com> wrote:
> I am running my application on a 24 core machine and I have 108 threads. I see a slight increase in latency with jemalloc when compared to tcmalloc. The jemalloc man page says by default 24*4 arenas will be created. I would like to increase the number of arenas to 108. What should be the value that i set the env variable MALLOC_CONF to?
You may actually get better performance by *decreasing* the number of arenas though. The thread caching is pretty effective at reducing arena accesses for most applications.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the jemalloc-discuss