From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E034C3858D37; Fri, 3 Nov 2023 12:37:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E034C3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1699015035; bh=a8aexFvGeBJVvvp1xhXS0fw8WRNXiVByhR4QQQHcS7U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AdDQcBYx+jU8Zsqw4mnYc8CbyGlfiynDdgSNBpD79esNk1gZzIEJBpWw1ea4HJBkX Z6Tl4MVthlj/Pji2W8FTzsv9qjSlEOPBU39huntVndIx7destdajnMYeUbuZJhjLqI uJTkdid0hqImVkQ7naEp9xwQbSFxihMjUpEHq/Xk= From: "rajis at linux dot ibm.com" To: glibc-bugs@sourceware.org Subject: [Bug libc/28310] Do not use affinity mask for sysconf (_SC_NPROCESSORS_CONF) Date: Fri, 03 Nov 2023 12:37:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rajis at linux dot ibm.com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: adhemerval.zanella at linaro dot org X-Bugzilla-Target-Milestone: 2.35 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D28310 Rajalakshmi changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rajis at linux dot ibm.com --- Comment #2 from Rajalakshmi --- Hi Adhemerval Commit 342298278eabc75baabcaced110a11a02c3d3580 reverted the use=C2=A0of sched_getaffinity=C2=A0on=C2=A0get_nprocs() However, in commit 11a02b035b464ab6813676adfd19c4a59c36d907 we still use __get_nprocs_sched=C2=A0() instead of __get_nprocs() in malloc/arena.c=20 There is a performance degradation issue reported on POWER10 RHEL9(glibc 2.= 34) compared to RHEL 8 *(glibc 2.28) when using IBM ESSL application with 80 o= mp threads. While debugging , figured out that using __get_nprocs() instead of __get_nprocs_sched=C2=A0() in malloc/arena.c fixes the issue. I= don=E2=80=99t have reduced test to replicate the issue.=20 Do you have any comments/suggestions? --=20 You are receiving this mail because: You are on the CC list for the bug.=