From owner-freebsd-smp@FreeBSD.ORG Tue Mar 10 10:45:20 2009 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95070106564A for ; Tue, 10 Mar 2009 10:45:20 +0000 (UTC) (envelope-from robert@heron.pl) Received: from sys.heron.com.pl (sys.heron.com.pl [89.174.255.17]) by mx1.freebsd.org (Postfix) with ESMTP id 516FC8FC1D for ; Tue, 10 Mar 2009 10:45:20 +0000 (UTC) (envelope-from robert@heron.pl) Received: from [89.174.255.14] by sys.heron.com.pl with esmtpa (Exim 4.69) (envelope-from ) id 1LgzNV-0009Yq-5z for freebsd-smp@freebsd.org; Tue, 10 Mar 2009 11:40:05 +0100 Message-Id: <2E7DD8D9-FABA-4A30-9118-948D26DB26AE@heron.pl> From: Robert Heron To: freebsd-smp@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Tue, 10 Mar 2009 11:40:05 +0100 X-Mailer: Apple Mail (2.930.3) Subject: only one logical CPU used in Xeon X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Mar 2009 10:45:20 -0000 Hi, I have FreeBSD 6.2R running on Intel SE7501HG2 motherboard with two Xeon installed. System detects 2 CPUs with 2 cores in each of them (total 4 cores) but it uses only one core in each Xeon (total 2 of 4 cores are used only). I see it in the 'top'. I tried the same hardware on FreeBSD 7.1R and this OS uses all of the detected cores. What should I do FreeBSD 6.2R to use all of the available cores? I cannot upgrade it to 7.x, must use 6.x Regards, Robert Heron From owner-freebsd-smp@FreeBSD.ORG Tue Mar 10 14:28:59 2009 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04EA51065693 for ; Tue, 10 Mar 2009 14:28:59 +0000 (UTC) (envelope-from ady@ady.ro) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id 977638FC1D for ; Tue, 10 Mar 2009 14:28:58 +0000 (UTC) (envelope-from ady@ady.ro) Received: by nf-out-0910.google.com with SMTP id d21so321498nfb.33 for ; Tue, 10 Mar 2009 07:28:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.211.196.13 with SMTP id y13mr4589040ebp.79.1236693428778; Tue, 10 Mar 2009 06:57:08 -0700 (PDT) In-Reply-To: <2E7DD8D9-FABA-4A30-9118-948D26DB26AE@heron.pl> References: <2E7DD8D9-FABA-4A30-9118-948D26DB26AE@heron.pl> Date: Tue, 10 Mar 2009 14:57:08 +0100 Message-ID: <78cb3d3f0903100657h77d26f04p2c464ed9a1423356@mail.gmail.com> From: Adrian Penisoara To: Robert Heron Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-smp@freebsd.org Subject: Re: only one logical CPU used in Xeon X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Mar 2009 14:28:59 -0000 Hi, On Tue, Mar 10, 2009 at 11:40 AM, Robert Heron wrote: > Hi, > > I have FreeBSD 6.2R running on Intel SE7501HG2 motherboard with two Xeon > installed. > System detects 2 CPUs with 2 cores in each of them (total 4 cores) but it > uses only one core in each Xeon (total 2 of 4 cores are used only). > I see it in the 'top'. I tried the same hardware on FreeBSD 7.1R and this > OS uses all of the detected cores. > > What should I do FreeBSD 6.2R to use all of the available cores? You should post your dmesg output (eventually from both 6.2 and 7.1, kernel booted verbosely with -v in bootloader) and/or submit a ProblemReport (send-pr). Regards, Adrian. > > I cannot upgrade it to 7.x, must use 6.x > > Regards, > Robert Heron > > _______________________________________________ > freebsd-smp@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-smp > To unsubscribe, send any mail to "freebsd-smp-unsubscribe@freebsd.org" > From owner-freebsd-smp@FreeBSD.ORG Tue Mar 10 14:55:48 2009 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E7CF106566B for ; Tue, 10 Mar 2009 14:55:48 +0000 (UTC) (envelope-from won.derick@yahoo.com) Received: from n75.bullet.mail.sp1.yahoo.com (n75.bullet.mail.sp1.yahoo.com [98.136.44.51]) by mx1.freebsd.org (Postfix) with SMTP id 540518FC1E for ; Tue, 10 Mar 2009 14:55:48 +0000 (UTC) (envelope-from won.derick@yahoo.com) Received: from [216.252.122.217] by n75.bullet.mail.sp1.yahoo.com with NNFMP; 10 Mar 2009 14:43:03 -0000 Received: from [69.147.84.102] by t2.bullet.sp1.yahoo.com with NNFMP; 10 Mar 2009 14:43:03 -0000 Received: from [127.0.0.1] by omp206.mail.sp1.yahoo.com with NNFMP; 10 Mar 2009 14:43:03 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 81400.96690.bm@omp206.mail.sp1.yahoo.com Received: (qmail 64876 invoked by uid 60001); 10 Mar 2009 14:43:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1236696182; bh=XJp5c3G94KcQ0Lp32fRKw9aA2LetrMXCS3T7mWLNWCo=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=JQU7R0ERXVBThU0OpzDFFfHTeq6V1pLihN1m3QlLJEsY18JB7nqDl7QvmVQJXT7fBk+N+gSDXoCnr1Y68bF7zNTcEGDBrHlEYieRgEVxrvnQOq+ftfHX8btaGGj8pNlxz7WqemEmcE0Ul4cTa6NerOSOw+a+M6bugCO3A6DCW7w= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=QRJCX39gmTc6t3EemC1UGfoxKeR9YTQy3+BHoK1WNzAf/3tMKHDCl7OFDmFrha0SYbmkzqURQ39GtJ/bmB9287FZv9I/+jw9Jb3vM9QjL42gLe0WsbcpvfV9PUchiwTlVFQp/cCAkM+oSZ2tCiB6Cu80ek0/1jdIFXDDEOyQIcc=; Message-ID: <719357.64276.qm@web45802.mail.sp1.yahoo.com> X-YMail-OSG: WGLoLzAVM1k18zjkDy.kYY3HcPnIjbRSQa.yoCA2iHCLupFp6TnlW7RPZbxu4ptyj9dtL66zklTh6D6hiM598rit4X4EaeXOTKnKbJOjtkfTutVKVxT.fa09kFamCP8B.d0.OfSjFJkW9_PAKB50kEdFzZRE1ywFkMJ.tM9goQvY2psXAWb.ykx.jcQ3a9J1t7J2vMmGjbnnSX1iaEQGd7Ri8tspBmPxXMvoIsHwngHEmvnPkyZ_VbyxNFzh Received: from [58.71.34.137] by web45802.mail.sp1.yahoo.com via HTTP; Tue, 10 Mar 2009 07:43:01 PDT X-Mailer: YahooMailClassic/5.1.19 YahooMailWebService/0.7.289.1 Date: Tue, 10 Mar 2009 07:43:01 -0700 (PDT) From: Won De Erick To: freebsd-smp@freebsd.org, Robert Heron MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: only one logical CPU used in Xeon X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Mar 2009 14:55:49 -0000 Hi, I also have boxes with several Intel Xeon dual-core processors, and also got same results. With FreeBSD 6.2R: #sysctl -a | grep pci.enable hw.pci.enable_io_modes: 1 I think 6.2 uses legacy interrupt (INTx) which allows sharing of IRQs and is CPU bounded(?). It is also probable that even MSI/MSIX-supported NIC drivers are used here, 6.2R still used the traditional interrupt mechanism. With FreeBSD 7.1: #sysctl -a | grep pci.enable hw.pci.enable_msix: 1 hw.pci.enable_msi: 1 hw.pci.enable_io_modes: 1 Google would tell us that MSI/MSI-X allows control over which processor is chosen as the interrupt target. Does this explain the result? http://www.onlamp.com/pub/a/bsd/2008/02/26/whats-new-in-freebsd-70.html?page=last Regards, Won --- On Tue, 3/10/09, Robert Heron wrote: > Hi, > > I have FreeBSD 6.2R running on Intel SE7501HG2 motherboard > with two Xeon installed. > System detects 2 CPUs with 2 cores in each of them (total 4 > cores) but it uses only one core in each Xeon (total 2 of 4 > cores are used only). > I see it in the 'top'. I tried the same hardware on FreeBSD > 7.1R and this OS uses all of the detected cores. > > What should I do FreeBSD 6.2R to use all of the available > cores? > I cannot upgrade it to 7.x, must use 6.x > > Regards, > Robert Heron > From owner-freebsd-smp@FreeBSD.ORG Tue Mar 10 15:14:38 2009 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BE88106574F for ; Tue, 10 Mar 2009 15:14:38 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 1A3128FC28 for ; Tue, 10 Mar 2009 15:14:38 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (pool-98-109-39-197.nwrknj.fios.verizon.net [98.109.39.197]) by cyrus.watson.org (Postfix) with ESMTPSA id B522446B5B; Tue, 10 Mar 2009 11:14:37 -0400 (EDT) Received: from localhost (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id n2AFEVT3026960; Tue, 10 Mar 2009 11:14:31 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-smp@freebsd.org Date: Tue, 10 Mar 2009 11:14:20 -0400 User-Agent: KMail/1.9.7 References: <719357.64276.qm@web45802.mail.sp1.yahoo.com> In-Reply-To: <719357.64276.qm@web45802.mail.sp1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903101114.20634.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Tue, 10 Mar 2009 11:14:31 -0400 (EDT) X-Virus-Scanned: ClamAV 0.94.2/9084/Tue Mar 10 03:11:13 2009 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Robert Heron , Won De Erick Subject: Re: only one logical CPU used in Xeon X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Mar 2009 15:14:39 -0000 On Tuesday 10 March 2009 10:43:01 am Won De Erick wrote: > > Hi, > > I also have boxes with several Intel Xeon dual-core processors, and also got same results. > > With FreeBSD 6.2R: > #sysctl -a | grep pci.enable > hw.pci.enable_io_modes: 1 > > I think 6.2 uses legacy interrupt (INTx) which allows sharing of IRQs and is CPU bounded(?). It is also probable that even MSI/MSIX-supported NIC drivers are used here, 6.2R still used the traditional interrupt mechanism. > > With FreeBSD 7.1: > #sysctl -a | grep pci.enable > hw.pci.enable_msix: 1 > hw.pci.enable_msi: 1 > hw.pci.enable_io_modes: 1 > > Google would tell us that MSI/MSI-X allows control over which processor is chosen as the interrupt target. Does this explain the result? MSI won't determine which CPUs are used. Probably the submitter needs to try 6.4. My guess is that 6.2 thinks his extra cores are hyperthreads and thus has them disabled by default. You can toggle machdep.hyperthreading_allowed (sysctl) if that is the case, but upgrading to 6.4 is probably better. -- John Baldwin From owner-freebsd-smp@FreeBSD.ORG Tue Mar 10 16:28:21 2009 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6140C1065677 for ; Tue, 10 Mar 2009 16:28:21 +0000 (UTC) (envelope-from robert@heron.pl) Received: from sys.heron.com.pl (mail.heron.pl [89.174.255.17]) by mx1.freebsd.org (Postfix) with ESMTP id 20FDD8FC1C for ; Tue, 10 Mar 2009 16:28:20 +0000 (UTC) (envelope-from robert@heron.pl) Received: from [89.174.255.14] by sys.heron.com.pl with esmtpa (Exim 4.69) (envelope-from ) id 1Lh4oT-000EgS-3S; Tue, 10 Mar 2009 17:28:17 +0100 Message-Id: <8CFE3F10-2504-45DB-9ED7-BDF354BC10FF@heron.pl> From: Robert Heron To: Lucas Holt In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Tue, 10 Mar 2009 17:28:18 +0100 References: <2E7DD8D9-FABA-4A30-9118-948D26DB26AE@heron.pl> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-smp@freebsd.org Subject: Re: only one logical CPU used in Xeon X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Mar 2009 16:28:21 -0000 Hyperthreading is enabled in BIOS, but the variable: machdep.hyperthreading_allowed is '0' by default in FreeBSD 6.2R :((( I just changed it now to '1' and all cores in all CPUs started to work :))) Very simple change and so much power more :) Thanks a lot for this hint!! Regards, Robert On Mar 10, 2009, at 3:19 PM, Lucas Holt wrote: > Have you tried the hyperthreading setting? > > machdep.hyperthreading_allowed=1 > (put that in /etc/sysctl.conf) > > On Mar 10, 2009, at 6:40 AM, Robert Heron wrote: > >> Hi, >> >> I have FreeBSD 6.2R running on Intel SE7501HG2 motherboard with two >> Xeon installed. >> System detects 2 CPUs with 2 cores in each of them (total 4 cores) >> but it uses only one core in each Xeon (total 2 of 4 cores are used >> only). >> I see it in the 'top'. I tried the same hardware on FreeBSD 7.1R >> and this OS uses all of the detected cores. >> >> What should I do FreeBSD 6.2R to use all of the available cores? >> I cannot upgrade it to 7.x, must use 6.x >> >> Regards, >> Robert Heron >> >> _______________________________________________ >> freebsd-smp@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-smp >> To unsubscribe, send any mail to "freebsd-smp- >> unsubscribe@freebsd.org" > > > > Lucas Holt > Luke@FoolishGames.com > ________________________________________________________ > MidnightBSD.org (Free OS) > JustJournal.com (Free blogging) > > From owner-freebsd-smp@FreeBSD.ORG Tue Mar 10 16:40:25 2009 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76307106564A for ; Tue, 10 Mar 2009 16:40:25 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outR.internet-mail-service.net (outr.internet-mail-service.net [216.240.47.241]) by mx1.freebsd.org (Postfix) with ESMTP id 5C71F8FC1C for ; Tue, 10 Mar 2009 16:40:25 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id F13A7F8CB; Tue, 10 Mar 2009 09:40:24 -0700 (PDT) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id 7DCEA2D601E; Tue, 10 Mar 2009 09:40:24 -0700 (PDT) Message-ID: <49B697F8.3070301@elischer.org> Date: Tue, 10 Mar 2009 09:40:24 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: Robert Heron References: <2E7DD8D9-FABA-4A30-9118-948D26DB26AE@heron.pl> <8CFE3F10-2504-45DB-9ED7-BDF354BC10FF@heron.pl> In-Reply-To: <8CFE3F10-2504-45DB-9ED7-BDF354BC10FF@heron.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Lucas Holt , freebsd-smp@freebsd.org Subject: Re: only one logical CPU used in Xeon X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Mar 2009 16:40:25 -0000 Robert Heron wrote: > > Hyperthreading is enabled in BIOS, but the variable: > > machdep.hyperthreading_allowed > > is '0' by default in FreeBSD 6.2R :((( > I just changed it now to '1' and all cores in all CPUs started to work :))) > > Very simple change and so much power more :) > well certainly more power used.. It would be a good idea to do benchmarks on your workload to check if it actually helps. This is is because Hyperthreading on some cpu models actually reduces throughput on some workloads because it thrashes the shared cache more. Remember that a secondary cache miss can take up as much extra time as dozens of instructions. From owner-freebsd-smp@FreeBSD.ORG Tue Mar 10 21:31:39 2009 Return-Path: Delivered-To: freebsd-smp@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D919106566C for ; Tue, 10 Mar 2009 21:31:39 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id EE1968FC0A for ; Tue, 10 Mar 2009 21:31:38 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id n2ALVJbR072495; Tue, 10 Mar 2009 22:31:34 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id n2ALVIjR072494; Tue, 10 Mar 2009 22:31:18 +0100 (CET) (envelope-from olli) Date: Tue, 10 Mar 2009 22:31:18 +0100 (CET) Message-Id: <200903102131.n2ALVIjR072494@lurza.secnetix.de> From: Oliver Fromme To: freebsd-smp@FreeBSD.ORG, Heron , Julian Elischer In-Reply-To: <49B697F8.3070301@elischer.org> X-Newsgroups: list.freebsd-smp User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 10 Mar 2009 22:31:34 +0100 (CET) Cc: Subject: Re: only one logical CPU used in Xeon X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-smp@FreeBSD.ORG, Heron , Julian Elischer List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Mar 2009 21:31:39 -0000 Julian Elischer wrote: > Robert Heron wrote: > > Hyperthreading is enabled in BIOS, but the variable: > > > > machdep.hyperthreading_allowed > > > > is '0' by default in FreeBSD 6.2R :((( > > I just changed it now to '1' and all cores in all CPUs started to work :))) > > > > Very simple change and so much power more :) > > well certainly more power used.. That's true. > It would be a good idea to do benchmarks on your workload > to check if it actually helps. This is is because > Hyperthreading on some cpu models actually reduces throughput > on some workloads because it thrashes the shared cache more. No need for benchmarks here, because Robert's processors don't do hyperthreading at all. FreeBSD 6.2 recognized the *cores* as logical HT processors, so he needs to set hyperthreading_allowed in order to enable the cores. Of course, the better solution is to update to a more recent release, such as 6.4 or even 7.1. His 6.2 is more than 2 years old and contains lots of known bugs, of which the wrong recognition of cores is a relatively harmless one. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "That's what I love about GUIs: They make simple tasks easier, and complex tasks impossible." -- John William Chambless From owner-freebsd-smp@FreeBSD.ORG Wed Mar 11 07:36:52 2009 Return-Path: Delivered-To: freebsd-smp@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A4C510656C5 for ; Wed, 11 Mar 2009 07:36:52 +0000 (UTC) (envelope-from robert@heron.pl) Received: from sys.heron.com.pl (sys.heron.com.pl [89.174.255.17]) by mx1.freebsd.org (Postfix) with ESMTP id DE56A8FC1F for ; Wed, 11 Mar 2009 07:36:51 +0000 (UTC) (envelope-from robert@heron.pl) Received: from [89.174.255.243] by sys.heron.com.pl with esmtpa (Exim 4.69) (envelope-from ) id 1LhIzg-0001be-6F; Wed, 11 Mar 2009 08:36:48 +0100 Message-Id: From: Robert Heron To: freebsd-smp@FreeBSD.ORG, Heron , Julian Elischer In-Reply-To: <200903102131.n2ALVIjR072494@lurza.secnetix.de> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Wed, 11 Mar 2009 08:36:47 +0100 References: <200903102131.n2ALVIjR072494@lurza.secnetix.de> X-Mailer: Apple Mail (2.930.3) Cc: Subject: Re: only one logical CPU used in Xeon X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2009 07:36:52 -0000 On Mar 10, 2009, at 10:31 PM, Oliver Fromme wrote: > No need for benchmarks here, because Robert's processors > don't do hyperthreading at all. FreeBSD 6.2 recognized > the *cores* as logical HT processors, so he needs to > set hyperthreading_allowed in order to enable the cores. > > Of course, the better solution is to update to a more > recent release, such as 6.4 or even 7.1. His 6.2 is > more than 2 years old and contains lots of known bugs, > of which the wrong recognition of cores is a relatively > harmless one. I also tried 6.4 with exactly the same wrong results as 6.2. 7.1 is OK, but is has hyperthreading_allowed=1 by default. Robert From owner-freebsd-smp@FreeBSD.ORG Wed Mar 11 08:03:45 2009 Return-Path: Delivered-To: freebsd-smp@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C78F7106567D for ; Wed, 11 Mar 2009 08:03:45 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 4572A8FC1C for ; Wed, 11 Mar 2009 08:03:45 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id n2B83SaQ097244; Wed, 11 Mar 2009 09:03:43 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id n2B83SxX097243; Wed, 11 Mar 2009 09:03:28 +0100 (CET) (envelope-from olli) Date: Wed, 11 Mar 2009 09:03:28 +0100 (CET) Message-Id: <200903110803.n2B83SxX097243@lurza.secnetix.de> From: Oliver Fromme To: freebsd-smp@FreeBSD.ORG, robert@heron.pl In-Reply-To: X-Newsgroups: list.freebsd-smp User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 11 Mar 2009 09:03:44 +0100 (CET) Cc: Subject: Re: only one logical CPU used in Xeon X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-smp@FreeBSD.ORG, robert@heron.pl List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2009 08:03:46 -0000 Robert Heron wrote: > Oliver Fromme wrote: > > No need for benchmarks here, because Robert's processors > > don't do hyperthreading at all. FreeBSD 6.2 recognized > > the *cores* as logical HT processors, so he needs to > > set hyperthreading_allowed in order to enable the cores. > > > > Of course, the better solution is to update to a more > > recent release, such as 6.4 or even 7.1. His 6.2 is > > more than 2 years old and contains lots of known bugs, > > of which the wrong recognition of cores is a relatively > > harmless one. > > I also tried 6.4 with exactly the same wrong results as 6.2. That's suprising. Actually I think that all fixes to the CPU detection code have been backported to 6-stable. > 7.1 is OK, but is has hyperthreading_allowed=1 by default. What happens if you set hyperthreading_allowed=0 on 7.1? Are you 100% sure that your processor are really multi-core and not just hyperthreaded? Please post the relevant lines from /var/run/dmesg.boot or output from the `dmesg` command (as Adrian already suggested), preferably on a recent FreeBSD system (i.e. 7.1). The top 25 lines should be sufficient. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Documentation is like sex; when it's good, it's very, very good, and when it's bad, it's better than nothing." -- Dick Brandon From owner-freebsd-smp@FreeBSD.ORG Wed Mar 11 10:21:53 2009 Return-Path: Delivered-To: freebsd-smp@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 431081065670 for ; Wed, 11 Mar 2009 10:21:53 +0000 (UTC) (envelope-from robert@heron.pl) Received: from sys.heron.com.pl (mail.heron.pl [89.174.255.17]) by mx1.freebsd.org (Postfix) with ESMTP id D83228FC0C for ; Wed, 11 Mar 2009 10:21:52 +0000 (UTC) (envelope-from robert@heron.pl) Received: from [89.174.255.14] by sys.heron.com.pl with esmtpa (Exim 4.69) (envelope-from ) id 1LhLZO-000FvB-BP for freebsd-smp@FreeBSD.ORG; Wed, 11 Mar 2009 11:21:50 +0100 Message-Id: <57F9AE2E-E5B2-4611-8094-B64C598D5DF4@heron.pl> From: Robert Heron To: freebsd-smp@FreeBSD.ORG In-Reply-To: <200903110803.n2B83SxX097243@lurza.secnetix.de> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Wed, 11 Mar 2009 11:21:50 +0100 References: <200903110803.n2B83SxX097243@lurza.secnetix.de> X-Mailer: Apple Mail (2.930.3) Cc: Subject: Re: only one logical CPU used in Xeon X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2009 10:21:53 -0000 On Mar 11, 2009, at 9:03 AM, Oliver Fromme wrote: >> I also tried 6.4 with exactly the same wrong results as 6.2. > > That's suprising. Actually I think that all fixes to the > CPU detection code have been backported to 6-stable. > Cores are detected correctly, but not used all by default (hyperthreading_allowed=0). When I change hyperthreading_allowed to 1 on a running system it starts to use all cores. When switch back to 0, uses only 1 core of each cpu. >> 7.1 is OK, but is has hyperthreading_allowed=1 by default. > > What happens if you set hyperthreading_allowed=0 on 7.1? > no change. 7.1 uses all cores regardless of value of hyperthreading_allowed > Are you 100% sure that your processor are really multi-core > and not just hyperthreaded? Please post the relevant lines > from /var/run/dmesg.boot or output from the `dmesg` command > (as Adrian already suggested), preferably on a recent > FreeBSD system (i.e. 7.1). The top 25 lines should be > sufficient. I have tried 6.2, 6.4 and 7.1 on two different servers. The first server of them (older) is Intel SE7501HG2 + 2 x Xeon 2.44GHz (2 cores in each Xeon) The second one (newer) is Intel S5000VSA + 2 x Xeon 2.66GHz (4 cores in each Xeon) ================= dmesg 6.2 on the newer hardware =================== > Copyright (c) 1992-2007 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-RELEASE #1: Sun Mar 8 20:02:38 CET 2009 root@[machine name removed]:/usr/src/sys/i386/compile/ HERON-62-2009-03-08 ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(TM) CPU 2.66GHz (2660.02-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf64 Stepping = 4 Features = 0xbfebfbff < FPU ,VME ,DE ,PSE ,TSC ,MSR ,PAE ,MCE ,CX8 ,APIC ,SEP ,MTRR ,PGE ,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0xe4bd,> AMD Features=0x20100000 AMD Features2=0x1 Cores per package: 2 Logical CPUs per core: 2 real memory = 2680160256 (2556 MB) avail memory = 2622218240 (2500 MB) FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 cpu4 (AP): APIC ID: 4 cpu5 (AP): APIC ID: 5 cpu6 (AP): APIC ID: 6 cpu7 (AP): APIC ID: 7 ioapic0 irqs 0-23 on motherboard ioapic1 irqs 24-47 on motherboard lapic0: Forcing LINT1 to edge trigger kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 cpu1: on acpi0 acpi_throttle1: on cpu1 acpi_throttle1: failed to attach P_CNT device_attach: acpi_throttle1 attach returned 6 cpu2: on acpi0 acpi_throttle2: on cpu2 acpi_throttle2: failed to attach P_CNT device_attach: acpi_throttle2 attach returned 6 cpu3: on acpi0 acpi_throttle3: on cpu3 acpi_throttle3: failed to attach P_CNT device_attach: acpi_throttle3 attach returned 6 cpu4: on acpi0 acpi_throttle4: on cpu4 acpi_throttle4: failed to attach P_CNT device_attach: acpi_throttle4 attach returned 6 cpu5: on acpi0 acpi_throttle5: on cpu5 acpi_throttle5: failed to attach P_CNT device_attach: acpi_throttle5 attach returned 6 cpu6: on acpi0 acpi_throttle6: on cpu6 acpi_throttle6: failed to attach P_CNT device_attach: acpi_throttle6 attach returned 6 cpu7: on acpi0 acpi_throttle7: on cpu7 acpi_throttle7: failed to attach P_CNT device_attach: acpi_throttle7 attach returned 6 ================== dmesg 7.1 on the older hardware ==================== Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.1-RELEASE #1: Wed Mar 11 10:38:08 CET 2009 root@[machine name removed]:/usr/src/sys/i386/compile/HERON Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2392.29-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf25 Stepping = 5 Features = 0xbfebfbff < FPU ,VME ,DE ,PSE ,TSC ,MSR ,PAE ,MCE ,CX8 ,APIC ,SEP ,MTRR ,PGE ,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0x4400 Logical CPUs per core: 2 real memory = 4026466304 (3839 MB) avail memory = 3942027264 (3759 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 6 cpu3 (AP): APIC ID: 7 ioapic0 irqs 0-23 on motherboard ioapic1 irqs 24-47 on motherboard ioapic2 irqs 48-71 on motherboard lapic0: Forcing LINT1 to edge trigger kbd1 at kbdmux0 acpi0: on motherboard ACPI Warning (dswload-0794): Type override - [DEB_] had invalid type (Integer) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [MLIB] had invalid type (Integer) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [DATA] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [SIO_] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [LEDP] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [GPEN] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [GPST] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [GP1N] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [WUES] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [WUSE] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [SBID] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [SWCE] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ACPI Warning (dswload-0794): Type override - [SMIR] had invalid type (String) for Scope operator, changed to (Scope) [20070320] ======================================================================== I observed that hardware does not make any difference. 6.2 and 6.4 uses all cores when machdep.hyperthreading_allowed=1 7.1 uses all cores regardless of value of machdep.hyperthreading_allowed variable. Regards, Robert From owner-freebsd-smp@FreeBSD.ORG Wed Mar 11 13:55:35 2009 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F2261065672 for ; Wed, 11 Mar 2009 13:55:35 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 3FF568FC14 for ; Wed, 11 Mar 2009 13:55:35 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (pool-98-109-39-197.nwrknj.fios.verizon.net [98.109.39.197]) by cyrus.watson.org (Postfix) with ESMTPSA id E1BE546B3C; Wed, 11 Mar 2009 09:55:34 -0400 (EDT) Received: from localhost (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id n2BDtSbH036304; Wed, 11 Mar 2009 09:55:28 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-smp@freebsd.org Date: Wed, 11 Mar 2009 08:37:57 -0400 User-Agent: KMail/1.9.7 References: <200903110803.n2B83SxX097243@lurza.secnetix.de> <57F9AE2E-E5B2-4611-8094-B64C598D5DF4@heron.pl> In-Reply-To: <57F9AE2E-E5B2-4611-8094-B64C598D5DF4@heron.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903110837.57483.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Wed, 11 Mar 2009 09:55:29 -0400 (EDT) X-Virus-Scanned: ClamAV 0.94.2/9091/Wed Mar 11 06:50:28 2009 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Robert Heron Subject: Re: only one logical CPU used in Xeon X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2009 13:55:35 -0000 On Wednesday 11 March 2009 6:21:50 am Robert Heron wrote: > > Are you 100% sure that your processor are really multi-core > > and not just hyperthreaded? Please post the relevant lines > > from /var/run/dmesg.boot or output from the `dmesg` command > > (as Adrian already suggested), preferably on a recent > > FreeBSD system (i.e. 7.1). The top 25 lines should be > > sufficient. > > I have tried 6.2, 6.4 and 7.1 on two different servers. The first > server of them (older) is Intel SE7501HG2 + 2 x Xeon 2.44GHz (2 cores > in each Xeon) > The second one (newer) is Intel S5000VSA + 2 x Xeon 2.66GHz (4 cores > in each Xeon) The older box does have hyperthreading and the new one does not, so 6.x is working properly. The issue with 7.1 is that if you use the default scheduler (ULE) it doesn't actually honor the hyperthreading_allowed variable. 7.x after 7.1 has been changed to at least honor it as a tunable in the ULE case (though the sysctl doesn't work). If you use 4BSD on 7.1 then the tunable and sysctl will work fine. -- John Baldwin From owner-freebsd-smp@FreeBSD.ORG Wed Mar 11 15:02:08 2009 Return-Path: Delivered-To: freebsd-smp@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC03D1065674 for ; Wed, 11 Mar 2009 15:02:08 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 28BB08FC13 for ; Wed, 11 Mar 2009 15:02:07 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id n2BF1pKZ016950; Wed, 11 Mar 2009 16:02:06 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id n2BF1pIj016949; Wed, 11 Mar 2009 16:01:51 +0100 (CET) (envelope-from olli) Date: Wed, 11 Mar 2009 16:01:51 +0100 (CET) Message-Id: <200903111501.n2BF1pIj016949@lurza.secnetix.de> From: Oliver Fromme To: freebsd-smp@FreeBSD.ORG, robert@heron.pl In-Reply-To: <57F9AE2E-E5B2-4611-8094-B64C598D5DF4@heron.pl> X-Newsgroups: list.freebsd-smp User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 11 Mar 2009 16:02:07 +0100 (CET) Cc: Subject: Re: only one logical CPU used in Xeon X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-smp@FreeBSD.ORG, robert@heron.pl List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2009 15:02:08 -0000 Robert Heron wrote: > I have tried 6.2, 6.4 and 7.1 on two different servers. The first > server of them (older) is Intel SE7501HG2 + 2 x Xeon 2.44GHz (2 cores > in each Xeon) > The second one (newer) is Intel S5000VSA + 2 x Xeon 2.66GHz (4 cores > in each Xeon) I'm afraid that's wrong. According to your dmesg output, the older machine has two Xeon processors which support hyperthreading, so you have a total of four logical CPUs (but only two physical). These Xeons are *not* multi-core, they're single-core. The newer machine has two Xeon processors with two cores each (not four!), again with hyperthreading, so you have a total of eight logical CPUs. So everything is working as expected. Here's how you can see the details in the demsg output: The older machine: > Features = 0xbfebfbff <...,HTT,...> The "HTT" bit in the features bitmask indicates that the processor supports hyperthreading. > Logical CPUs per core: 2 This also refers to hyperthreading: You have two logical (i.e. hyperthreaded) CPUs per core. > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs That's the total number of logical CPUs: You have two processor packages, one core per package, and two HTT- CPUs per core: 2 * 1 * 2 == 4. But you only have two physical cores (one per processor package). Now the newer machine: > Features = 0xbfebfbff <...,HTT,...> Again: "HTT" == hyperthreading supported. > Cores per package: 2 These are a multi-core processor: There are two cores per processor package. > Logical CPUs per core: 2 And again hyperthreading: Two logical CPUs per core. > FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs So you get a total of eight logical CPUs, including hyperthreading (2 * 2 * 2 == 8). Note that there are only four physical cores. Whether hyperthreading will improve performance is controversial. Most people seem to believe that it depends on your kind of application, but one thing is sure: hyperthreading will *not* double the performance, not even nearly. In most cases it's a matter of a few percent only, probably barely noticeable. And in some cases hyperthreading will make things worse. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "The scanf() function is a large and complex beast that often does something almost but not quite entirely unlike what you desired." -- Chris Torek From owner-freebsd-smp@FreeBSD.ORG Thu Mar 12 13:58:44 2009 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6D2E1065674 for ; Thu, 12 Mar 2009 13:58:44 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id A8CDD8FC1E for ; Thu, 12 Mar 2009 13:58:44 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (pool-98-109-39-197.nwrknj.fios.verizon.net [98.109.39.197]) by cyrus.watson.org (Postfix) with ESMTPSA id 563C646B06; Thu, 12 Mar 2009 09:58:44 -0400 (EDT) Received: from localhost (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id n2CDwVOG046493; Thu, 12 Mar 2009 09:58:38 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-smp@freebsd.org, robert@heron.pl Date: Thu, 12 Mar 2009 08:44:13 -0400 User-Agent: KMail/1.9.7 References: <200903111501.n2BF1pIj016949@lurza.secnetix.de> In-Reply-To: <200903111501.n2BF1pIj016949@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903120844.13506.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Thu, 12 Mar 2009 09:58:38 -0400 (EDT) X-Virus-Scanned: ClamAV 0.94.2/9100/Thu Mar 12 05:07:56 2009 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Subject: Re: only one logical CPU used in Xeon X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2009 13:58:45 -0000 On Wednesday 11 March 2009 11:01:51 am Oliver Fromme wrote: > Here's how you can see the details in the demsg output: > The older machine: > > > Features = 0xbfebfbff <...,HTT,...> > > The "HTT" bit in the features bitmask indicates that the > processor supports hyperthreading. No, that flag just means it supports a register where you can ask for the total number of threads/cores per package. Multi-core CPUs that don't have hyperthreads have 'HTT' set, but when you read the registers properly you see that they have 1 thread per core. -- John Baldwin From owner-freebsd-smp@FreeBSD.ORG Thu Mar 12 14:28:16 2009 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A0491065680 for ; Thu, 12 Mar 2009 14:28:16 +0000 (UTC) (envelope-from won.derick@yahoo.com) Received: from n73.bullet.mail.sp1.yahoo.com (n73.bullet.mail.sp1.yahoo.com [98.136.44.191]) by mx1.freebsd.org (Postfix) with SMTP id F0C2C8FC0C for ; Thu, 12 Mar 2009 14:28:15 +0000 (UTC) (envelope-from won.derick@yahoo.com) Received: from [69.147.84.144] by n73.bullet.mail.sp1.yahoo.com with NNFMP; 12 Mar 2009 14:28:15 -0000 Received: from [69.147.65.170] by t6.bullet.mail.sp1.yahoo.com with NNFMP; 12 Mar 2009 14:28:15 -0000 Received: from [127.0.0.1] by omp505.mail.sp1.yahoo.com with NNFMP; 12 Mar 2009 14:28:15 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 593885.70577.bm@omp505.mail.sp1.yahoo.com Received: (qmail 63211 invoked by uid 60001); 12 Mar 2009 14:28:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1236868095; bh=XuotPHTFV3PCbjIaYuTQni0Jlcy7UbGRTukFpeNvlYE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ChSmTD+3MRgYCm3S/e3On75r2FnQsuSErGBWNVpOTS0HqNFKz9YIFLCK46f0HG2rfHm6jizK7o0d4tlde8yIj7eOOMDuSeRaQfrqHwKQJqTwXPCwfPdv+1ycwBlMDmyoiyS9EG8KKAU1zanKLpYB0Kss0z7B0zUcgrLntkuv39Y= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=tDNmJypEuV7FrwlVMwOPFPiERx/CMRhn16u3G99obz5lK3+GreSsKqxZ35cZg/X9JxF8GjwqSmWT4m1dQo590APwu6zJ615XM5NZmNyqpV1o1DO/27Fan8VXwB7YimC/HdKpc5GfLYtk8vQn5rGm3Vk5nfv0noGchgXxFVg4v+M=; Message-ID: <418159.62247.qm@web45804.mail.sp1.yahoo.com> X-YMail-OSG: j2E5SggVM1kJkH954anGY92huawYBKlkDjiGJ1bFnoKUGnB7JPAzeqCPYJMmpoKAC7Z47zpGdBUWft.ZgfkDdMZ_uPHHl_jo4eOrkYRNHKQvtfKPmiAnF3xU4oJBxsRiiEMGAvorVB36ksTPbvoRgDc8BE_bleWslHEO3_ukZ5TsDv6jTdwIeY3hv6iUhNv0uLkag4uk_2Xr0x8h8tZ5GROP1WYCqMBLsCXAtqXSHOmA1.FDpC1qiIbmfvybn_iVqbML0uQex1_3uNwAw7BiKiXz1UcEaT8- Received: from [58.71.34.137] by web45804.mail.sp1.yahoo.com via HTTP; Thu, 12 Mar 2009 07:28:15 PDT X-Mailer: YahooMailClassic/5.1.19 YahooMailWebService/0.7.289.1 Date: Thu, 12 Mar 2009 07:28:15 -0700 (PDT) From: won.derick@yahoo.com To: freebsd-smp@freebsd.org, robert@heron.pl, John Baldwin MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: only one logical CPU used in Xeon X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: won.derick@yahoo.com List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2009 14:28:16 -0000 --- On Thu, 3/12/09, John Baldwin wrote:=0A> =0A> -----In= line Attachment Follows-----=0A> =0A> On Wednesday 11 March 2009 11:01:51= =0A> am Oliver Fromme wrote:=0A> > Here's how you can see the details in th= e demsg=0A> output:=0A> > The older machine:=0A> > =0A> >=A0 > Features =3D= 0xbfebfbff <...,HTT,...>=0A> > =0A> > The "HTT" bit in the features bitmas= k indicates that=0A> the=0A> > processor supports hyperthreading.=0A> =0A> = No, that flag just means it supports a register where you=0A> can ask for t= he =0A> total number of threads/cores per package.=A0 Multi-core=0A> CPUs t= hat don't have =0A> hyperthreads have 'HTT' set, but when you read the=0A> = registers properly you see =0A> that they have 1 thread per core.=0A> =0A= =0ADoes this mean that the # of logical CPUs per core is not enough to dete= rmine whether the machine supports hyperthreading or not? You've said earli= er that the newer machine is not hyperthreaded, so I'm assuming that there = is another part in the dmesg output that says so. more guidance pls.=0A=0A= =0A=0A From owner-freebsd-smp@FreeBSD.ORG Thu Mar 12 17:14:54 2009 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A41AA106564A for ; Thu, 12 Mar 2009 17:14:54 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 7461C8FC0C for ; Thu, 12 Mar 2009 17:14:54 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (pool-98-109-39-197.nwrknj.fios.verizon.net [98.109.39.197]) by cyrus.watson.org (Postfix) with ESMTPSA id 043BA46B2A; Thu, 12 Mar 2009 13:14:53 -0400 (EDT) Received: from localhost (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id n2CHEl28050967; Thu, 12 Mar 2009 13:14:47 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: won.derick@yahoo.com Date: Thu, 12 Mar 2009 10:55:22 -0400 User-Agent: KMail/1.9.7 References: <418159.62247.qm@web45804.mail.sp1.yahoo.com> In-Reply-To: <418159.62247.qm@web45804.mail.sp1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200903121055.23408.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Thu, 12 Mar 2009 13:14:48 -0400 (EDT) X-Virus-Scanned: ClamAV 0.94.2/9101/Thu Mar 12 11:30:26 2009 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: robert@heron.pl, freebsd-smp@freebsd.org Subject: Re: only one logical CPU used in Xeon X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2009 17:14:54 -0000 On Thursday 12 March 2009 10:28:15 am won.derick@yahoo.com wrote: >=20 > --- On Thu, 3/12/09, John Baldwin wrote: > >=20 > > -----Inline Attachment Follows----- > >=20 > > On Wednesday 11 March 2009 11:01:51 > > am Oliver Fromme wrote: > > > Here's how you can see the details in the demsg > > output: > > > The older machine: > > >=20 > > >=A0 > Features =3D 0xbfebfbff <...,HTT,...> > > >=20 > > > The "HTT" bit in the features bitmask indicates that > > the > > > processor supports hyperthreading. > >=20 > > No, that flag just means it supports a register where you > > can ask for the=20 > > total number of threads/cores per package.=A0 Multi-core > > CPUs that don't have=20 > > hyperthreads have 'HTT' set, but when you read the > > registers properly you see=20 > > that they have 1 thread per core. > >=20 >=20 > Does this mean that the # of logical CPUs per core is not enough to=20 determine whether the machine supports hyperthreading or not? You've said=20 earlier that the newer machine is not hyperthreaded, so I'm assuming that=20 there is another part in the dmesg output that says so. more guidance pls. Your new machine might be hyperthreaded. I'm not really sure as it's a P4 descendant and I'm not sure if Intel released some dual-core P4 Xeon that had 2 threads per core. The current Core processors do not implement multi= ple=20 threads in their cores, but neither of your systems have those CPUs. =2D-=20 John Baldwin