From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 28 23:12:26 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1D4016A4CE for ; Mon, 28 Mar 2005 23:12:25 +0000 (GMT) Received: from seven.Alameda.net (seven.alameda.net [64.81.53.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id A3FC943D1F for ; Mon, 28 Mar 2005 23:12:25 +0000 (GMT) (envelope-from ulf@Alameda.net) Received: by seven.Alameda.net (Postfix, from userid 1000) id 626703A201; Mon, 28 Mar 2005 15:12:25 -0800 (PST) Date: Mon, 28 Mar 2005 15:12:25 -0800 From: Ulf Zimmermann To: Rojer Message-ID: <20050328231225.GD13841@seven.alameda.net> References: <20050328221531.GA13841@seven.alameda.net> <42488CEA.2020507@rojer.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42488CEA.2020507@rojer.pp.ru> Organization: Alameda Networks, Inc. X-Operating-System: FreeBSD 4.10-RELEASE-p2 User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org cc: ulf@Alameda.net cc: Greg Eden Subject: Re: FreeBSD 5.3R SMP Kernel not detecting 2nd CPU in a HP DL360(?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ulf@Alameda.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2005 23:12:26 -0000 On Tue, Mar 29, 2005 at 03:02:02AM +0400, Rojer wrote: > Ulf Zimmermann wrote: > > > >I have a DL380 g3 with dual P4-3.2GHz 1MB L3 cache, the kern conf has > >just "options SMP" to make it work. Here is the top part and bottom part > >of dmesg from boot: > >... > > > > >SMP: AP CPU #1 Launched! > > > >... > > > >kern.smp.active: 1 > >kern.smp.disabled: 0 > >kern.smp.cpus: 2 > > you should see 4 cpus "launching", assuming you haven't disabled > hyperthreading. > > in fact, i have seen similar situation myself. > FreeBSD would not recognize second physical CPU with hyperthreading enabled. > it'd launch cpu #1 but not cpus 2 and 3. > after eventually noticing it, i tried disabling hyperthreading in BIOS - > it worked fine. i still had 2 cpus, but this time 2 physical cpus, > and lower cpu load figures confirmed that those 2 "previous" cpus were in > fact > one physical + 1 hyperdreaded :) > and this is not a problem of the particular server, i actually tried > replacing > the platform (moved hdds to the same box nearby) and it behaved in exactly > the same manner. > the platform is Fujitsu RX200 (2 x 2.8 Xeon), OS is FreeBSD 4.11-PRERELEASE. > > i still kinda have a box to play with (can bring it down to test during > weekend), > so if someone can offer insight, i can provide more info and maybe even a > short-term > remote ssh/serial console access. I at least have HyperThreading turned off. So seeing 2 cpus is correctly: evil ulf /home/ulf > sysctl -a | grep cpu kern.threads.virtual_cpu: 2 kern.sched.ipiwakeup.onecpu: 0 kern.ccpu: 1948 kern.smp.maxcpus: 16 kern.smp.cpus: 2 debug.kdb.stop_cpus: 1 debug.PMAP1changedcpu: 5 hw.ncpu: 2 hw.acpi.cpu.cx_supported: C1/0 hw.acpi.cpu.cx_lowest: C1 hw.acpi.cpu.cx_usage: 100.00% -- Regards, Ulf. --------------------------------------------------------------------- Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-865-0204 You can find my resume at: http://seven.Alameda.net/~ulf/resume.html