From owner-freebsd-questions@FreeBSD.ORG Mon Jul 11 06:55:14 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7DD816A41C for ; Mon, 11 Jul 2005 06:55:14 +0000 (GMT) (envelope-from nlamprecht@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4515D43D49 for ; Mon, 11 Jul 2005 06:55:13 +0000 (GMT) (envelope-from nlamprecht@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so376681nzo for ; Sun, 10 Jul 2005 23:55:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ccep5cjA1Nav86+JntyAsqEJSa5fe66I9+dk482+pszjV9rkWdPrIcGHVrZRiwTuLeZIGMZGqrMEauRknLxSrehryHtyI5hhbT7FoP6MB5bdGcoMMrEh9+ls0n5ke0WGvxhzRYONPkuTjXDx6QTKrZ31Q+ZEoDjvhUTr24oTStY= Received: by 10.36.39.7 with SMTP id m7mr962075nzm; Sun, 10 Jul 2005 23:55:13 -0700 (PDT) Received: by 10.36.105.17 with HTTP; Sun, 10 Jul 2005 23:55:13 -0700 (PDT) Message-ID: <7cbadc8705071023557f0eee34@mail.gmail.com> Date: Mon, 11 Jul 2005 08:55:13 +0200 From: Nelis Lamprecht To: Drew Tomlinson In-Reply-To: <42D21343.4040907@mykitchentable.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <42D21343.4040907@mykitchentable.net> Cc: FreeBSD Questions Subject: Re: FreeBSD 5 - What Options for SMP Kernel? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nelis Lamprecht List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2005 06:55:14 -0000 On 7/11/05, Drew Tomlinson wrote: > I just built my first 5.4-RELEASE system. I want a SMP kernel. The > GENERIC kernel conf file contains this line: >=20 > device apic # I/O apic >=20 > According to NOTES, this is all that's required to build an SMP kernel. I don't see any mention of "this is all that's required" ? > However my dmesg does not indicate that both processors are being used. > In version 4, these two lines were required: >=20 > options SMP # Symmetric MultiProcessor Kernel > options APIC_IO # Symmetric (APIC) I/O >=20 > I've searched Google but haven't found any definitive answers. Exactly > what lines do I need in my kernel conf and how can I verify both > processors are being used? If you look in the usual place /usr/src/sys/i386/conf you will see a SMP file that includes the option SMP for the default SMP enabled GENERIC kernel. It would make sense to put that option along with apic in your custom SMP kernel. To verify after rebooting do a 'dmesg |grep CPU' and it should show something along the lines of: CPU: Intel(R) Xeon(TM) CPU 3.06GHz (3056.82-MHz 686-class CPU) Hyperthreading: 2 logical CPUs FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs Regards, Nelis