Running on a Dell PowerEdge R420 with 16 cores, 32 hyperthreads: FreeBSD unixdev1.ceas bacon ~ 1012: parallel --number-of-threads 32 FreeBSD unixdev1.ceas bacon ~ 1013: parallel --number-of-cores 2 FreeBSD unixdev1.ceas bacon ~ 1014: sysctl hw.ncpu hw.ncpu: 32 --number-of-cores should be reporting 16. I poked around the source code a little, but I'm not much of a Perl guru.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=aa469725eb9acf665d738ca24ce02730a459eddb commit aa469725eb9acf665d738ca24ce02730a459eddb Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-12-25 09:03:07 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-12-25 09:03:07 +0000 sysutils/parallel: Fix --number-of-cores - Bump PORTREVISION for package change PR: 268011 Reported by: jwb sysutils/parallel/Makefile | 1 + sysutils/parallel/files/patch-src-parallel (new) | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+)
Committed. Thanks!