From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E2BBB3857700; Tue, 15 Aug 2023 06:25:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2BBB3857700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692080729; bh=VbB5HNVHyL/4M9F5wu/YQE994F5xNTe+KFCl/ocEE7s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pKoeJ+PFwx2GJkPG22sKmm2MabH7icIFoTBqPBZP8VoiRLjdOit4gZEK3nJwjk/9q WjSHENWCe62mo/DLZerYxrg/p6K0tPbf3LvT129eVyiAAgE1BoP+co6O0ipuJvny/z iQLJd2oqkzrvKKTVh2qKxpafC4EYSDcsELy72p9w= From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug malloc/30723] Repeated posix_memalign calls produce long free lists, high fragmentation Date: Tue, 15 Aug 2023 06:25:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: malloc X-Bugzilla-Version: 2.38 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: fweimer at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30723 --- Comment #5 from Florian Weimer --- Second part committed: commit 0dc7fc1cf094406a138e4d1bcf9553e59edcf89d Author: Florian Weimer Date: Thu Aug 10 19:36:56 2023 +0200 malloc: Remove bin scanning from memalign (bug 30723) On the test workload (mpv --cache=3Dyes with VP9 video decoding), the bin scanning has a very poor success rate (less than 2%). The tcache scanning has about 50% success rate, so keep that. Update comments in malloc/tst-memalign-2 to indicate the purpose of the tests. Even with the scanning removed, the additional merging opportunities since commit 542b1105852568c3ebc712225ae78b ("malloc: Enable merging of remainders in memalign (bug 30723)") are sufficient to pass the existing large bins test. Remove leftover variables from _int_free from refactoring in the same commit. Reviewed-by: DJ Delorie I will handle the 2.38 backport after a brief delay. --=20 You are receiving this mail because: You are on the CC list for the bug.=