SMP in machine/params.h

Pietro Cerutti gahr at
Thu Jan 24 05:38:15 PST 2008

Some more interesting findings in this field lead me to another related

what is the relation between kern.smp.cpus, and

To my understanding, it should be:
If the machine has more than one CPU, and SMP and apic are enabled in
the config file, then

kern.smp.cpus = nof cpus in the system = 1
kern.smp.maxcpus = 16


kern.smp.cpus = 1 = 0
kern.smp.maxcpus = 1

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 0
kern.smp.maxcpus: 1

From my single CPU sparc64, running 7.0-PRERELEASE, I get:

kern.smp.cpus: 1 0
kern.smp.maxcpus: 16 <-- why not 1??

From my Core2Due, running 8.0-CURRENT, I get:

kern.smp.cpus: 2 1
kern.smp.maxcpus: 16

which is OK, but nevertheless SMP is not defined in sys/param.h (see
previous posts).

Thanks for any insight,

Pietro Cerutti

PGP Public Key:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-current mailing list