jemalloc-dev is massive

Mike Hommey mh+jemalloc at
Wed Apr 18 10:40:36 PDT 2012

On Wed, Apr 18, 2012 at 07:34:15PM +0200, Mike Hommey wrote:
> Hi,
> I just saw that even stripped, is massive: 234K on my
> system. This size goes down to about 180K when using -ffunction-sections
> -fdata-sections when compiling, and -Wl,--gc-sections when linking.
> As a comparison, the fork we currently use in Firefox builds as
> a 32K library.
> There's also 74K (!) of .bss in jemalloc-dev, vs. <1K in the old Firefox
> fork. That seems quite excessive.

I just figured that .bss is only 8K in the -Wl,--gc-sections build. It
seems most of its size comes from the (disabled at build time) profiler.
In these 8K, 4K come from the opt_prof_prefix variable, which is not
stripped out, and 3K from arena_bin_info.


More information about the jemalloc-discuss mailing list