HomeFreeBSD

During CI, use `nproc` instead of `sysctl -n hw.ncpu`

Description

During CI, use nproc instead of sysctl -n hw.ncpu

The latter may give the wrong result if cpusets are in use.

Sponsored by: ConnectWise
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Alan Somers <asomers@gmail.com>
Closes #18012

Details

Provenance
asomersAuthored on Dec 5 2025, 12:57 AM
GitHub <noreply@github.com>Committed on Dec 5 2025, 12:57 AM
Parents
rGdfb08752004c: ZTS: Add slow_vdev_degraded_sit_out retry
Branches
Unknown
Tags
Unknown