FreeBSD smp

Denny White dennyboy at cableone.net
Wed Jun 21 03:51:54 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



> --On June 20, 2006 10:23:52 PM -0300 Sergio Lenzi <lenzi at k1.com.br> wrote:
>
>> Hello,
>> 
>> Is SMP enabled in the GENERIC kernel? I have a hyperthreading box, and
>> on
>> Linux it shows up with two cpus. When I do a top on the box in FreeBSD I
>> still
>> see only one CPU. Also, sysctl -a | grep cpu only shows a dev.cpu.0.
>>

Today Paul Schmehl wrote:

> No, SMP is not enabled in the GENERIC kernel.  You must add:
> options      SMP
> to the GENERIC kernel.
>
> Paul Schmehl (pauls at utdallas.edu)
> Adjunct Information Security Officer
> The University of Texas at Dallas
> http://www.utdallas.edu/ir/security/
>

Okay, might be off base here, so someone correct me if
I'm wrong. Don't you also have to remove the following

#ifdef SMP
#ifndef COMPILING_LINT
#error DEVICE_POLLING is not compatible with SMP
#endif
#endif

from /usr/src/sys/kern/kern_poll.c ?

You'll get an error part of the way through building
the kernel otherwise, right? Like I said, that's the
way I remember it. Just trying to save someone some
unnecessary work.


GnuPG key  : 0x1644E79A  |  http://wwwkeys.nl.pgp.net
Fingerprint: D0A9 AD44 1F10 E09E 0E67  EC25 CB44 F2E5 1644 E79A

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (OpenBSD)

iD8DBQFEmMJYy0Ty5RZE55oRAopwAKCDQTIJ/FtluG1Z8Oyg39aCktGzEACeJAn/
S91I6mzUdiq20//umC0+/xI=
=EWQS
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list