From owner-freebsd-smp Sun Mar 16 7:38: 7 2003 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 CD93637B404 for ; Sun, 16 Mar 2003 07:38:05 -0800 (PST) Received: from paja.kn.vutbr.cz (paja.kn.vutbr.cz [147.229.191.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEDF343F93 for ; Sun, 16 Mar 2003 07:38:03 -0800 (PST) (envelope-from musil@kn.vutbr.cz) Received: from kn.vutbr.cz (p2-204a.kn.vutbr.cz [147.229.204.30]) by paja.kn.vutbr.cz (8.11.6/8.11.6) with ESMTP id h2GFbiR80433; Sun, 16 Mar 2003 16:37:55 +0100 (CET) (envelope-from musil@kn.vutbr.cz) Message-ID: <3E749A48.2000902@kn.vutbr.cz> Date: Sun, 16 Mar 2003 16:37:44 +0100 From: Vaclav Musil User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 X-Accept-Language: cs, en MIME-Version: 1.0 To: James Schmidt Cc: freebsd-smp@FreeBSD.ORG Subject: Re: SE7500CW2 - Kicking a dead horse. References: <20030316001348.T36141-100000@speedy.insekure.com> X-Enigmail-Version: 0.63.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org No, it wasn't. :(( V. James Schmidt wrote: > I hate to beat a dead horse concerning this issue, but was anything ever > resolved with SMP problems with FreeBSD and the Intel SE7500CW2 running > Dual P4-Xeons ? I don't have the time to read every message I get from > the FreeBSD related mail lists but a cursory search for related topics > showed up nothing. Many thanks in advance. > > Regards, > James Schmidt > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-smp" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Sun Mar 16 8:56:11 2003 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 20D2037B404 for ; Sun, 16 Mar 2003 08:56:10 -0800 (PST) Received: from mail.interchange.ca (ns.interchange.ca [216.126.79.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2949043F3F for ; Sun, 16 Mar 2003 08:56:09 -0800 (PST) (envelope-from michael@fastmail.ca) Received: by mail.interchange.ca (Fastmailer, from userid 555) id 25B8D864A63; Sun, 16 Mar 2003 11:49:40 -0500 (EST) Received: from 24.114.6.105 by www.fastmail.ca with HTTP; Sun, 16 Mar 2003 16:49:40 +0000 (UTC) MIME-Version: 1.0 Message-Id: <3E74AB24.00000D.35317@ns.interchange.ca> Content-Type: Multipart/Mixed; boundary="------------Boundary-00=_SEPUGJZXFQQMYJ0CCJD0" To: musil@kn.vutbr.cz Subject: Re: SE7500CW2 - Kicking a dead horse. Cc: freebsd-smp@FreeBSD.ORG, james@JamesSchmidt.Com Date: Sun, 16 Mar 2003 11:49:40 -0500 (EST) From: "Michael Richards" X-Fastmail-IP: [24.114.6.105] Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --------------Boundary-00=_SEPUGJZXFQQMYJ0CCJD0 Content-Type: Text/Plain Content-Transfer-Encoding: 7bit I've spent a little time messing with them as someone has generously donated use of a machine with said hardware. I have not made any huge amount of progress nor have I had a lot of time to work on the problem. As long as the hardware is available I'll continue to pluck away at it. -Michael > James Schmidt wrote: >> I hate to beat a dead horse concerning this issue, but was >> anything ever resolved with SMP problems with FreeBSD and the >> Intel SE7500CW2 running Dual P4-Xeons ? I don't have the time to >> read every message I get from the FreeBSD related mail lists but >> a cursory search for related topics showed up nothing. Many >> thanks in advance. >> >> Regards, >> James Schmidt >> >> >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> with "unsubscribe freebsd-smp" in the body of the message > > _________________________________________________________________ http://fastmail.ca/ - Fast Secure Web Email for Canadians --------------Boundary-00=_SEPUGJZXFQQMYJ0CCJD0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Sun Mar 16 13:41:29 2003 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 2736B37B401 for ; Sun, 16 Mar 2003 13:41:27 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80DB843F3F for ; Sun, 16 Mar 2003 13:41:26 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.3/8.12.3) with ESMTP id h2GLfPJu005454; Sun, 16 Mar 2003 13:41:25 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.3/8.12.3/Submit) id h2GLfOcS005453; Sun, 16 Mar 2003 13:41:24 -0800 Date: Sun, 16 Mar 2003 13:41:24 -0800 From: Brooks Davis To: Andy Isaacson Cc: Brooks Davis , smp@freebsd.org Subject: Re: weird power usage on dual Xeon Message-ID: <20030316134124.B4374@Odin.AC.HMC.Edu> References: <20030314174113.A16583@Odin.AC.HMC.Edu> <20030315010321.A12293@hexapodia.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="8P1HSweYDcXXzwPJ" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030315010321.A12293@hexapodia.org>; from adi@hexapodia.org on Sat, Mar 15, 2003 at 01:03:21AM -0600 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --8P1HSweYDcXXzwPJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 15, 2003 at 01:03:21AM -0600, Andy Isaacson wrote: >=20 > Do you get a different answer if you run only two copies of SETI? I > can't imagine that their FFT routine takes kindly to having to share L1 > cache, perhaps it's spending all its time waiting for the L2... and do > you actually process more work units per hour with 4 SETI processes > running on HT as opposed to 2 SETIs without HT? I kinda doubt it, but > would welcome real information. Given the way our schedular handles HTT (it doesn't) you're just as likely to end up with two SETI procs on one CPU as with them on different CPUs. In any case, SETI actually gets fairly significantly better results when you run four with HTT enabled then when you run two without. With two I'm seeing about 4hr per workunit or one every 2hrs, with four I'm seeing about 6hrs per workunit or one every 1.5hrs. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --8P1HSweYDcXXzwPJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+dO+DXY6L6fI4GtQRAsDsAJ94QfOL5w2oJIQPvAoKIMG+4ypeQACglU/3 AIoX+3v+oYSvlsB6w03QOXE= =nKy9 -----END PGP SIGNATURE----- --8P1HSweYDcXXzwPJ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Mon Mar 17 1:15:13 2003 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 1AA6237B401; Mon, 17 Mar 2003 01:15:12 -0800 (PST) Received: from c-24-130-253-104.we.client2.attbi.com (c-24-130-253-104.we.client2.attbi.com [24.130.253.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EEC943FBD; Mon, 17 Mar 2003 01:15:11 -0800 (PST) (envelope-from obrien@c-24-130-253-104.we.client2.attbi.com) Received: from localhost (localhost [127.0.0.1]) by c-24-130-253-104.we.client2.attbi.com (8.11.1/8.11.1) with ESMTP id h2H9EXl00756; Mon, 17 Mar 2003 01:14:33 -0800 (PST) (envelope-from obrien@c-24-130-253-104.we.client2.attbi.com) Message-Id: <200303170914.h2H9EXl00756@c-24-130-253-104.we.client2.attbi.com> X-Mailer: exmh version 2.2 06/23/2000 with version: MH 6.8.4 #1[UCI] To: John Baldwin Cc: freebsd-smp@freebsd.org Subject: Re: Question about number of CPUs In-reply-to: Your message of "Thu, 13 Mar 2003 11:17:49 EST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 17 Mar 2003 01:14:33 -0800 From: "Mike O'Brien" Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org A reminder: I'm running RELENG_4 on an Iwill DP533 motherboard with dual Xeons. I'm using this board because it's the only board I've found that supports both dual Xeon processors and an AGP slot. When we last left our hero, he was struggling with the fact that 'mptable' reports, and the SMP kernel activates, APIC IDs 0 and 1. This seems screwball; it should be reporting 0 and 2. Nevertheless, Windows XP, which must be using the ACPI table as opposed to the MP table, correctly finds four processors. John Baldwin said: > Humm, it does seem that your BIOS is broken and is reporting the two cores > on CPU 0 in the mptable. :-/ Certainly something is broken. Either it's doing that, or it's assigning APIC IDs 0 and 2 to the first physical CPU, and APIC IDs 1 and 3 to the second physical CPU. Whichever, the spec is being violated. The board is running the most current BIOS available from Iwill. This message is to report that I girded my loins and committed violent upon i386/mp_machdep.c. I short-circuited the sanity check on the APIC ID numbers, and using my a priori knowledge of the results of 'acpidump', I hotwired the cpu activation code in the second pass to activate the logical CPUS at the proper APIC IDs. To my eternal shame, this seems to have worked. Four processors are now activated and the resulting kernel seems stable. I'm not posting this code because no one not running this particular BIOS revision on this particular board should come anywhere near it. I will cheerfully burn this code at midnight at a crossroads and drive a stake through the ashes when the -STABLE kernel is updated to activate processors based on the ACPI table. Thanks for the guidance, folks. I couldn't have done it without you. Mike O'Brien To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Mon Mar 17 2:21:12 2003 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 1817837B401 for ; Mon, 17 Mar 2003 02:21:12 -0800 (PST) Received: from ns1.nt-hosting.ru (ns1.nt-hosting.ru [217.106.234.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4575943F85 for ; Mon, 17 Mar 2003 02:21:10 -0800 (PST) (envelope-from artur@nt-hosting.ru) Received: from webartur (unverified [192.168.1.19]) by ns1.nt-hosting.ru (Vircom SMTPRS 4.6.189) with SMTP id for ; Mon, 17 Mar 2003 13:25:26 +0300 Message-ID: <006701c2ec6e$ed4f4c70$6901010a@labs.cybiko.com> From: "Artur Enaliev" To: Subject: SMP on SE7500WV2 boards Date: Mon, 17 Mar 2003 13:20:57 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi all, Has anybody installed FreeBSD 5.0 on Intel servers with SE7500WV2 motherboard? I have some trouble, SMP kernel faild to load and P-IV Xeon CPU is detected as P-IV CPU, not Xeon. I have tried to install #4.7 SMP kernel, it's loaded well, but CPU is also detected P-IV CPU, not Xeon... is there any way to resolve this? Sincerely, Artur To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Mon Mar 17 5:26:13 2003 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 375FA37B401; Mon, 17 Mar 2003 05:26:11 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F1E343F3F; Mon, 17 Mar 2003 05:26:08 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0043.cvx22-bradley.dialup.earthlink.net ([209.179.198.43] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18uucw-0003qB-00; Mon, 17 Mar 2003 05:26:07 -0800 Message-ID: <3E75CC2F.90E35F87@mindspring.com> Date: Mon, 17 Mar 2003 05:22:55 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Mike O'Brien Cc: John Baldwin , freebsd-smp@freebsd.org Subject: Re: Question about number of CPUs References: <200303170914.h2H9EXl00756@c-24-130-253-104.we.client2.attbi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a440995c702937f7df466bfcae8eee5bd1a2d4e88014a4647c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Mike O'Brien wrote: > A reminder: I'm running RELENG_4 on an Iwill DP533 motherboard > with dual Xeons. I'm using this board because it's the only board I've > found that supports both dual Xeon processors and an AGP slot. > > When we last left our hero, he was struggling with the fact that > 'mptable' reports, and the SMP kernel activates, APIC IDs 0 and 1. This > seems screwball; it should be reporting 0 and 2. Nevertheless, Windows XP, > which must be using the ACPI table as opposed to the MP table, correctly > finds four processors. The table doesn't really matter. What matters is the BIOS assignments into the CPUID registers, and which CPU the BIOS considered the "BP", and which CPU(s) the BIOS considers "AP". I believe it should be fairly easy to get your hardware working get your hardware working, given this information. The problem is that FreeBSD trusts the BIOS MP Table too much. I don't think this problem will be solved, as a general case, by shifting the trust from the BIOS MP Table to the ACPI MP Table; it will most likely just switch around who is "broken" and who is "fixed". 8-). No matter who has the "correct" information, or if everyone has the "incorrect" information, or if it's a mixed bag of odds and ends, and some people end up with an "odd" and others end up with an "end" (appologies to George Carlin 8-))... I think that the "correct" thing to do is to use a broadcast IPI to start all the available CPUs. This is because no matter what the case, if it works for _someone_ at all, then the CPU's all have APIC ID's correctly assigned into their APICID registers by the BIOS. Since you can depend on just that, and to hell with the APICID assignments in the MP Table, why not do that, instead? > Certainly something is broken. Either it's doing that, or it's > assigning APIC IDs 0 and 2 to the first physical CPU, and APIC IDs 1 and > 3 to the second physical CPU. Whichever, the spec is being violated. > The board is running the most current BIOS available from Iwill. I think this is more likely... and I don't think it violates the spec. If they wanted, they could pick random non-colliding numbers from 0..31, and I don't think they would be in technical violation of the specification (include the IO APIC(s) in there, though: you have to avoid collisions). Heck... they may have put the IO APIC on APICID 1, and assigned the SMT cores later (i.e. Real CPU #1, I/O APIC, Real CPU #2, SMT Core #1, SMT Core #2). It would even make sense, from the standpoint of doing APIC I/O on a single processor machine. > This message is to report that I girded my loins and committed > violent upon i386/mp_machdep.c. I short-circuited the sanity check > on the APIC ID numbers, and using my a priori knowledge of the results > of 'acpidump', I hotwired the cpu activation code in the second pass > to activate the logical CPUS at the proper APIC IDs. This argues that the boradcast IPI is the way to go. 8-). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Mon Mar 17 7: 5: 4 2003 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 31E7E37B401; Mon, 17 Mar 2003 07:04:57 -0800 (PST) Received: from mailgw.cscoms.com (mailgw.cscoms.com [202.183.255.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id AABB643F85; Mon, 17 Mar 2003 07:04:52 -0800 (PST) (envelope-from job2546@thaimail.com) Received: from cscoms.com (mail.cscoms.com [202.183.255.23]) by mailgw.cscoms.com (8.12.8/8.12.3) with ESMTP id h2HF2Iil061893; Mon, 17 Mar 2003 22:02:19 +0700 (ICT) Received: from ME (dial-144.ras-21.bkk.c.cscoms.com [203.170.145.144]) by cscoms.com (8.12.8/8.12.3) with SMTP id h2HEpswo024883; Mon, 17 Mar 2003 21:51:55 +0700 (GMT) Date: Mon, 17 Mar 2003 21:51:54 +0700 (GMT) Message-Id: <200303171451.h2HEpswo024883@cscoms.com> From: job2546@thaimail.com Subject: "ถ้าคุณยังทำสิ่งที่คุณทำอยู่วันนี้ พรุ่งนี้ก็จะเหมือนวันนี้ X-Priority: 1 (Highest) Reply-To: job2546@thaimail.com X-Mailer: Microsoft Outlook Express 5.00.2615.200 MIME-Version: 1.0 Content-type: multipart/mixed; boundary="#MYBOUNDARY#" X-Virus-Scanned: by amavisd-milter (http://amavis.org/) To: undisclosed-recipients: ; Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --#MYBOUNDARY# Content-Type: text/plain; charset=ansi Content-Transfer-Encoding: 8bit "หากคุณล้มเหลวที่จะวางแผน ย่อมแปลว่าคุณวางแผนที่จะล้มเหลว" จิม โรห์น นักปรัชญาอันดับ 1 ของโลก เช่น คุณคิดว่าในชีวิตนี้เราคงไม่มีทางรวย คุณก็ไจะไม่มีทางรวยเลย หรือ "คุณคิดว่าสักวันถึงฉันต้องรวยแน่ๆ" จิม โรห์น บอกว่า "ถ้าคุณยังทำสิ่งที่คุณทำอยู่ทุกวันนี้ อีก 3 ปีข้างหน้าลองคิดดูว่า คุณจะมีโอกาสรวยได้หรือไม่" "ถ้าคำตอบคือ ใช่ คุณกำลังจะรวย" ก็ยินดีกับคุณด้วยครับคุณกำลังจะรวยแล้ว "แต่ถ้าคำตอบคือ ไม่ คุณไม่สามารถรวยได้" คุณต้องเปลี่ยนอะไรสักอย่างในชีวิตคุณแล้ว จิม โรห์น บอกอีกว่า "ถ้าคุณยังทำสิ่งที่คุณทำอยู่วันนี้ พรุ่งนี้ก็จะเหมือนวันนี้ ไปเรื่อยๆไม่มีที่สิ้นสุด" หมายความว่า -ถ้าวันนี้คุณยังต้องวิ่งหาเงิน จ่ายหนี้ต่างๆ -ถ้าวันนี้คุณยังถูกเจ้านายกดขี่ ใช้งานอย่างหนัก -ถ้าวันนี้คุณยังหาทางออกไม่ได้ ลองเปิดโอกาสให้ตัวเองดู เปิดใจของคุณให้กว้างแล้วเดินตามเรามาหรือปล่อยให้โอกาสนี้หลุดลอยไป ============================================================ คุณสามารถเข้าไปดูรายละเอียดเพิ่มเติมและกรอกข้อมูลเพื่อขอรับข้อมูลเบื้องต้นฟรี ! ได้ที่ http://www.geocities.com/thaigetrich/easywork ============================================================ ขออภัยหากข้อความนี้ถูกส่งไปยังคุณโดยบังเอิญ หากคุณไม่ต้องการรับข้อความนี้อีกกรุณา mail มาที่ www.ecommerce.web1000.com/unsub --#MYBOUNDARY#-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Mon Mar 17 7: 8:29 2003 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 B1B0937B404; Mon, 17 Mar 2003 07:08:27 -0800 (PST) Received: from mailgw.cscoms.com (mailgw.cscoms.com [202.183.255.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4512543FF5; Mon, 17 Mar 2003 07:08:16 -0800 (PST) (envelope-from job2546@thaimail.com) Received: from cscoms.com (mail.cscoms.com [202.183.255.23]) by mailgw.cscoms.com (8.12.8/8.12.3) with ESMTP id h2HF1xin061649; Mon, 17 Mar 2003 22:02:12 +0700 (ICT) Received: from ME (dial-144.ras-21.bkk.c.cscoms.com [203.170.145.144]) by cscoms.com (8.12.8/8.12.3) with SMTP id h2HEprwo024862; Mon, 17 Mar 2003 21:51:54 +0700 (GMT) Date: Mon, 17 Mar 2003 21:51:53 +0700 (GMT) Message-Id: <200303171451.h2HEprwo024862@cscoms.com> From: job2546@thaimail.com Subject: "ถ้าคุณยังทำสิ่งที่คุณทำอยู่วันนี้ พรุ่งนี้ก็จะเหมือนวันนี้ X-Priority: 1 (Highest) Reply-To: job2546@thaimail.com X-Mailer: Microsoft Outlook Express 5.00.2615.200 MIME-Version: 1.0 Content-type: multipart/mixed; boundary="#MYBOUNDARY#" X-Virus-Scanned: by amavisd-milter (http://amavis.org/) To: undisclosed-recipients: ; Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --#MYBOUNDARY# Content-Type: text/plain; charset=ansi Content-Transfer-Encoding: 8bit "หากคุณล้มเหลวที่จะวางแผน ย่อมแปลว่าคุณวางแผนที่จะล้มเหลว" จิม โรห์น นักปรัชญาอันดับ 1 ของโลก เช่น คุณคิดว่าในชีวิตนี้เราคงไม่มีทางรวย คุณก็ไจะไม่มีทางรวยเลย หรือ "คุณคิดว่าสักวันถึงฉันต้องรวยแน่ๆ" จิม โรห์น บอกว่า "ถ้าคุณยังทำสิ่งที่คุณทำอยู่ทุกวันนี้ อีก 3 ปีข้างหน้าลองคิดดูว่า คุณจะมีโอกาสรวยได้หรือไม่" "ถ้าคำตอบคือ ใช่ คุณกำลังจะรวย" ก็ยินดีกับคุณด้วยครับคุณกำลังจะรวยแล้ว "แต่ถ้าคำตอบคือ ไม่ คุณไม่สามารถรวยได้" คุณต้องเปลี่ยนอะไรสักอย่างในชีวิตคุณแล้ว จิม โรห์น บอกอีกว่า "ถ้าคุณยังทำสิ่งที่คุณทำอยู่วันนี้ พรุ่งนี้ก็จะเหมือนวันนี้ ไปเรื่อยๆไม่มีที่สิ้นสุด" หมายความว่า -ถ้าวันนี้คุณยังต้องวิ่งหาเงิน จ่ายหนี้ต่างๆ -ถ้าวันนี้คุณยังถูกเจ้านายกดขี่ ใช้งานอย่างหนัก -ถ้าวันนี้คุณยังหาทางออกไม่ได้ ลองเปิดโอกาสให้ตัวเองดู เปิดใจของคุณให้กว้างแล้วเดินตามเรามาหรือปล่อยให้โอกาสนี้หลุดลอยไป ============================================================ คุณสามารถเข้าไปดูรายละเอียดเพิ่มเติมและกรอกข้อมูลเพื่อขอรับข้อมูลเบื้องต้นฟรี ! ได้ที่ http://www.geocities.com/thaigetrich/easywork ============================================================ ขออภัยหากข้อความนี้ถูกส่งไปยังคุณโดยบังเอิญ หากคุณไม่ต้องการรับข้อความนี้อีกกรุณา mail มาที่ www.ecommerce.web1000.com/unsub --#MYBOUNDARY#-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Mon Mar 17 7: 9:21 2003 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 8F86637B401; Mon, 17 Mar 2003 07:09:14 -0800 (PST) Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BFF54402A; Mon, 17 Mar 2003 07:08:29 -0800 (PST) (envelope-from brandt@fokus.fraunhofer.de) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.fraunhofer.de (8.11.6/8.11.6) with ESMTP id h2HF8LM19631; Mon, 17 Mar 2003 16:08:24 +0100 (MET) Date: Mon, 17 Mar 2003 16:08:21 +0100 (CET) From: Harti Brandt To: Bruce Evans Cc: smp@FreeBSD.ORG, jeff@FreeBSD.ORG Subject: Re: malloc.9 locking section In-Reply-To: <20030315230514.A9013@gamplex.bde.org> Message-ID: <20030317152235.M52165@beagle.fokus.fraunhofer.de> References: <20030315123530.X45650@beagle.fokus.fraunhofer.de> <20030315230514.A9013@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, 15 Mar 2003, Bruce Evans wrote: BE>On Sat, 15 Mar 2003, Harti Brandt wrote: BE> BE>These functions (like most (should be all) functions that aren't in BE> or ) may NOT be called from fast BE>interrupt handlers. You may be confused by the bogus and broken check BE>of td_intr_nesting_level in malloc(). This is supposed to check that BE>normal interrupt handlers don't call malloc() with M_WAITOK, but has BE>rotted to only checking that fast interrupt handlers don't do this. BE>But fast interrupt handlers shouldn't even think of calling malloc(). Ok. BE>> +When called from threaded interrupts BE>> +.Ar flag BE>> +should contain BE> BE>s/should/must/ Ok. BE>> +.Pp BE>> +.Fn malloc , BE>> +.Fn realloc BE>> +and BE>> +.Fn reallocf BE>> +must not be called with BE>> +.Dv M_WAIT BE>> +while a mutex other than Giant is held. BE> BE>I think you mean M_WAITOK (M_WAIT is only for mbufs). It's confusing to BE>say "flag must contain M_NOWAIT" for ithreads and "must not be called BE>with M_WAITOK" while a mutex other than Giant is held. The requirements BE>are the same, and the conditions are almost the same too -- ithreads BE>might even be implemented using a mutex other than Giant to prevent BE>them being reentred, though in practice they use a different type of BE>locking. Why are these requirements the same? I may have an MPSAFE driver. In this case I don't have Giant in the interrupt routine. On the other hand there are supposed to be places in the kernel, which are not interrupts and where you don't have Giant, but may have another mutex. I would rather have a couple of 'don't do that' rules in this section of the man page, so someone without intimate knowledge of how things work behind the scene will understand it. As I see it there are six situations: 1. fast interrupts 2. interrupt threads 3. no mutexes 4. Giant 5. Giant + N other mutexes (N > 0) 6. N mutexes (N > 0) malloc and Co. can be called as: 1. never 2. M_NOWAIT 3. M_NOWAIT || M_WAIT 4. M_NOWAIT || M_WAIT 5. M_NOWAIT 6. M_NOWAIT Is this correct? BE>> +Giant may or may not be held when BE>> +.Fn malloc , BE>> +.Fn realloc , BE>> +.Fn reallocf BE>> +or BE>> +.Fn free BE>> +are called. BE> BE>This is redundant. Yes, except for free() that wasn't mentioned earlier. BE>(*) The man page doesn't seem to say that exactly one of {M_NOWAIT, BE>M_WAITOK}, must be set, perhaps because it has rotted and still BE>essentially says that M_WAITOK is 0. Changes like the above should BE>be merged into the rotted bits to fix them and avoid redundancy. Here BE>are some of the rotted bits: I added this. BE> BE>% Note that BE>% .Dv M_NOWAIT BE>% is defined to be 0, meaning that blocking operation is the default. BE> BE>Nope. Clearly no one reads man section 9 manpages. I read them, but I'm disappointed about their quality. Especially mbuf(9) is bad. I decided just to start with the easier one :-) I have removed the above sentence. BE>% Also note that BE>% .Dv M_NOWAIT BE>% is required when running in an interrupt context. BE> BE>Still correct. BE> BE>% .Pp BE>% Programmers should be careful not to confuse BE>% .Dv M_NOWAIT , BE>% the BE>% .Fn malloc BE>% flag, with BE>% .Dv M_DONTWAIT , BE>% an BE>% .Xr mbuf 9 BE>% allocation flag, which is not a valid argument to BE>% .Fn malloc . BE>% .It Dv M_WAITOK BE>% Indicates that it is Ok to wait for resources. It is unconveniently BE>% defined as 0 so care should be taken never to compare against this value BE>% directly or try to AND it as a flag. The default operation is to block BE>% until the memory allocation succeeds. BE> BE>Mostly rotted. Mostly removed. Attached is a new diff (to the original page). Do you know, whether the first paragraph of 'IMPLEMENTATION NOTES' still holds? Jeff? I suppose also, that the disagnostics are not very up to date. What purpose do they server? Perhaps we should simply believe them? harti Index: malloc.9 =================================================================== RCS file: /home/ncvs/src/share/man/man9/malloc.9,v retrieving revision 1.30 diff -u -r1.30 malloc.9 --- malloc.9 24 Feb 2003 05:53:27 -0000 1.30 +++ malloc.9 17 Mar 2003 15:06:14 -0000 @@ -147,44 +147,22 @@ to return .Dv NULL if the request cannot be immediately fulfilled due to resource shortage. -Otherwise, the current process may be put to sleep to wait for -resources to be released by other processes. -If this flag is set, -.Fn malloc -will return -.Dv NULL -rather than block. Note that .Dv M_NOWAIT -is defined to be 0, meaning that blocking operation is the default. -Also note that -.Dv M_NOWAIT is required when running in an interrupt context. -.Pp -Programmers should be careful not to confuse -.Dv M_NOWAIT , -the -.Fn malloc -flag, with -.Dv M_DONTWAIT , -an -.Xr mbuf 9 -allocation flag, which is not a valid argument to -.Fn malloc . .It Dv M_WAITOK -Indicates that it is Ok to wait for resources. It is unconveniently -defined as 0 so care should be taken never to compare against this value -directly or try to AND it as a flag. The default operation is to block -until the memory allocation succeeds. +Indicates that it is ok to wait for resources. +If the request cannot be immediately fulfilled the current process is put +to sleep to wait for resources to be released by other processes. The .Fn malloc , .Fn realloc , and .Fn reallocf -functions can only return +functions cannot return .Dv NULL if -.Dv M_NOWAIT +.Dv M_WAITOK is specified. .It Dv M_USE_RESERVE Indicates that the system can dig into its reserve in order to obtain the @@ -194,6 +172,12 @@ programming. .El .Pp +Exactly one of either +.Dv M_WAITOK +or +.Dv M_NOWAIT +must be specified. +.Pp The .Fa type argument is used to perform statistics on memory usage, and for @@ -244,11 +228,37 @@ While it should not be relied upon, this information may be useful for optimizing the efficiency of memory use. .Pp -Malloc flags documented above should -.Em NOT -be used with +Programmers should be careful not to confuse the malloc flags +.Dv M_NOWAIT +and +.Dv M_WAITOK +with the .Xr mbuf 9 -routines as it will cause undesired results. +flags +.Dv M_DONTWAIT +and +.Dv M_TRYWAIT . +.Sh LOCKING CONSIDERATIONS +.Fn malloc , +.Fn realloc +and +.Fn reallocf +may not be called from fast interrupts handlers. +When called from threaded interrupts +.Ar flag +must contain +.Dv M_NOWAIT . +.Pp +.Fn malloc , +.Fn realloc +and +.Fn reallocf +must not be called with +.Dv M_WAITOK +while a mutex other than Giant is held. +Giant may or may not be held when +.Fn free +is called. .Pp Any calls to .Fn malloc -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fraunhofer.de, harti@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Mon Mar 17 7: 9:56 2003 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 7179337B404; Mon, 17 Mar 2003 07:09:53 -0800 (PST) Received: from mailgw.cscoms.com (mailgw.cscoms.com [202.183.255.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BBF343FF2; Mon, 17 Mar 2003 07:08:48 -0800 (PST) (envelope-from job2546@thaimail.com) Received: from cscoms.com (mail.cscoms.com [202.183.255.23]) by mailgw.cscoms.com (8.12.8/8.12.3) with ESMTP id h2HF5Ail064146; Mon, 17 Mar 2003 22:05:10 +0700 (ICT) Received: from ME (dial-144.ras-21.bkk.c.cscoms.com [203.170.145.144]) by cscoms.com (8.12.8/8.12.3) with SMTP id h2HF2vwo000603; Mon, 17 Mar 2003 22:02:58 +0700 (GMT) Date: Mon, 17 Mar 2003 22:02:57 +0700 (GMT) Message-Id: <200303171502.h2HF2vwo000603@cscoms.com> From: job2546@thaimail.com Subject: "ถ้าคุณยังทำสิ่งที่คุณทำอยู่วันนี้ พรุ่งนี้ก็จะเหมือนวันนี้ X-Priority: 1 (Highest) Reply-To: job2546@thaimail.com X-Mailer: Microsoft Outlook Express 5.00.2615.200 MIME-Version: 1.0 Content-type: multipart/mixed; boundary="#MYBOUNDARY#" X-Virus-Scanned: by amavisd-milter (http://amavis.org/) To: undisclosed-recipients: ; Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --#MYBOUNDARY# Content-Type: text/plain; charset=ansi Content-Transfer-Encoding: 8bit "หากคุณล้มเหลวที่จะวางแผน ย่อมแปลว่าคุณวางแผนที่จะล้มเหลว" จิม โรห์น นักปรัชญาอันดับ 1 ของโลก เช่น คุณคิดว่าในชีวิตนี้เราคงไม่มีทางรวย คุณก็ไจะไม่มีทางรวยเลย หรือ "คุณคิดว่าสักวันถึงฉันต้องรวยแน่ๆ" จิม โรห์น บอกว่า "ถ้าคุณยังทำสิ่งที่คุณทำอยู่ทุกวันนี้ อีก 3 ปีข้างหน้าลองคิดดูว่า คุณจะมีโอกาสรวยได้หรือไม่" "ถ้าคำตอบคือ ใช่ คุณกำลังจะรวย" ก็ยินดีกับคุณด้วยครับคุณกำลังจะรวยแล้ว "แต่ถ้าคำตอบคือ ไม่ คุณไม่สามารถรวยได้" คุณต้องเปลี่ยนอะไรสักอย่างในชีวิตคุณแล้ว จิม โรห์น บอกอีกว่า "ถ้าคุณยังทำสิ่งที่คุณทำอยู่วันนี้ พรุ่งนี้ก็จะเหมือนวันนี้ ไปเรื่อยๆไม่มีที่สิ้นสุด" หมายความว่า -ถ้าวันนี้คุณยังต้องวิ่งหาเงิน จ่ายหนี้ต่างๆ -ถ้าวันนี้คุณยังถูกเจ้านายกดขี่ ใช้งานอย่างหนัก -ถ้าวันนี้คุณยังหาทางออกไม่ได้ ลองเปิดโอกาสให้ตัวเองดู เปิดใจของคุณให้กว้างแล้วเดินตามเรามาหรือปล่อยให้โอกาสนี้หลุดลอยไป ============================================================ คุณสามารถเข้าไปดูรายละเอียดเพิ่มเติมและกรอกข้อมูลเพื่อขอรับข้อมูลเบื้องต้นฟรี ! ได้ที่ http://www.geocities.com/thaigetrich/easywork ============================================================ ขออภัยหากข้อความนี้ถูกส่งไปยังคุณโดยบังเอิญ หากคุณไม่ต้องการรับข้อความนี้อีกกรุณา mail มาที่ www.ecommerce.web1000.com/unsub --#MYBOUNDARY#-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Mon Mar 17 8:38:54 2003 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 3DFED37B401 for ; Mon, 17 Mar 2003 08:38:53 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3102943FAF for ; Mon, 17 Mar 2003 08:38:50 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.3/8.12.3) with ESMTP id h2HGciJu025630; Mon, 17 Mar 2003 08:38:44 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.3/8.12.3/Submit) id h2HGcitn025629; Mon, 17 Mar 2003 08:38:44 -0800 Date: Mon, 17 Mar 2003 08:38:44 -0800 From: Brooks Davis To: Artur Enaliev Cc: freebsd-smp@FreeBSD.ORG Subject: Re: SMP on SE7500WV2 boards Message-ID: <20030317083844.B21173@Odin.AC.HMC.Edu> References: <006701c2ec6e$ed4f4c70$6901010a@labs.cybiko.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="oLBj+sq0vYjzfsbl" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <006701c2ec6e$ed4f4c70$6901010a@labs.cybiko.com>; from artur@nt-hosting.ru on Mon, Mar 17, 2003 at 01:20:57PM +0300 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --oLBj+sq0vYjzfsbl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 17, 2003 at 01:20:57PM +0300, Artur Enaliev wrote: > Has anybody installed FreeBSD 5.0 on Intel servers with SE7500WV2 > motherboard? I have some trouble, SMP kernel faild to load and P-IV Xeon = CPU > is detected as P-IV CPU, not Xeon. I have tried to install #4.7 SMP kerne= l, > it's loaded well, but CPU is also detected P-IV CPU, not Xeon... > is there any way to resolve this? CPU detection doesn't really have much to do with anything. It's mostly there to look pretty. On a very recent -current they do show up as Xeons: CPU: Intel(R) XEON(TM) CPU 2.20GHz (2193.54-MHz 686-class CPU) Origin =3D "GenuineIntel" Id =3D 0xf24 Stepping =3D 4 Features=3D0x3febfbff -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --oLBj+sq0vYjzfsbl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+dfoTXY6L6fI4GtQRAlzWAJ0TABbad7seNMd3hdNVoHlyTooKVQCg4/i8 n0fzEVHXRvEsZaI2xFcqV4o= =kfh3 -----END PGP SIGNATURE----- --oLBj+sq0vYjzfsbl-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Mon Mar 17 9:37: 2 2003 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 577D137B401 for ; Mon, 17 Mar 2003 09:37:01 -0800 (PST) Received: from ns1.nt-hosting.ru (ns1.nt-hosting.ru [217.106.234.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1152643F93 for ; Mon, 17 Mar 2003 09:37:00 -0800 (PST) (envelope-from artur@nt-hosting.ru) Received: from webartur (unverified [192.168.1.19]) by ns1.nt-hosting.ru (Vircom SMTPRS 4.6.189) with SMTP id ; Mon, 17 Mar 2003 20:41:16 +0300 Message-ID: <016e01c2ecab$cf6aa230$6901010a@labs.cybiko.com> From: "Artur Enaliev" To: "Brooks Davis" Cc: References: <006701c2ec6e$ed4f4c70$6901010a@labs.cybiko.com> <20030317083844.B21173@Odin.AC.HMC.Edu> Subject: Re: SMP on SE7500WV2 boards Date: Mon, 17 Mar 2003 20:36:49 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Thanks a lot .. I'm not sure i should install '-current' on the production server.. btw.. does it increase system performance when use SMP kernel on the system with single Intel P-4 Xeon CPU with hyperthreading? Artur. ----- Original Message ----- From: "Brooks Davis" To: "Artur Enaliev" Cc: Sent: Monday, March 17, 2003 7:38 PM Subject: Re: SMP on SE7500WV2 boards To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Mon Mar 17 9:56:37 2003 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 3BF2E37B401 for ; Mon, 17 Mar 2003 09:56:36 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CCFE43F85 for ; Mon, 17 Mar 2003 09:56:34 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.3/8.12.3) with ESMTP id h2HHuXJu000735; Mon, 17 Mar 2003 09:56:33 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.3/8.12.3/Submit) id h2HHuWIU000734; Mon, 17 Mar 2003 09:56:32 -0800 Date: Mon, 17 Mar 2003 09:56:32 -0800 From: Brooks Davis To: Artur Enaliev Cc: Brooks Davis , freebsd-smp@FreeBSD.ORG Subject: Re: SMP on SE7500WV2 boards Message-ID: <20030317095632.C21173@Odin.AC.HMC.Edu> References: <006701c2ec6e$ed4f4c70$6901010a@labs.cybiko.com> <20030317083844.B21173@Odin.AC.HMC.Edu> <016e01c2ecab$cf6aa230$6901010a@labs.cybiko.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="ALfTUftag+2gvp1h" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <016e01c2ecab$cf6aa230$6901010a@labs.cybiko.com>; from artur@nt-hosting.ru on Mon, Mar 17, 2003 at 08:36:49PM +0300 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --ALfTUftag+2gvp1h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 17, 2003 at 08:36:49PM +0300, Artur Enaliev wrote: > Thanks a lot .. I'm not sure i should install '-current' on the production > server.. > btw.. does it increase system performance when use SMP kernel on the syst= em > with single Intel P-4 Xeon CPU with hyperthreading? I haven't tried it, but I suspect the answer is "it depends". The logical CPUs share resources (particularly cache) so they contend with each other which can result in worse performance. On the other hand, one logical CPU can do work while the other is stalled so you may see an improvement in some applictions. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --ALfTUftag+2gvp1h Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+dgxPXY6L6fI4GtQRAmcCAKDQk5wPTv4e7BExzIR+F8dMaGpV0ACgis36 c+TFPyUKiX3MHVa2PCokw2U= =YLp4 -----END PGP SIGNATURE----- --ALfTUftag+2gvp1h-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Mon Mar 17 11:43:54 2003 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 9D80B37B404 for ; Mon, 17 Mar 2003 11:43:53 -0800 (PST) Received: from mail.speakeasy.net (mail17.speakeasy.net [216.254.0.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 008E143FA3 for ; Mon, 17 Mar 2003 11:43:53 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 10018 invoked from network); 17 Mar 2003 19:43:59 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail17.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 17 Mar 2003 19:43:59 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.8/8.12.8) with ESMTP id h2HJhnOv068947; Mon, 17 Mar 2003 14:43:50 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030316001348.T36141-100000@speedy.insekure.com> Date: Mon, 17 Mar 2003 14:44:09 -0500 (EST) From: John Baldwin To: James Schmidt Subject: RE: SE7500CW2 - Kicking a dead horse. Cc: freebsd-smp@freebsd.org Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 16-Mar-2003 James Schmidt wrote: > > I hate to beat a dead horse concerning this issue, but was anything ever > resolved with SMP problems with FreeBSD and the Intel SE7500CW2 running > Dual P4-Xeons ? I don't have the time to read every message I get from > the FreeBSD related mail lists but a cursory search for related topics > showed up nothing. Many thanks in advance. Please try revision 1.19 of sys/i386/include/apic.h on current, or you can backport just that change to the same file on -stable. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Mon Mar 17 16:37:33 2003 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 3AB0537B405; Mon, 17 Mar 2003 16:37:32 -0800 (PST) Received: from mail.interchange.ca (ns.interchange.ca [216.126.79.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E3E843F3F; Mon, 17 Mar 2003 16:37:31 -0800 (PST) (envelope-from michael@fastmail.ca) Received: by mail.interchange.ca (Fastmailer, from userid 555) id 20D18862CB6; Mon, 17 Mar 2003 19:29:51 -0500 (EST) Received: from 24.114.6.105 by www.fastmail.ca with HTTP; Tue, 18 Mar 2003 00:29:51 +0000 (UTC) MIME-Version: 1.0 Message-Id: <3E76687F.00003D.35305@ns.interchange.ca> Content-Type: Multipart/Mixed; boundary="------------Boundary-00=_RD5XSPG00M3NTT4D7TH0" To: jhb@FreeBSD.org Subject: RE: SE7500CW2 - Kicking a dead horse. Cc: freebsd-smp@freebsd.org, james@JamesSchmidt.Com Date: Mon, 17 Mar 2003 19:29:51 -0500 (EST) From: "Michael Richards" X-Fastmail-IP: [24.114.6.105] Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --------------Boundary-00=_RD5XSPG00M3NTT4D7TH0 Content-Type: Text/Plain Content-Transfer-Encoding: 7bit > Please try revision 1.19 of sys/i386/include/apic.h on current, or > you can backport just that change to the same file on -stable. I just tried this out on the machine I was trying to get working and I can confirm that it does indeed work. Attached is a patch for the version 1.14.2.1 of apic.h that comes with 4.7. Just sticking the file in does not work because of some other defines. What will it take to get this patch into 4.7/5.0? -Michael *** apic.h Mon Mar 17 16:26:45 2003 --- apic.h.old Mon Mar 17 16:27:35 2003 *************** *** 310,316 **** /* fields in ICR_HIGH */ ! #define APIC_ID_MASK 0xff000000 /* fields in LVT1/2 */ --- 310,316 ---- /* fields in ICR_HIGH */ ! #define APIC_ID_MASK 0x0f000000 /* fields in LVT1/2 */ _________________________________________________________________ http://fastmail.ca/ - Fast Secure Web Email for Canadians --------------Boundary-00=_RD5XSPG00M3NTT4D7TH0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Tue Mar 18 6:51:58 2003 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 BAC5937B401 for ; Tue, 18 Mar 2003 06:51:57 -0800 (PST) Received: from magellan.palisadesys.com (magellan.palisadesys.com [192.188.162.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04C0C43F75 for ; Tue, 18 Mar 2003 06:51:57 -0800 (PST) (envelope-from ghelmer@palisadesys.com) Received: from mira (mira.palisadesys.com [192.188.162.116]) (authenticated bits=0) by magellan.palisadesys.com (8.12.8/8.12.8) with ESMTP id h2IEpu9S055740 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Tue, 18 Mar 2003 08:51:56 -0600 (CST) (envelope-from ghelmer@palisadesys.com) From: "Guy Helmer" To: Subject: Userland atomic adds? Date: Tue, 18 Mar 2003 08:51:55 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Simple question: are atomic adds / subtracts available in userland? TIA, Guy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Tue Mar 18 9: 2:55 2003 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 D4E9837B401 for ; Tue, 18 Mar 2003 09:02:54 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 100B743F3F for ; Tue, 18 Mar 2003 09:02:54 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.7/8.12.7) id h2IH2rHT014801; Tue, 18 Mar 2003 11:02:53 -0600 (CST) (envelope-from dan) Date: Tue, 18 Mar 2003 11:02:53 -0600 From: Dan Nelson To: Guy Helmer Cc: smp@FreeBSD.ORG Subject: Re: Userland atomic adds? Message-ID: <20030318170253.GC2054@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.3i Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In the last episode (Mar 18), Guy Helmer said: > Simple question: are atomic adds / subtracts available in userland? Try the functions in -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Tue Mar 18 10:15:11 2003 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 9BB3537B404; Tue, 18 Mar 2003 10:15:09 -0800 (PST) Received: from paja.kn.vutbr.cz (paja.kn.vutbr.cz [147.229.191.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BBC343F93; Tue, 18 Mar 2003 10:15:07 -0800 (PST) (envelope-from musil@kn.vutbr.cz) Received: from kn.vutbr.cz (p2-204a.kn.vutbr.cz [147.229.204.30]) by paja.kn.vutbr.cz (8.11.6/8.11.6) with ESMTP id h2IIF4R22485; Tue, 18 Mar 2003 19:15:05 +0100 (CET) (envelope-from musil@kn.vutbr.cz) Message-ID: <3E776228.5080601@kn.vutbr.cz> Date: Tue, 18 Mar 2003 19:15:04 +0100 From: Vaclav Musil User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 X-Accept-Language: cs, en MIME-Version: 1.0 To: John Baldwin Cc: freebsd-smp@FreeBSD.ORG Subject: Re: SE7500CW2 - Kicking a dead horse. References: <3E76687F.00003D.35305@ns.interchange.ca> X-Enigmail-Version: 0.63.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org yes, it works on 4.7! thank you very very much John! V. Michael Richards wrote: >>Please try revision 1.19 of sys/i386/include/apic.h on current, or >>you can backport just that change to the same file on -stable. > > > I just tried this out on the machine I was trying to get working and > I can confirm that it does indeed work. Attached is a patch for the > version 1.14.2.1 of apic.h that comes with 4.7. Just sticking the > file in does not work because of some other defines. > > What will it take to get this patch into 4.7/5.0? > > -Michael > > *** apic.h Mon Mar 17 16:26:45 2003 > --- apic.h.old Mon Mar 17 16:27:35 2003 > *************** > *** 310,316 **** > > > /* fields in ICR_HIGH */ > ! #define APIC_ID_MASK 0xff000000 > > > /* fields in LVT1/2 */ > --- 310,316 ---- > > > /* fields in ICR_HIGH */ > ! #define APIC_ID_MASK 0x0f000000 > > > /* fields in LVT1/2 */ > _________________________________________________________________ > http://fastmail.ca/ - Fast Secure Web Email for Canadians To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Tue Mar 18 10:21:28 2003 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 521F137B407 for ; Tue, 18 Mar 2003 10:21:26 -0800 (PST) Received: from mail.speakeasy.net (mail11.speakeasy.net [216.254.0.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5A3B43F85 for ; Tue, 18 Mar 2003 10:21:24 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 22770 invoked from network); 18 Mar 2003 18:21:29 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail11.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 18 Mar 2003 18:21:29 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.8/8.12.8) with ESMTP id h2IILMOv072169; Tue, 18 Mar 2003 13:21:22 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3E76687F.00003D.35305@ns.interchange.ca> Date: Tue, 18 Mar 2003 13:21:42 -0500 (EST) From: John Baldwin To: Michael Richards Subject: RE: SE7500CW2 - Kicking a dead horse. Cc: james@JamesSchmidt.Com, freebsd-smp@freebsd.org Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 18-Mar-2003 Michael Richards wrote: >> Please try revision 1.19 of sys/i386/include/apic.h on current, or >> you can backport just that change to the same file on -stable. > > I just tried this out on the machine I was trying to get working and > I can confirm that it does indeed work. Attached is a patch for the > version 1.14.2.1 of apic.h that comes with 4.7. Just sticking the > file in does not work because of some other defines. > > What will it take to get this patch into 4.7/5.0? It is already in -current. Once it gets wider testing I will merge it to 4.x. I intend to have it merged in time for 4.8 release. > -Michael > > *** apic.h Mon Mar 17 16:26:45 2003 > --- apic.h.old Mon Mar 17 16:27:35 2003 > *************** > *** 310,316 **** > > > /* fields in ICR_HIGH */ > ! #define APIC_ID_MASK 0xff000000 > > > /* fields in LVT1/2 */ > --- 310,316 ---- > > > /* fields in ICR_HIGH */ > ! #define APIC_ID_MASK 0x0f000000 > > > /* fields in LVT1/2 */ > _________________________________________________________________ > http://fastmail.ca/ - Fast Secure Web Email for Canadians -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Tue Mar 18 12:40:27 2003 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 933AE37B404 for ; Tue, 18 Mar 2003 12:40:25 -0800 (PST) Received: from quartzo.cirp.usp.br (quartzo.cirp.usp.br [143.107.200.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A4DA43FAF for ; Tue, 18 Mar 2003 12:40:23 -0800 (PST) (envelope-from aftaha@cirp.usp.br) Received: from cirp.usp.br (arenito.cirp.usp.br [143.107.200.101]) by quartzo.cirp.usp.br (8.11.6/8.11.6) with ESMTP id h2IKogr07674 for ; Tue, 18 Mar 2003 17:50:43 -0300 Message-ID: <3E7784DB.F9B3617A@cirp.usp.br> Date: Tue, 18 Mar 2003 17:43:07 -0300 From: Ali Faiez Taha Reply-To: aftaha@cirp.usp.br X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en, pt-BR, pt, es-ES, fr, ar, ar, de-DE, ru, el MIME-Version: 1.0 To: freebsd-smp@freebsd.org Subject: it work on 4.8 RC Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Thanks to John, Michael Richards and to the all list !!! *** IT WORK ON FREEBSD 4.8 RC *** Motherboard : Intel SE7500CW2 BIOS upgraded to 1.23 Kernel compiled with : options SMP # Symmetric MultiProcessor Kernel options APIC_IO # Symmetric (APIC) I/O >That patch for apic.h will fix the problem in any case with an >SE7500CW2 motherboard. >>Please try revision 1.19 of sys/i386/include/apic.h on current, or >>you can backport just that change to the same file on -stable. > > > I just tried this out on the machine I was trying to get working and > I can confirm that it does indeed work. Attached is a patch for the > version 1.14.2.1 of apic.h that comes with 4.7. Just sticking the > file in does not work because of some other defines. > > What will it take to get this patch into 4.7/5.0? > > -Michael > > *** apic.h Mon Mar 17 16:26:45 2003 > --- apic.h.old Mon Mar 17 16:27:35 2003 > *************** > *** 310,316 **** > > > /* fields in ICR_HIGH */ > ! #define APIC_ID_MASK 0xff000000 > > > /* fields in LVT1/2 */ > --- 310,316 ---- > > > /* fields in ICR_HIGH */ > ! #define APIC_ID_MASK 0x0f000000 > > > /* fields in LVT1/2 */ -- ------------------------------------------------ MSc. Eng. Ali Faiez Taha / Analista de Sistemas CIRP - USP - Ribeirใo Preto - SP Fone:(16) 602-3622 Use Software Livre ! ษ livre ! ษ legal ! http://www.linorg.cirp.usp.br ------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Tue Mar 18 15: 1: 6 2003 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 645DB37B401; Tue, 18 Mar 2003 15:01:03 -0800 (PST) Received: from webmail.ksu.edu (webmail.ksu.edu [129.130.39.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B45343F3F; Tue, 18 Mar 2003 15:01:02 -0800 (PST) (envelope-from jrf4772@ksu.edu) X-WebMail-UserID: jrf4772 Date: Tue, 18 Mar 2003 17:00:45 -0600 From: jrf4772 To: freebsd-smp@freebsd.org Cc: jhb@FreeBSD.org, michael@fastmail.ca X-EXP32-SerialNo: 00002882 Subject: RE: SE7500CW2 - Kicking a dead horse. Message-ID: <3EAA0CBC@webmail.ksu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: WebMail (Hydra) SMTP v3.62 Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org It seems to be working great for me too, you guys are awesome. sysctl machdep.smp_cpus machdep.smp_cpus: 2 - dmesg snip - FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 0, version: 0x00050014, at 0xfee00000 cpu1 (AP): apic id: 6, version: 0x00050014, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x00178020, at 0xfec00000 io1 (APIC): apic id: 3, version: 0x00178020, at 0xfec80000 io2 (APIC): apic id: 4, version: 0x00178020, at 0xfec80400 I have a question however, shouldn't it detect four processors if hyperthreading is enabled? Thanks, Jonathan Feldkamp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Tue Mar 18 15:40:54 2003 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 0FFC537B401 for ; Tue, 18 Mar 2003 15:40:53 -0800 (PST) Received: from paja.kn.vutbr.cz (paja.kn.vutbr.cz [147.229.191.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id B04F443F93 for ; Tue, 18 Mar 2003 15:40:51 -0800 (PST) (envelope-from musil@kn.vutbr.cz) Received: from kn.vutbr.cz (p2-204a.kn.vutbr.cz [147.229.204.30]) by paja.kn.vutbr.cz (8.11.6/8.11.6) with ESMTP id h2INeXR11868; Wed, 19 Mar 2003 00:40:33 +0100 (CET) (envelope-from musil@kn.vutbr.cz) Message-ID: <3E77AE71.2010407@kn.vutbr.cz> Date: Wed, 19 Mar 2003 00:40:33 +0100 From: Vaclav Musil User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 X-Accept-Language: cs, en MIME-Version: 1.0 To: jrf4772 Cc: freebsd-smp@FreeBSD.ORG Subject: Re: SE7500CW2 - Kicking a dead horse. References: <3EAA0CBC@webmail.ksu.edu> X-Enigmail-Version: 0.63.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org try John's patch: http://people.freebsd.org/~jhb/patches/htt.patch or http://people.freebsd.org/~jhb/patches/htt_4x.patch V. jrf4772 wrote: > It seems to be working great for me too, you guys are awesome. > > sysctl machdep.smp_cpus > machdep.smp_cpus: 2 > > - dmesg snip - > FreeBSD/SMP: Multiprocessor motherboard > cpu0 (BSP): apic id: 0, version: 0x00050014, at 0xfee00000 > cpu1 (AP): apic id: 6, version: 0x00050014, at 0xfee00000 > io0 (APIC): apic id: 2, version: 0x00178020, at 0xfec00000 > io1 (APIC): apic id: 3, version: 0x00178020, at 0xfec80000 > io2 (APIC): apic id: 4, version: 0x00178020, at 0xfec80400 > > I have a question however, shouldn't it detect four processors if > hyperthreading is enabled? > > Thanks, > Jonathan Feldkamp > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-smp" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Tue Mar 18 15:48:33 2003 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 7069C37B401 for ; Tue, 18 Mar 2003 15:48:31 -0800 (PST) Received: from vorbis.noc.easynet.net (vorbis.noc.easynet.net [195.40.1.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD1D243F85 for ; Tue, 18 Mar 2003 15:48:30 -0800 (PST) (envelope-from chrisy@vorbis.noc.easynet.net) Received: from chrisy by vorbis.noc.easynet.net with local (Exim 4.10) id 18vQoX-000BSb-00; Tue, 18 Mar 2003 23:48:13 +0000 Date: Tue, 18 Mar 2003 23:48:13 +0000 From: Chris Luke To: Vaclav Musil Cc: jrf4772 , freebsd-smp@FreeBSD.ORG Subject: Re: SE7500CW2 - Kicking a dead horse. Message-ID: <20030318234813.GA44045@flix.net> Mail-Followup-To: Chris Luke , Vaclav Musil , jrf4772 , freebsd-smp@FreeBSD.ORG References: <3EAA0CBC@webmail.ksu.edu> <3E77AE71.2010407@kn.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E77AE71.2010407@kn.vutbr.cz> User-Agent: Mutt/1.4i Organization: The Flirble Internet Exchange X-URL: http://www.flix.net/ X-FTP: ftp://ftp.flirble.org/ Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Those are both in -STABLE as far as I can tell. That means you now need "options HTT" in your kernel config to build for HTT. Chris. Vaclav Musil wrote (on Mar 18): > try John's patch: > http://people.freebsd.org/~jhb/patches/htt.patch > or > http://people.freebsd.org/~jhb/patches/htt_4x.patch > > > V. > > jrf4772 wrote: > >It seems to be working great for me too, you guys are awesome. > > > >sysctl machdep.smp_cpus > >machdep.smp_cpus: 2 > > > >- dmesg snip - > >FreeBSD/SMP: Multiprocessor motherboard > > cpu0 (BSP): apic id: 0, version: 0x00050014, at 0xfee00000 > > cpu1 (AP): apic id: 6, version: 0x00050014, at 0xfee00000 > > io0 (APIC): apic id: 2, version: 0x00178020, at 0xfec00000 > > io1 (APIC): apic id: 3, version: 0x00178020, at 0xfec80000 > > io2 (APIC): apic id: 4, version: 0x00178020, at 0xfec80400 > > > >I have a question however, shouldn't it detect four processors if > >hyperthreading is enabled? > > > >Thanks, > >Jonathan Feldkamp > > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org > >with "unsubscribe freebsd-smp" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-smp" in the body of the message > -- == chrisy@flix.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Wed Mar 19 6:26:54 2003 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 202E637B404 for ; Wed, 19 Mar 2003 06:26:42 -0800 (PST) Received: from anubis.slipstreaminteractive.com (anubis.slipstreaminteractive.com [213.52.163.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3EC243FDF for ; Wed, 19 Mar 2003 06:26:39 -0800 (PST) (envelope-from andrewt@slipstreaminteractive.com) Received: from Elrond (biliskner.demon.co.uk [193.237.132.215]) by anubis.slipstreaminteractive.com (Postfix) with ESMTP id 13CC846F for ; Wed, 19 Mar 2003 14:27:18 +0000 (GMT) From: "Andrew Tulloch" To: Subject: Compaq/HP DL380G3 SMP and FreeBSD-STABLE Date: Wed, 19 Mar 2003 14:26:22 -0000 Message-ID: <001301c2ee23$847dd3e0$0100a8c0@Elrond> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0014_01C2EE23.847DD3E0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_0014_01C2EE23.847DD3E0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I've got a new compaq DL380G3 with dual 2.8Ghz xeons and 2GB of ram installed from a FreeBSD 4.8-RC1 cd and cvsup'd and make world to = -stable, which all worked fine. However as soon as I SMP support to the kernel = and reboot the machine dies. It boots and starts services, but after a short time of doing anything it dies, I tried doing a make buildkernel and it lasted about a minute before it couldn't seem to access the disk, = eventually the machine seems to lock altogether. The disk in question is a RAID5 = array of 3x36.4GB SCSI disks connected to a 5302-128 board. I've searched and found only one reference to FreeBSD and SMP on these machines and it mentioned having the OS Selection in the bios set to = Linux, which I did have. The only kernel messages I've seen at the time were: Mar 17 14:25:53 gandalf /kernel: bge0: watchdog timeout -- resetting Which is the interface currently in use. It almost seems like the = machine is just losing interrupts. Everything seems to work fine with a UP kernel, completed buildworlds without any issue. Has anyone got one of these and has it working? Thanks in advance, Andrew Please CC me in any responses as I am currently not subscribed. Dmesgs attached. Andrew Tulloch Systems Administrator Slipstream Interactive Ltd Email : andrewt@slipstreaminteractive.com http://www.itv-f1.com ------=_NextPart_000_0014_01C2EE23.847DD3E0 Content-Type: text/plain; name="dmesg-up.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="dmesg-up.txt" Jan 28 02:24:29 gandalf /kernel: Copyright (c) 1992-2003 The FreeBSD = Project. Jan 28 02:24:29 gandalf /kernel: Copyright (c) 1979, 1980, 1983, 1986, = 1988, 1989, 1991, 1992, 1993, 1994 Jan 28 02:24:29 gandalf /kernel: The Regents of the University of = California. All rights reserved. Jan 28 02:24:29 gandalf /kernel: FreeBSD 4.8-RC1 #0: Mon Mar 3 01:01:33 = GMT 2003 Jan 28 02:24:29 gandalf /kernel: = root@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/GENERIC Jan 28 02:24:29 gandalf /kernel: Timecounter "i8254" frequency 1193182 = Hz Jan 28 02:24:29 gandalf /kernel: CPU: Intel(R) Xeon(TM) CPU 2.80GHz = (2785.02-MHz 686-class CPU) Jan 28 02:24:29 gandalf /kernel: Origin =3D "GenuineIntel" Id =3D 0xf27 = Stepping =3D 7 Jan 28 02:24:29 gandalf /kernel: = Features=3D0xbfebfbff Jan 28 02:24:29 gandalf /kernel: Hyperthreading: 2 logical CPUs Jan 28 02:24:29 gandalf /kernel: real memory =3D 2147459072 (2097128K = bytes) Jan 28 02:24:29 gandalf /kernel: avail memory =3D 2086457344 (2037556K = bytes) Jan 28 02:24:29 gandalf /kernel: Preloaded elf kernel "kernel" at = 0xc051c000. Jan 28 02:24:29 gandalf /kernel: Pentium Pro MTRR support enabled Jan 28 02:24:29 gandalf /kernel: md0: Malloc disk Jan 28 02:24:29 gandalf /kernel: npx0: on motherboard Jan 28 02:24:29 gandalf /kernel: npx0: INT 16 interface Jan 28 02:24:29 gandalf /kernel: pcib0: on = motherboard Jan 28 02:24:29 gandalf /kernel: pci0: on pcib0 Jan 28 02:24:29 gandalf /kernel: pci0: at 3.0 Jan 28 02:24:29 gandalf /kernel: pci0: (vendor=3D0x0e11, = dev=3D0xb203) at 4.0 irq 3 Jan 28 02:24:29 gandalf /kernel: pci0: (vendor=3D0x0e11, = dev=3D0xb204) at 4.2 irq 5 Jan 28 02:24:29 gandalf /kernel: isab0: at device 15.0 on pci0 Jan 28 02:24:29 gandalf /kernel: isa0: on isab0 Jan 28 02:24:29 gandalf /kernel: atapci0: port = 0x2000-0x200f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device = 15.1 on pci0 Jan 28 02:24:29 gandalf /kernel: ata0: at 0x1f0 irq 14 on atapci0 Jan 28 02:24:29 gandalf /kernel: ata1: at 0x170 irq 15 on atapci0 Jan 28 02:24:29 gandalf /kernel: ohci0: = mem 0xf5ef0000-0xf5ef0fff irq 7 at device 15.2 on pci0 Jan 28 02:24:29 gandalf /kernel: usb0: OHCI version 1.0, legacy support Jan 28 02:24:29 gandalf /kernel: usb0: SMM does not respond, resetting Jan 28 02:24:29 gandalf /kernel: usb0: = on ohci0 Jan 28 02:24:29 gandalf /kernel: usb0: USB revision 1.0 Jan 28 02:24:29 gandalf /kernel: uhub0: (0x1166) OHCI root hub, class = 9/0, rev 1.00/1.00, addr 1 Jan 28 02:24:29 gandalf /kernel: uhub0: 4 ports with 4 removable, self = powered Jan 28 02:24:29 gandalf /kernel: pcib1: on = motherboard Jan 28 02:24:29 gandalf /kernel: pci1: on pcib1 Jan 28 02:24:29 gandalf /kernel: ciss0: port = 0x3000-0x30ff mem 0xf7af0000-0xf7af3fff,0xf7bc0000-0xf7bfffff irq 10 at = device 3.0 on pci1 Jan 28 02:24:29 gandalf /kernel: ciss0: using 256 of 1024 available = commands Jan 28 02:24:29 gandalf /kernel: ciss0: 0 logical drives configured Jan 28 02:24:29 gandalf /kernel: ciss0: firmware 1.92 Jan 28 02:24:29 gandalf /kernel: ciss0: 2 SCSI channels Jan 28 02:24:29 gandalf /kernel: ciss0: signature 'CISS' Jan 28 02:24:29 gandalf /kernel: ciss0: valence 1 Jan 28 02:24:29 gandalf /kernel: ciss0: supported I/O methods = 0xe Jan 28 02:24:29 gandalf /kernel: ciss0: active I/O method 0x3 Jan 28 02:24:29 gandalf /kernel: ciss0: 4G page base 0x00000000 Jan 28 02:24:29 gandalf /kernel: ciss0: interrupt coalesce delay = 1000us Jan 28 02:24:29 gandalf /kernel: ciss0: interrupt coalesce count 16 Jan 28 02:24:29 gandalf /kernel: ciss0: max outstanding commands 1024 Jan 28 02:24:29 gandalf /kernel: ciss0: bus types 0x2 Jan 28 02:24:29 gandalf /kernel: ciss0: server name '' Jan 28 02:24:29 gandalf /kernel: ciss0: heartbeat 0x30000032 Jan 28 02:24:29 gandalf /kernel: ciss0: 0 logical drive Jan 28 02:24:29 gandalf /kernel: pcib2: on = motherboard Jan 28 02:24:29 gandalf /kernel: pci2: on pcib2 Jan 28 02:24:29 gandalf /kernel: bge0: mem 0xf7cf0000-0xf7cfffff irq 11 at device = 1.0 on pci2 Jan 28 02:24:29 gandalf /kernel: bge0: Ethernet address: = 00:0b:cd:0e:f8:da Jan 28 02:24:29 gandalf /kernel: miibus0: on bge0 Jan 28 02:24:29 gandalf /kernel: brgphy0: on miibus0 Jan 28 02:24:29 gandalf /kernel: brgphy0: 10baseT, 10baseT-FDX, = 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto Jan 28 02:24:29 gandalf /kernel: bge1: mem 0xf7ce0000-0xf7ceffff irq 15 at device = 2.0 on pci2 Jan 28 02:24:29 gandalf /kernel: bge1: Ethernet address: = 00:0b:cd:0e:f6:9a Jan 28 02:24:29 gandalf /kernel: miibus1: on bge1 Jan 28 02:24:29 gandalf /kernel: brgphy1: on miibus1 Jan 28 02:24:29 gandalf /kernel: brgphy1: 10baseT, 10baseT-FDX, = 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto Jan 28 02:24:29 gandalf /kernel: pcib3: on = motherboard Jan 28 02:24:29 gandalf /kernel: pci3: on pcib3 Jan 28 02:24:29 gandalf /kernel: pcib4: on motherboard Jan 28 02:24:29 gandalf /kernel: pci4: on pcib4 Jan 28 02:24:29 gandalf /kernel: pcib6: on motherboard Jan 28 02:24:29 gandalf /kernel: pci6: on pcib6 Jan 28 02:24:29 gandalf /kernel: ciss1: port = 0x4000-0x40ff mem 0xf7e00000-0xf7efffff,0xf7fc0000-0xf7ffffff irq 10 at = device 2.0 on pci6 Jan 28 02:24:29 gandalf /kernel: ciss1: using 256 of 1024 available = commands Jan 28 02:24:29 gandalf /kernel: ciss1: 1 logical drive configured Jan 28 02:24:29 gandalf /kernel: ciss1: firmware 2.86 Jan 28 02:24:29 gandalf /kernel: ciss1: 2 SCSI channels Jan 28 02:24:29 gandalf /kernel: ciss1: signature 'CISS' Jan 28 02:24:29 gandalf /kernel: ciss1: valence 1 Jan 28 02:24:29 gandalf /kernel: ciss1: supported I/O methods = 0xe Jan 28 02:24:29 gandalf /kernel: ciss1: active I/O method 0x3 Jan 28 02:24:29 gandalf /kernel: ciss1: 4G page base 0x00000000 Jan 28 02:24:29 gandalf /kernel: ciss1: interrupt coalesce delay = 1000us Jan 28 02:24:29 gandalf /kernel: ciss1: interrupt coalesce count 0 Jan 28 02:24:29 gandalf /kernel: ciss1: max outstanding commands 1024 Jan 28 02:24:29 gandalf /kernel: ciss1: bus types 0x2 Jan 28 02:24:29 gandalf /kernel: ciss1: server name '' Jan 28 02:24:29 gandalf /kernel: ciss1: heartbeat 0xf0000025 Jan 28 02:24:29 gandalf /kernel: ciss1: 1 logical drive Jan 28 02:24:29 gandalf /kernel: ciss1: logical drive 1: RAID 5, 69120MB = online Jan 28 02:24:29 gandalf /kernel: pci6: (vendor=3D0x0e11, = dev=3D0xa0f7) at 30.0 irq 15 Jan 28 02:24:29 gandalf /kernel: pcib5: on motherboard Jan 28 02:24:29 gandalf /kernel: pci5: on pcib5 Jan 28 02:24:29 gandalf /kernel: pcib7: on motherboard Jan 28 02:24:29 gandalf /kernel: pci7: on pcib7 Jan 28 02:24:29 gandalf /kernel: eisa0: on motherboard Jan 28 02:24:29 gandalf /kernel: mainboard0: on = eisa0 slot 0 Jan 28 02:24:29 gandalf /kernel: orm0: