Hardware

ID #1006

Does PC-BSD support SMP (dual processor)?

Yes it does, FreeBSD now supports SMP natively. Since the introduction of hyperthreading capabilities in Intel's chips, SMP has been enabled in the standard kernel.

Tags: -

Related entries:

Last update: 2007-09-28 22:59
Author: Charles-André Landemaine
Revision: 1.5

Digg it! Share on Facebook Print this record Send FAQ to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this FAQ:

Average rating: 3.69 (16 Votes)

completely useless 1 2 3 4 5 most valuable

You can comment this FAQ

Comment of Andrei Kolu:
Yes. SMP was enabled by default in the GENERIC kernel as of FreeBSD 5.2.

The intention was also to enable it by default for the FreeBSD 5.3 release, but problems running the SMP kernel on certain UP machines led to the decision to disable it until those problems can be addressed. This is a priority for FreeBSD 5.4.

In FreeBSD 4.X, SMP is not enabled in the default kernel, so you must recompile your kernel to enable SMP. Take a look at /sys/i386/conf/LINT to learn which options to put in your kernel config file.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/compatibility-processors.html
Added at: 2038-01-19 04:14

Comment of Sascha Dorff:
FreeBSD 6.0 isn't compiled with SMP support by default.
In 6.1 they ship with a separate SMP Kernel. You can change your default kernel after installation in the systemadministration. But PC-BSD install an non-SMP kernel by default.
Added at: 2038-01-19 04:14

Comment of Jerry West:
There is (was) also a bug which meant the OS ignored the second and subsequent (virtual) CPUs in a multi-core processor. See http://www.freebsd.org/cgi/query-pr.cgi?pr=96203
for details.

PC-BSD seems to still ignore virtual cores as of FreeBSD 6.1-RELEASE-p2 (PCBSDv1.2-SMP) #2: Thu Jul 6 11:02:36 PDT 2006.

The bug report gives a workaround (not tested extensively but it seems to work): set machdep.hyperthreading_allowed=1
using sysctl(8) and/or in /etc/sysctl.conf

The bug report claims the issue was fixed in 6.1-RELEASE, so I don't understand why PC-BSD still displays the old behaviour.
Added at: 2038-01-19 04:14