From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 64B22385DC3D; Thu, 11 Jan 2024 09:41:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 64B22385DC3D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1704966083; bh=AAHWr8oZKYM1Z6C0fQjDFQG39QSWAgqeWQ3KH5babOk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nc6RVhZZ8HgAQ6kn41L9M8Oe+ETaZjEoSYYSb1kMA83Enaa3hjm4UOZX/zjzIVhVZ RpQ53u16Q8BNZy00pCcpCn3WVXp4lclYFmMbcbKpA9zcm393CgTVdAks/TGjnE6L8g zWkLINPd12sRXq/qP2ijZLkmZcIqCcCkwXHSFH7U= From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug malloc/25817] Tune the number of malloc arenas based on the CPU affinity mask Date: Thu, 11 Jan 2024 09:41:22 +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: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: resolution bug_status see_also 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=3D25817 Florian Weimer changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WONTFIX Status|NEW |RESOLVED See Also| |https://sourceware.org/bugz | |illa/show_bug.cgi?id=3D309= 45 --- Comment #3 from Florian Weimer --- We tried to implement this, but it didn't work and had to reverted: commit 472894d2cfee5751b44c0aaa71ed87df81c8e62e Author: Adhemerval Zanella Date: Wed Oct 11 13:43:56 2023 -0300 malloc: Use __get_nprocs on arena_get2 (BZ 30945) This restore the 2.33 semantic for arena_get2. It was changed by 11a02b035b46 to avoid arena_get2 call malloc (back when __get_nproc was refactored to use an scratch_buffer - 903bc7dcc2acafc). The __get_nproc was refactored over then and now it also avoid to call malloc. The 11a02b035b46 did not take in consideration any performance implication, which should have been discussed properly. The __get_nprocs_sched is still used as a fallback mechanism if procfs and sysfs is not acessible. Checked on x86_64-linux-gnu. Reviewed-by: DJ Delorie --=20 You are receiving this mail because: You are on the CC list for the bug.=