Threaded 6.4 code compiled under 9.0 uses a lot more memory?..

Ivan Voras ivoras at freebsd.org
Tue Oct 30 14:58:28 UTC 2012


On 30/10/2012 15:47, Ian Lepore wrote:
> On Tue, 2012-10-30 at 13:46 +0100, Fabian Keil wrote:
>> Karl Pielorz <kpielorz_lst at tdx.co.uk> wrote:
>>
>>> Can anyone think of any quick pointers as to why some code originally 
>>> written under 6.4 amd64 - when re-compiled under 9.0-stable amd64 takes
>>> up a *lot* more memory when running?
>>
>> 6.4 comes with phkmalloc while 9.0 uses jemalloc. Maybe you are
>> allocating memory in a way that is less space-efficiently handled by
>> jemalloc's default configuration.
>>
>> Fabian
> 
> jemalloc is certainly the first thing that came to my mind.  Does
> MALLOC_PRODUCTION need to be defined on a 9.0 system, or is that
> something that gets turned on automatically in an official release
> build? (I'm always working with non-release stuff so I'm not sure how
> that gets handled).

It is turned on by default on -stable, by a commit from release engineers.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20121030/624b0150/attachment.sig>


More information about the freebsd-hackers mailing list