From nobody Tue May 07 19:29:26 2024 X-Original-To: threads@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VYpHp1r77z5JVvS for ; Tue, 07 May 2024 19:29:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VYpHn5qXZz4wGJ for ; Tue, 7 May 2024 19:29:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715110165; a=rsa-sha256; cv=none; b=l7XbCLHvxcTF9K06shC63n54N+uTLzN+5qfRxakQ0ZL03L8dClOpAxx2nn1+kYU2Q28DFv 2jywum26srbhRRALCDkQQ7tpWijvMei6wP2sMmny8LFBrP1CW5uLC0WrlsxtYNiYWp3aWL 8Q4T7ZYwcSq/Y6tRy4YBFvBeNcC466haxnU2U1SQGn4JltfOWTHgvAmc85ecIxz2EVrCVW pVjaO6HZscj+hzaQba57kylW25JqEzkL6K85AC5pMyAGeZJkKHq3qo6BCGVfOVnp4jsO84 YKin1Xc1PEnQgp+p9bySsBf5uxbXAcV/a7an9+sf0IXn0POYZC+nyQzUHMWb2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715110165; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PFw7TyTg7fBaLnngBlIE1Of0IfWGmh6htuPKSji4T70=; b=kS6g1ALsyfyki1EcMCYkJUlZ1u3L8TDbyjgQCuQaNlIiMF64nd2z0A8B0qZqc5aqySpsBe nRSKADDCm5JwUWAGVAUgBRjDOtIVBI8HAEjcFz2gRDnICkz3QI5q6xO4YKE0xK8vkTYApF YL0ObezaBBbTz+Kx8u2o+YyYcNM6sgoKi+ctJ0VUpZ64ET1A+opZ29tDBiM4JcsUlnmkv0 9QGf1dWzCoAl835NbIwTTbuDWsIOaiEhyomelykJnfOAI0Co1np/83M2B/o2ATpZWVZkEY OhifEEbo0l0xEsh89nY9lRoI3aPsebGUytXUqsDOjKlvOM3TsNjbXu0p4ah8rA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VYpHn5RTHzv1t for ; Tue, 7 May 2024 19:29:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 447JTPUh083767 for ; Tue, 7 May 2024 19:29:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 447JTPn2083766 for threads@FreeBSD.org; Tue, 7 May 2024 19:29:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: threads@FreeBSD.org Subject: [Bug 278703] Forking on 13.3 restricting to same CPU core Date: Tue, 07 May 2024 19:29:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: threads X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cbl@cbl.us X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: 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: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Threading List-Archive: https://lists.freebsd.org/archives/freebsd-threads List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-threads@freebsd.org Sender: owner-freebsd-threads@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278703 --- Comment #6 from cbl@cbl.us --- Looks like I have some traction on this LLVM bug, and it should have a PR s= oon. https://github.com/llvm/llvm-project/issues/91098 It's a bug in the atfork() handler on Unix systems + logic in reinitializing the child process. The current library incorrectly sets the child process' affinity to compact, which roughly translates to "pin consecutive threads = to consecutive cores", even when the user hasn't set KMP_AFFINITY to anything.= So every child process was pinned to the first core instead of the entire syst= em. Curious how hard it'd be to get the PR fix into 13.x and/or 14.x. Thanks. --=20 You are receiving this mail because: You are the assignee for the bug.=