On Sat, 18 Dec 2010, Theo de Raadt wrote:

#sysctl hw.ncpu
#sysctl hw.ncpufound

I got the same response, and it's the number of processors, but I
don4t  know anything about the cores.
Any idea how to get that info?

You look at dmesg, and then at your processor manual.

We do not expose these concepts, since there is so much variation
between machines of different architectures (ie. not just i386).

If I remember it right, there was some work in this area (CPUID and CPU model detection for i386 and amd64) done by Toby some time ago. Has it been used somewhere?

http://marc.info/?l=openbsd-tech&m=120415522019563&w=2
http://marc.info/?l=openbsd-tech&m=122445269904389&w=2
http://undeadly.org/cgi?action=article&sid=20081019225434

Regards,
David

Reply via email to