SMP in machine/params.h

Ivan Voras ivoras at freebsd.org
Thu Jan 24 05:45:50 PST 2008


Pietro Cerutti wrote:

> This is the expected result, and also the result I get from my single
> CPU Pentium 3, running 6.3-RELEASE:
> 
> kern.smp.cpus: 1
> kern.smp.active: 0
> kern.smp.maxcpus: 1
> 
> From my single CPU sparc64, running 7.0-PRERELEASE, I get:
> 
> kern.smp.cpus: 1
> kern.smp.active: 0
> kern.smp.maxcpus: 16 <-- why not 1??

maxcpus is the maximum number of CPUs supported by the kernel. I.e. if
the kernel is UP, maxcpus is 1, if the kernel is SMP, maxcpus is 16.
This means (though you probably won't care) that if you have a 32-CPU
machine, ony 16 of them will be used by the SMP kernel.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20080124/d2526d51/signature.pgp


More information about the freebsd-current mailing list