This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug malloc/14827] free() doesn't honor M_TRIM_THRESHOLD


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]