From owner-freebsd-current@FreeBSD.ORG Sun Nov 7 02:58:46 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3B9F416A4CE; Sun, 7 Nov 2004 02:58:46 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.1/8.13.1) with ESMTP id iA72wjc6096918; Sat, 6 Nov 2004 21:58:45 -0500 (EST) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.1/8.13.1/Submit) id iA72wiCs096917; Sat, 6 Nov 2004 21:58:44 -0500 (EST) (envelope-from green) Date: Sat, 6 Nov 2004 21:58:44 -0500 From: Brian Fundakowski Feldman To: Zoltan Frombach Message-ID: <20041107025844.GC918@green.homeunix.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i cc: freebsd-current@freebsd.org Subject: Re: SMP vs UP on single P4 CPU systems with hyperthreading X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Nov 2004 02:58:46 -0000 On Sat, Nov 06, 2004 at 06:48:33PM -0800, Zoltan Frombach wrote: > I just upgraded my system from a Pentium III to a Pentium 4 with > hyperthreading. This is not a multiprocessor system, as I only have one > CPU. I disabled hyperthreading in the BIOS (it is an AWARD BIOS). Then I > installed FreeBSD 5.3-RELEASE. The first thing I've noticed in dmesg are > the following lines: > > CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2806.38-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0xf29 Stepping = 9 > Features=0xbfebfbff > Hyperthreading: 2 logical CPUs > > So even though I specifically disabled hyperthreading in the BIOS, FreeBSD > 5.3 still detects 2 logical CPUs. Is this by design? I guess, it is. So > therefore my question is this: Should I compile an SMP kernel or a UP > kernel? To make my decision more difficult, Scott Long posted recently in a > message the following: "We turned off SMP on i386 and amd64 because it is a > serious performance penalty for UP machines." > > Should I look at my single CPU system as a UP machine, as it physically is > a uni processor machine. Or should I enable SMP in the kernel to take > advantage of the "2 logical SPUs" FreeBSD detects - even when I try to > disable this feature of the CPU in the BIOS... What is the official word in > this scenario? I'd really appreciate your advice. It will be detected that you have the capability of using it, whether or not you have enabled SMP. It's probably going to be no performance gain to enable SMP, since it also requires slower locking operation to remain safe for SMP versus what is sufficient for a UP system. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\