Increase the number of arenas

Jason Evans 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?

MALLOC_CONF=narenas:108

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.

Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jemalloc.net/mailman/jemalloc-discuss/attachments/20130806/0cc27d32/attachment.html>


More information about the jemalloc-discuss mailing list