From owner-freebsd-questions@FreeBSD.ORG Wed Apr 30 22:25:28 2003 Return-Path: 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 43BE737B401 for ; Wed, 30 Apr 2003 22:25:28 -0700 (PDT) Received: from eesh.lebox.org (dsl092-249-138.sfo2.dsl.speakeasy.net [66.92.249.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4402E43F93 for ; Wed, 30 Apr 2003 22:25:27 -0700 (PDT) (envelope-from mio@eesh.lebox.org) Received: from eesh.lebox.org (localhost [127.0.0.1]) by eesh.lebox.org (8.12.6p2/8.12.6) with ESMTP id h415X31s005870; Wed, 30 Apr 2003 22:33:04 -0700 (PDT) (envelope-from mio@eesh.lebox.org) Received: (from mio@localhost) by eesh.lebox.org (8.12.6p2/8.12.6/Submit) id h415X2kG005869; Wed, 30 Apr 2003 22:33:02 -0700 (PDT) Date: Wed, 30 Apr 2003 22:33:01 -0700 From: milan To: Dan Nelson Message-ID: <20030501053301.GF2778@eesh.lebox.org> References: <20030501042856.GE2778@eesh.lebox.org> <20030501044638.GG90046@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030501044638.GG90046@dan.emsphone.com> User-Agent: Mutt/1.4i cc: questions@freebsd.org Subject: Re: SMP bug? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2003 05:25:28 -0000 On Wed, Apr 30, 2003 at 11:46:38PM -0500, Dan Nelson wrote: > > In the last episode (Apr 30), milan said: > > Hi, i have a dual proc Xeon system but freebsd with SMP and > > Hyperthreading enabled dectects 3 (three) processors! > > > > any ideas what's wrong? is this normal? > > > > cpu0 (BSP): apic id: 0, version: 0x00050014, at 0xfee00000 > > cpu1 (AP): apic id: 1, version: 0x00050014, at 0xfee00000 > > cpu2 (AP): apic id: 2, version: 0x00050014, at 0xfee00000 > > cpu3 (AP): apic id: 3, version: 0x00050014, at 0xfee00000 > > I count four CPUs. What does "sysctl hw.ncpu" print? kick# sysctl hw.ncpu hw.ncpu: 4 top also shows 0-3 in C column. i was confused by this: APIC_IO: Testing 8254 interrupt delivery APIC_IO: Broken MP table detected: 8254 is not connected to IOAPIC #0 intpin 2 APIC_IO: routing 8254 via 8259 and IOAPIC #0 intpin 0 bpf: lo0 attached bpf: ppp0 attached new masks: bio 6800c040, tty 6300001a, net 6700021e bpf: sl0 attached bpf: faith0 attached SMP: AP CPU #2 Launched! SMP: CPU2 apic_initialize(): lint0: 0x00010700 lint1: 0x00010400 TPR: 0x00000010 SVR: 0x000001ff SMP: AP CPU #1 Launched! SMP: CPU1 apic_initialize(): lint0: 0x00010700 lint1: 0x00010400 TPR: 0x00000010 SVR: 0x000001ff SMP: AP CPU #3 Launched! SMP: CPU3 apic_initialize(): lint0: 0x00010700 lint1: 0x00010400 TPR: 0x00000010 SVR: 0x000001ff