From owner-freebsd-questions Sun Oct 27 7: 8:53 2002 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 8EC6937B401 for ; Sun, 27 Oct 2002 07:08:51 -0800 (PST) Received: from sub21-156.member.dsl-only.net (sub21-156.member.dsl-only.net [63.105.21.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 982D543E65 for ; Sun, 27 Oct 2002 07:08:50 -0800 (PST) (envelope-from nkinkade@sub21-156.member.dsl-only.net) Received: from sub21-156.member.dsl-only.net (freebsd.localhost.localdomain [127.0.0.1]) by sub21-156.member.dsl-only.net (8.12.5/8.12.5) with ESMTP id g9RF8iwQ035313 for ; Sun, 27 Oct 2002 07:08:44 -0800 (PST) (envelope-from nkinkade@sub21-156.member.dsl-only.net) Received: (from nkinkade@localhost) by sub21-156.member.dsl-only.net (8.12.5/8.12.5/Submit) id g9RF8dEp035312 for freebsd-questions@freebsd.org; Sun, 27 Oct 2002 07:08:39 -0800 (PST) (envelope-from nkinkade) Date: Sun, 27 Oct 2002 07:08:39 -0800 From: Nathan Kinkade To: freebsd-questions@freebsd.org Subject: Re: SMP problems Message-ID: <20021027150839.GJ7928@sub21-156.member.dsl-only.net> Reply-To: nkinkade@dsl-only.net Mail-Followup-To: freebsd-questions@freebsd.org References: <20021028070514.31394.qmail@fuzuli.enderunix.org> <3DBBB9EA.4080505@imc.nl> <3DBBBA85.80406@imc.nl> <20021027100855.GD2439@irrelevant.org> <3DBBC53B.2090500@imc.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DBBC53B.2090500@imc.nl> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Oct 27, 2002 at 11:51:39AM +0100, Roelf Schreurs wrote: > Simon Dick wrote: > >On Sun, Oct 27, 2002 at 11:05:57AM +0100, Roelf Schreurs wrote: > > > >>Hi > >> > >>I just added an extra CPU to my Dell server. > >>I made a new kernel, the server recognizes the CPU' but FreeBSD does not. > >> > >>Steps I took: > >>Copy GENERIC to GENERIC-SMP > >>I added the 2 lines to the GENERIC-SMP file: > >>options SMP > >>options APIC_IO > >>Then I did: > >>make buildkernel KERNCONF=GENERIC-SMP > >>make installkernel KERNCONF=GENERIC-SMP > >>And rebooted. > >> > >>In dmesg I see: > >>FreeBSD/SMP: Multiprocessor motherboard > >>cpu0 (BSP): apic id: 1, version: 0x00040011, at 0xfee00000 > >>cpu1 (AP): apic id: 0, version: 0x00040011, at 0xfee00000 > >>io0 (APIC): apic id: 2, version: 0x000f0011, at 0xfec00000 > >>io1 (APIC): apic id: 3, version: 0x000f0011, at 0xfec01000 > >> > >>mptable: > >>MP Config Base Table Entries: > >>-- > >>Processors: APIC ID Version State Family Model Step Flags > >> 1 0x11 BSP, usable 6 11 1 > >>0x383fbff > >> 0 0x11 AP, usable 6 11 1 > >>0x383fbff > >> > >>uname -a: > >>FreeBSD xxx 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Sat Oct 26 12:04:37 CEST > >>2002 :/usr/obj/usr/src/sys/GENERIC-SMP i386 > >> > >> > >>But when I do a top, I only see one CPU. > >>last pid: 725; load averages: 0.09, 0.04, 0.01 > >>up 0+00:15:39 12:40:41 > >>59 processes: 1 running, 58 sleeping > >>CPU states: 21.4% user, 0.0% nice, 9.8% system, 0.5% interrupt, 68.3% > >>idle > > > > > >Looks as though it's working fine to me > > > > > Top only shows 1 CPU and not 2. Also look for the line in dmesg which states: "SMP: AP CPU #1 Launched!" which is another good indication that smp is working. Also, in `top', sometimes under the "STATE" column it will display 'CPU0" or "CPU1". Although, I'm not exactly sure what this means in the "STATE" context, but it is another indication that the system is aware of two processors. Nathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message