Re: Questions about CPU related sysctls

2004-02-26 Thread Philip Reynolds
Craig Rodrigues <[EMAIL PROTECTED]> 27 lines of wisdom included: > What is the difference between these two sysctls? > > kern.smp.cpus: Number of CPUs online > hw.ncpu: Number of active CPUs These two are exactly the same thing from the little SMP I have done with FreeBSD. I would use hw.ncpu, as

Questions about CPU related sysctls

2004-02-25 Thread Craig Rodrigues
Hi, I want to write some C code to get a count of the number of CPU's on a running system. What is the difference between these two sysctls? kern.smp.cpus: Number of CPUs online hw.ncpu: Number of active CPUs Also, can someone give a brief description of these sysctls (sysctl -d doesn't show an