`available_parallelism` misbehaves on FreeBSD
Author: RalfJungCreated Sep 24, 2026Updated Sep 24, 2026
LabelsC-bugA-shimsA-freebsd
The rustup in https://github.com/rust-lang/miri/pull/5343 surfaced a regression in the behavior of https://github.com/rust-lang/miri/pull/5343 on FreeBSD. With -Zmiri-num-cpus=1024 it now shows 256 CPUs rather than 1024.
I temporarily disabled the test but we should figure out what is happening here. The problem probably began with some change in this upstream diff: https://github.com/rust-lang/rust/compare/88638df1e741778019e42fcdf307072865d19501...3670d2532bdf51abbe0b8fea22284d7ca340ffe3.
Cc @YohDeadfall @LorrensP-2158466
Source: rust-lang/miri