Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 May 2024 19:29:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        threads@FreeBSD.org
Subject:   [Bug 278703] Forking on 13.3 restricting to same CPU core
Message-ID:  <bug-278703-13406-tM2VPU3rls@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-278703-13406@https.bugs.freebsd.org/bugzilla/>
References:  <bug-278703-13406@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278703-13406-tM2VPU3rls>