From owner-freebsd-smp@FreeBSD.ORG Mon Sep 1 08:13:10 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECA5016A4BF for ; Mon, 1 Sep 2003 08:13:09 -0700 (PDT) Received: from sccmmhc02.asp.att.net (sccmmhc02.asp.att.net [204.127.203.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8807143FF7 for ; Mon, 1 Sep 2003 08:13:08 -0700 (PDT) (envelope-from geek@mchsi.com) Received: from mchsi.com (12-216-226-11.client.mchsi.com[12.216.226.11]) by sccmmhc02.asp.att.net (sccmmhc02) with SMTP id <20030901151307mm2004dmdve>; Mon, 1 Sep 2003 15:13:07 +0000 Message-ID: <3F53603E.7070300@mchsi.com> Date: Mon, 01 Sep 2003 10:05:34 -0500 From: Sam Napier User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030718 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-smp@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: option Hyperthreading X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2003 15:13:10 -0000 I have a quad P-Pro machine (IBM PC-704) running FreeBSD 4.8 p-7, I wanted to know if there is an advantage to enabling hyperthreading in the kernel config when you are using more than 2 physical processors? Are there any changes that need to be made to make.conf for this setup? --Sam Napier From owner-freebsd-smp@FreeBSD.ORG Tue Sep 2 09:03:58 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4B1616A4BF for ; Tue, 2 Sep 2003 09:03:58 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-64-169-107-253.dsl.lsan03.pacbell.net [64.169.107.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E54543FE3 for ; Tue, 2 Sep 2003 09:03:58 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id A12E566B04; Tue, 2 Sep 2003 09:03:57 -0700 (PDT) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 63568A47; Tue, 2 Sep 2003 09:03:57 -0700 (PDT) Date: Tue, 2 Sep 2003 09:03:57 -0700 From: Kris Kennaway To: Sam Napier Message-ID: <20030902160357.GC45035@rot13.obsecurity.org> References: <3F53603E.7070300@mchsi.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9Ek0hoCL9XbhcSqy" Content-Disposition: inline In-Reply-To: <3F53603E.7070300@mchsi.com> User-Agent: Mutt/1.4.1i cc: freebsd-smp@freebsd.org Subject: Re: option Hyperthreading X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2003 16:03:58 -0000 --9Ek0hoCL9XbhcSqy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 01, 2003 at 10:05:34AM -0500, Sam Napier wrote: > I have a quad P-Pro machine (IBM PC-704) running FreeBSD 4.8 p-7, I=20 > wanted to know if there is an advantage to enabling hyperthreading in=20 > the kernel config when you are using more than 2 physical processors?=20 It depends on the workload: sometimes yes, sometimes no. Try it and see. > Are there any changes that need to be made to make.conf for this setup? No. Kris --9Ek0hoCL9XbhcSqy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/VL9sWry0BWjoQKURAhBAAKD7q1qbbwt3klu9ISXc28cJD5pIcQCfVAT2 r0roZd/c9eitBx+StFWhzjM= =k5D4 -----END PGP SIGNATURE----- --9Ek0hoCL9XbhcSqy-- From owner-freebsd-smp@FreeBSD.ORG Tue Sep 2 09:19:23 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 512AE16A4BF for ; Tue, 2 Sep 2003 09:19:23 -0700 (PDT) Received: from musique.teaser.net (musique.teaser.net [213.91.2.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F9AF4400E for ; Tue, 2 Sep 2003 09:19:22 -0700 (PDT) (envelope-from e-masson@kisoft-services.com) Received: from notbsdems.interne.kisoft-services.com (nantes.kisoft-services.com [193.56.60.243]) by musique.teaser.net (Postfix) with ESMTP id DCE7072534; Tue, 2 Sep 2003 18:19:20 +0200 (CEST) Received: by notbsdems.interne.kisoft-services.com (Postfix, from userid 1001) id 4551259D2F; Tue, 2 Sep 2003 18:19:16 +0200 (CEST) To: Sam Napier From: Eric Masson In-Reply-To: <3F53603E.7070300@mchsi.com> (Sam Napier's message of "Mon, 01 Sep 2003 10:05:34 -0500") References: <3F53603E.7070300@mchsi.com> X-Operating-System: FreeBSD 4.8-STABLE i386 Date: Tue, 02 Sep 2003 18:19:15 +0200 Message-ID: <86llt7go3g.fsf@notbsdems.interne.kisoft-services.com> User-Agent: Gnus/5.1003 (Gnus v5.10.3) XEmacs/21.4 (Portable Code, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit cc: freebsd-smp@freebsd.org Subject: Re: option Hyperthreading X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2003 16:19:23 -0000 >>>>> "Sam" == Sam Napier writes: Sam> I have a quad P-Pro machine (IBM PC-704) running FreeBSD 4.8 Sam> p-7, I wanted to know if there is an advantage to enabling Sam> hyperthreading in the kernel config when you are using more than 2 Sam> physical processors? I really doubt PPros have HT capabilities. So in the best case, your box won't use HT code. Eric Masson -- > Notre devoir, pour leur bien et pour le bien de Linux, est de te > flinguer avant que tu ne les sacrifies (fût-ce avec les meilleures > intentions du monde). -+- TP In: Guide du linuxien pervers : "De la pédagogie par l'Exemple" From owner-freebsd-smp@FreeBSD.ORG Wed Sep 3 09:40:06 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38E8516A4BF for ; Wed, 3 Sep 2003 09:40:06 -0700 (PDT) Received: from mail.speakeasy.net (mail7.speakeasy.net [216.254.0.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7820543F85 for ; Wed, 3 Sep 2003 09:40:05 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 11993 invoked from network); 3 Sep 2003 16:40:04 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 3 Sep 2003 16:40:04 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id h83GdpDH084963; Wed, 3 Sep 2003 12:39:51 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030829192922.1231.qmail@kimchee.ssr.com> Date: Wed, 03 Sep 2003 12:40:10 -0400 (EDT) From: John Baldwin To: Scott Ballantyne X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-smp@freebsd.org Subject: Re: Unpredictable problems with APIC renumbering X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2003 16:40:06 -0000 On 29-Aug-2003 Scott Ballantyne wrote: > John Baldwin writes: >> >> Ack, that patch was for current. Try using >> 'eflags = read_eflags(); disable_intr();' in place of intr_disable() >> and 'write_eflags(eflags);' in place of intr_restore(). > > Thanks! That builds with no problem, and I am running it now. I will > let you know how it goes. Did this work? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ From owner-freebsd-smp@FreeBSD.ORG Wed Sep 3 10:38:03 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A63F16A4C0 for ; Wed, 3 Sep 2003 10:38:03 -0700 (PDT) Received: from mailhost.ssr.com (ns.ssr.com [199.4.235.2]) by mx1.FreeBSD.org (Postfix) with SMTP id A788B43FB1 for ; Wed, 3 Sep 2003 10:38:02 -0700 (PDT) (envelope-from sdb@ssr.com) Received: (qmail 3065 invoked by uid 103); 3 Sep 2003 17:37:57 -0000 Date: 3 Sep 2003 17:37:57 -0000 Message-ID: <20030903173757.3064.qmail@ssr.com> From: Scott Ballantyne To: jhb@FreeBSD.org In-reply-to: (message from John Baldwin on Wed, 03 Sep 2003 12:40:10 -0400 (EDT)) References: cc: freebsd-smp@freebsd.org Subject: Re: Unpredictable problems with APIC renumbering X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2003 17:38:03 -0000 John Baldwin writes: > On 29-Aug-2003 Scott Ballantyne wrote: > > John Baldwin writes: > >> > >> Ack, that patch was for current. Try using > >> 'eflags = read_eflags(); disable_intr();' in place of intr_disable() > >> and 'write_eflags(eflags);' in place of intr_restore(). > > > > Thanks! That builds with no problem, and I am running it now. I will > > let you know how it goes. > > Did this work? > I hadn't forgotten you :-) It seems fine so far, but since it didn't happen on every reboot, it's hard to say. I was going to give it a few more days before letting you know. If you have a suggestion for how to stress test it, I would be happy to do it. Scott -- sdb@ssr.com From owner-freebsd-smp@FreeBSD.ORG Wed Sep 3 23:43:06 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37C4416A4BF for ; Wed, 3 Sep 2003 23:43:06 -0700 (PDT) Received: from mailhost.ssr.com (ns.ssr.com [199.4.235.2]) by mx1.FreeBSD.org (Postfix) with SMTP id 72C0343FCB for ; Wed, 3 Sep 2003 23:43:05 -0700 (PDT) (envelope-from sdb@ssr.com) Received: (qmail 1229 invoked by uid 103); 4 Sep 2003 06:43:05 -0000 Date: 4 Sep 2003 06:43:05 -0000 Message-ID: <20030904064305.1228.qmail@ssr.com> From: Scott Ballantyne To: freebsd-smp@freebsd.org In-reply-to: (message from John Baldwin on Wed, 03 Sep 2003 12:40:10 -0400 (EDT)) References: Subject: Re: Unpredictable problems with APIC renumbering X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2003 06:43:06 -0000 Hi John, > >> Ack, that patch was for current. Try using > >> 'eflags = read_eflags(); disable_intr();' in place of intr_disable() > >> and 'write_eflags(eflags);' in place of intr_restore(). > > > > Thanks! That builds with no problem, and I am running it now. I will > > let you know how it goes. > > Did this work? > After many reboots today, I saw the problem resurface. It does seem improved, although I haven't kept statistics (sorry), it is clearly not fixed. If you have any other patches, I'm more than happy to test them. Thanks again for your help. sdb -- sdb@ssr.com From owner-freebsd-smp@FreeBSD.ORG Sat Sep 6 12:15:46 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4E2416A4BF for ; Sat, 6 Sep 2003 12:15:46 -0700 (PDT) Received: from postfix3-1.free.fr (postfix3-1.free.fr [213.228.0.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DC8944008 for ; Sat, 6 Sep 2003 12:15:44 -0700 (PDT) (envelope-from mhary@club-internet.fr) Received: from club-internet.fr (vaugirard-1-81-57-77-184.fbx.proxad.net [81.57.77.184]) by postfix3-1.free.fr (Postfix) with ESMTP id C48E3C2C8; Sat, 6 Sep 2003 21:15:42 +0200 (CEST) Message-ID: <3F5A325D.9030805@club-internet.fr> Date: Sat, 06 Sep 2003 21:15:41 +0200 From: Mathias HARY User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sam Napier , freebsd-smp@freebsd.org References: <3F53603E.7070300@mchsi.com> In-Reply-To: <3F53603E.7070300@mchsi.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: option Hyperthreading X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2003 19:15:47 -0000 Sam Napier wrote: > I have a quad P-Pro machine (IBM PC-704) running FreeBSD 4.8 p-7, I > wanted to know if there is an advantage to enabling hyperthreading in > the kernel config when you are using more than 2 physical processors? As Eric Masson said, PPro don't know about hyperthreading as it was probably only in Intel's engineers's dreams at the time they were working on the PPro. I've an ALR Revolution (6xPPro 200Mhz/512Kb cache) and it runs very nice with a SMP kernel. In the best case, hyperthreading will not slow your PPro machine down. Enjoy multi-cpu + SCSI !