how to find the number of processor cores

Vitaly Magerya vmagerya at gmail.com
Wed May 16 10:16:58 UTC 2012


Svyatoslav Lempert wrote:
>> Try to describe why/ and why you want to do this.
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=167953
> 
>> Try:
>>
>> CPUS!= ${SYSCTL} -n kern.smp.cpus

What if the package was built on one machine, but is installed on
another one? The number of CPUs during the build is meaningless; you
need to test for those at runtime (or find another workaround).


More information about the freebsd-ports mailing list