Virtual CPU or not?
Attila Nagy
bra at fsn.hu
Sat Dec 18 04:57:05 PST 2004
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: Attila.Nagy at fsn.hu
Adopt a directory on our free software phone @work: +361 371 3536
server! http://www.fsn.hu/?f=brick cell.: +3630 306 6758
More information about the freebsd-hackers
mailing list