From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8196 invoked by alias); 16 Nov 2012 17:03:46 -0000 Received: (qmail 8147 invoked by uid 48); 16 Nov 2012 17:03:24 -0000 From: "glibc at iamsergio dot de" To: glibc-bugs@sources.redhat.com Subject: [Bug malloc/14827] free() doesn't honor M_TRIM_THRESHOLD Date: Fri, 16 Nov 2012 17:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: malloc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: glibc at iamsergio dot de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-11/txt/msg00148.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=3D14827 --- Comment #1 from S=C3=A9rgio Martins 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 calli= ng malloc_trim(0) --=20 Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are on the CC list for the bug.