Hello,

I would like to find a method which determines the current number of active CPUs.

The problem is that neither hw.ncpu nor kern.smp.cpus contain the right value if machdep.hlt_logical_cpus is 1.

Is there a better method than checking that sysctl and divide the hw.ncpu by two if set?

Thanks,
--
Attila Nagy                                   e-mail: [EMAIL PROTECTED]
Adopt a directory on our free software   phone @work: +361 371 3536
server! http://www.fsn.hu/?f=brick             cell.: +3630 306 6758
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to