[Bug 278703] Forking on 13.3 restricting to same CPU core

[email protected] Tue, 07 May 2024 19:29:26 +0000
Newsgroups gmane.os.freebsd.devel.threading
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278703

--- Comment #6 from [email protected] ---
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.=