[PATCH] Add a build option to freeze the number of arenas to 1

Jason Evans jasone at canonware.com
Thu Feb 23 17:11:25 PST 2012


On 02/23/2012 04:49 AM, Mike Hommey wrote:
> From: Mike Hommey<mh at glandium.org>
>
> ---
>
> Mozilla does not currently make extensive use of concurrent allocation,
> so the increased fragmentation associated with multiple arenas is not
> warranted.

Why isn't it sufficient to just add this to the Mozilla source somewhere?:

   malloc_conf = "narenas:1";

The overhead for this as compared to conditionally compiling out support 
for multiple arenas should be negligible.

Thanks,
Jason



More information about the jemalloc-discuss mailing list