Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Mar 2011 20:58:43 -0600
From:      Eric Anderson <anderson@freebsd.org>
To:        Ryan Stone <rysto32@gmail.com>
Cc:        Deomid Ryabkov <myself@rojer.pp.ru>, Vlad Galu <dudu@dudu.ro>, freebsd-hackers@freebsd.org
Subject:   Re: Mem leak : malloc/free + pthreads = leakage?
Message-ID:  <FD419D69-DFA3-43BA-8267-99F770AF0896@freebsd.org>
In-Reply-To: <AANLkTimV2d0aYjeQp-OBeOwdhNjTkVfg7d9ATtc=t7SP@mail.gmail.com>
References:  <40A52D4A-9397-4406-A7EC-E7CBBEFADD55@freebsd.org> <4D726887.5080800@rojer.pp.ru> <570723AB-7011-4185-89E1-E02F018DC0C3@ttel.com> <AANLkTikd22VT3CVtvkGdw6zos%2Biq4Ve8y1W_WLr0qctS@mail.gmail.com> <AANLkTi=K9QuK%2BbyxF1t7HzG9wKxXek804tNOgzM3Dp_b@mail.gmail.com> <AANLkTiksK3RYkbVCj6wphOLu5oxvUNKWRrBOJb8VaGXp@mail.gmail.com> <AANLkTimV2d0aYjeQp-OBeOwdhNjTkVfg7d9ATtc=t7SP@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mar 6, 2011, at 11:35 AM, Ryan Stone wrote:

> On Sun, Mar 6, 2011 at 10:34 AM, Ryan Stone <rysto32@gmail.com> wrote:
>> I would try playing with MALLOC_OPTIONS.  I seriously doubt that =
there
>> is an actual leak in jemalloc, but from my own experiences with it I
>> suspect that there are certain multithreaded malloc/free sequences
>> that interact badly with with the per-thread caching that jemalloc
>> performs.  The first thing I would try is setting MALLOC_OPTIONS=3D7h =
to
>> disable the caching.
>>=20
>=20
> Wait, sorry, apparently this is a new option in HEAD.  Under 8.1
> MALLOC_OPTIONS=3Dg will disable the thread-specific caching.  See the
> malloc(3) man page for the definitive list of available options.


Thanks - I think I tried that at one point with no change, but I'll =
double check just in case.  Thanks for the hints!

Eric




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FD419D69-DFA3-43BA-8267-99F770AF0896>