how to find the number of processor cores
Svyatoslav Lempert
svyatoslav.lempert at gmail.com
Wed May 16 06:42:14 UTC 2012
Hello,
I need some patch for single core CPU (on VPS), but this construction
do not work
CPUS= `${SYSCTL} -n kern.smp.cpus`
.if ${CPUS} == "1"
EXTRA_PATCHES=${FILESDIR}/extra-onecorecpu.patch
.endif
And for (but not true for me) if I use != it applyed, I think problem in CPUS=
How to get dubug what data record in CPUS?
How to get CPU core count?
In shell
# sysctl -n kern.smp.cpus
1
--
Svyatoslav
More information about the freebsd-ports
mailing list