From owner-freebsd-smp@FreeBSD.ORG Sun Nov 9 02:13:01 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 1E27416A4CE for ; Sun, 9 Nov 2003 02:13:01 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id B408E43FE9 for ; Sun, 9 Nov 2003 02:12:59 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id VAA00374 for ; Sun, 9 Nov 2003 21:12:57 +1100 Date: Sun, 9 Nov 2003 21:12:56 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: smp@freebsd.org Message-ID: <20031109204643.J2752@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: foot-shooting using wrong pcpu 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: Sun, 09 Nov 2003 10:13:01 -0000 Does anyone have any experience with the pcpu sometimes being for the wrong cpu on i386's? I have a local locking bug which seems to cause this. The usual symptoms are that curpmap is sometimes 0 in cpu_switch(), and cpu_switch() sometimes switches cpuN to run cpuM's idle thread for M != N (this sometimes appears to work for a few switches but eventually the stacks trash each other). Problems in cpu_switch() seem to be more symptoms than causes. I can't see how either the pcpu selector or the pcpu GDT entry could get trashed (aren't these almost constant after booting? All lgdt's are early, and %fs is always KPSEL in the kernel except in the TLB shootdown IPI with default (?) options). I mostly look at pcu data in SMPprvspace since %fs is hard to use and "show pcpu" doesn't show enough, and everything in SMPprvspace seems reasonable except curpmap is sometimes 0. Bruce From owner-freebsd-smp@FreeBSD.ORG Wed Nov 12 13:09:18 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 7D10E16A4CE for ; Wed, 12 Nov 2003 13:09:18 -0800 (PST) Received: from web80103.mail.yahoo.com (web80103.mail.yahoo.com [66.163.169.76]) by mx1.FreeBSD.org (Postfix) with SMTP id 9201443FAF for ; Wed, 12 Nov 2003 13:09:17 -0800 (PST) (envelope-from maffew@sbcglobal.net) Message-ID: <20031112210917.10741.qmail@web80103.mail.yahoo.com> Received: from [148.163.108.2] by web80103.mail.yahoo.com via HTTP; Wed, 12 Nov 2003 13:09:17 PST Date: Wed, 12 Nov 2003 13:09:17 -0800 (PST) From: matthew tillman To: freebsd-smp@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: device pcm kills SMP performance -CURRENT 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, 12 Nov 2003 21:09:18 -0000 Hello- I have an ACorp 6A815EPD motherboard, Intel i815 chipset, with a pair of P3 733s. My sound card, is a SoundBlaster Live Value. Whenever sound support is compiled in the Kernel, performance takes a huge hit, X runs about the same as on a P2 300 or so. But If I boot to a kernel that is configured exactly the same, without device pcm, the system is very responsive. Booting to a non-SMP kernel in 5.1-Release with or without sound support, the system was very fast. I did not try no sound support with SMP, as I thought the issue was only SMP performance in general. I then CVSuped to -CURRENT on Nov 8th, because at the time I didn't realise the issue was isolated to the sound system. However, I still have the same issue. I also tried swapping the card into a diffrent PCI slot, but that didn't help. Any ideas? Thanks, Matthew From owner-freebsd-smp@FreeBSD.ORG Fri Nov 14 10:38:11 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 0AF3716A4CE for ; Fri, 14 Nov 2003 10:38:11 -0800 (PST) Received: from swisseasy.net (zuerich132.swisseasy.net [80.74.132.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B72D43F85 for ; Fri, 14 Nov 2003 10:38:09 -0800 (PST) (envelope-from arie@gerszt.ch) Received: (qmail 5412 invoked by uid 2520); 14 Nov 2003 18:38:07 -0000 Received: from arie@gerszt.ch by atlas.swisseasy.net by uid 89 with qmail-scanner-1.16 (clamscan: 0.60. spamassassin: 2.55. Clear:. Processed in 0.431174 secs); 14 Nov 2003 18:38:07 -0000 Received: from unknown (HELO DELLARIE) (212.41.65.233) by zuerich132.swisseasy.net with SMTP; 14 Nov 2003 18:38:06 -0000 From: "Arie J. Gerszt" To: Date: Fri, 14 Nov 2003 19:38:48 +0100 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.1165 Importance: Normal Subject: dell 2450 smp kernel 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: Fri, 14 Nov 2003 18:38:11 -0000 hi, i am trying to compile a kernel for a dell 2450 smp box, but i am not sure which options i must include for the smp and raid. is anybody around here familiar with the dell 2450 and fbsd? any help would greatly be appreciated, thanks, arie