This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/14827] free() doesn't honor M_TRIM_THRESHOLD
- From: "glibc at iamsergio dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 16 Nov 2012 17:03:23 +0000
- Subject: [Bug malloc/14827] free() doesn't honor M_TRIM_THRESHOLD
- Auto-submitted: auto-generated
- References: <bug-14827-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14827
--- Comment #1 from SÃrgio Martins <glibc at iamsergio dot de> 2012-11-16 17:03:23 UTC ---
This seems to be caused due to the "fastbins" features.
free() doesn't trim fastbins because the malloc() was less than M_MXFAST.
But there really should be a limit to the number of fastbins that we keep
around.
In KDE we've seen 600MB of memory being freed after attaching gdb and calling
malloc_trim(0)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.