From owner-freebsd-ia64@FreeBSD.ORG Mon Nov 22 11:01:58 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8525416A4E3 for ; Mon, 22 Nov 2004 11:01:58 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64B8843D67 for ; Mon, 22 Nov 2004 11:01:58 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iAMB1wgr075936 for ; Mon, 22 Nov 2004 11:01:58 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iAMB1uVd075930 for freebsd-ia64@freebsd.org; Mon, 22 Nov 2004 11:01:56 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 22 Nov 2004 11:01:56 GMT Message-Id: <200411221101.iAMB1uVd075930@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-ia64@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2004 11:01:58 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/10/03] ia64/72268 ia64 unaligned stfe not handled 1 problem total. From owner-freebsd-ia64@FreeBSD.ORG Tue Nov 23 20:00:58 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F34A16A4D1 for ; Tue, 23 Nov 2004 20:00:58 +0000 (GMT) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA52043D6D for ; Tue, 23 Nov 2004 20:00:56 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 7344 invoked from network); 23 Nov 2004 20:00:56 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 23 Nov 2004 20:00:56 -0000 Received: from [10.50.41.235] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id iANK0msL037155; Tue, 23 Nov 2004 15:00:49 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: powerpc@FreeBSD.org, amd64@FreeBSD.org, ia64@FreeBSD.org Date: Tue, 23 Nov 2004 15:00:55 -0500 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200411231500.55841.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Robert Watson Subject: Patch to optimize "bare" critical sections X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2004 20:00:58 -0000 Basically, I have a patch to divorce the interrupt disable/deferring to only happen inside of spinlocks using a new spinlock_enter/exit() API (where a spinlock_enter/exit includes a critical section as well) but that plain critical sections won't have to do such a thing. I've tested it on i386, alpha, and sparc64 already, and it has also been tested on arm. I'm unable to get a cross-built powerpc kernel to link (linker dies with a signal 6), but the compile did finish. I have cross-compiled ia64 and amd64 successfully, but have not run tested due to ENOHARDWARE. So, I would appreciate it if a few folks could try the patch out on ppc, ia64, and amd64 to make sure it works ok. Thanks. http://www.FreeBSD.org/~jhb/spinlock.patch -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-ia64@FreeBSD.ORG Tue Nov 23 21:36:45 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D488116A4CE for ; Tue, 23 Nov 2004 21:36:45 +0000 (GMT) Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E64343D45 for ; Tue, 23 Nov 2004 21:36:45 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 15071 invoked from network); 23 Nov 2004 21:36:45 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 23 Nov 2004 21:36:44 -0000 Received: from [10.50.41.235] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id iANLaXfM037718; Tue, 23 Nov 2004 16:36:41 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: powerpc@FreeBSD.org, amd64@FreeBSD.org, ia64@FreeBSD.org, Robert Watson Date: Tue, 23 Nov 2004 16:31:00 -0500 User-Agent: KMail/1.6.2 References: <200411231500.55841.jhb@FreeBSD.org> In-Reply-To: <200411231500.55841.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200411231631.00945.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx Subject: Re: Patch to optimize "bare" critical sections X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2004 21:36:46 -0000 On Tuesday 23 November 2004 03:00 pm, John Baldwin wrote: > Basically, I have a patch to divorce the interrupt disable/deferring to > only happen inside of spinlocks using a new spinlock_enter/exit() API > (where a spinlock_enter/exit includes a critical section as well) but that > plain critical sections won't have to do such a thing. I've tested it on > i386, alpha, and sparc64 already, and it has also been tested on arm. I'm > unable to get a cross-built powerpc kernel to link (linker dies with a > signal 6), but the compile did finish. I have cross-compiled ia64 and > amd64 > successfully, but have not run tested due to ENOHARDWARE. So, I would > appreciate it if a few folks could try the patch out on ppc, ia64, and > amd64 to make sure it works ok. Thanks. > > http://www.FreeBSD.org/~jhb/spinlock.patch *cough* Ahem, http://www.FreeBSD.org/~jhb/patches/spinlock.patch Sorry about that. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-ia64@FreeBSD.ORG Wed Nov 24 03:26:22 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8502616A4CE; Wed, 24 Nov 2004 03:26:22 +0000 (GMT) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB06943D58; Wed, 24 Nov 2004 03:26:21 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from [192.168.4.250] (dhcp50.pn.xcllnt.net [192.168.4.250]) by ns1.xcllnt.net (8.13.1/8.13.1) with ESMTP id iAO3QLDX020560; Tue, 23 Nov 2004 19:26:21 -0800 (PST) (envelope-from marcel@xcllnt.net) In-Reply-To: <200411231631.00945.jhb@FreeBSD.org> References: <200411231500.55841.jhb@FreeBSD.org> <200411231631.00945.jhb@FreeBSD.org> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <9C77F94E-3DC8-11D9-A2B1-000D93C47836@xcllnt.net> Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Tue, 23 Nov 2004 19:26:21 -0800 To: John Baldwin X-Mailer: Apple Mail (2.619) cc: amd64@freebsd.org cc: powerpc@freebsd.org cc: ia64@freebsd.org Subject: Re: Patch to optimize "bare" critical sections X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Nov 2004 03:26:22 -0000 On Nov 23, 2004, at 1:31 PM, John Baldwin wrote: > On Tuesday 23 November 2004 03:00 pm, John Baldwin wrote: >> Basically, I have a patch to divorce the interrupt disable/deferring >> to >> only happen inside of spinlocks using a new spinlock_enter/exit() API >> (where a spinlock_enter/exit includes a critical section as well) but >> that >> plain critical sections won't have to do such a thing. I've tested >> it on >> i386, alpha, and sparc64 already, and it has also been tested on arm. >> I'm >> unable to get a cross-built powerpc kernel to link (linker dies with a >> signal 6), but the compile did finish. I have cross-compiled ia64 and >> amd64 >> successfully, but have not run tested due to ENOHARDWARE. So, I would >> appreciate it if a few folks could try the patch out on ppc, ia64, and >> amd64 to make sure it works ok. Thanks. >> >> http://www.FreeBSD.org/~jhb/spinlock.patch > > *cough* Ahem, http://www.FreeBSD.org/~jhb/patches/spinlock.patch > > Sorry about that. The patch doesn't apply cleanly. Can you create a patch against HEAD and not your lock branch? Rejects are: Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |--- //depot/projects/smpng/sys/kern/kern_mutex.c 2004/11/15 20:20:33 |+++ //depot/user/jhb/lock/kern/kern_mutex.c 2004/11/17 16:42:34 -------------------------- Patching file sys/kern/kern_mutex.c using Plan A... Hunk #1 failed at 602. Hunk #2 failed at 630. 2 out of 2 hunks failed--saving rejects to sys/kern/kern_mutex.c.rej Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |--- //depot/projects/smpng/sys/sys/mutex.h 2004/08/18 16:47:14 |+++ //depot/user/jhb/lock/sys/mutex.h 2004/11/04 23:48:43 -------------------------- Patching file sys/sys/mutex.h using Plan A... Hunk #1 succeeded at 164 (offset -3 lines). Hunk #2 failed at 176. Hunk #3 succeeded at 194 (offset -11 lines). Hunk #4 succeeded at 212 with fuzz 2 (offset -4 lines). Hunk #5 failed at 220. 2 out of 5 hunks failed--saving rejects to sys/sys/mutex.h.rej -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net From owner-freebsd-ia64@FreeBSD.ORG Wed Nov 24 15:41:21 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF16A16A51D for ; Wed, 24 Nov 2004 15:41:21 +0000 (GMT) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEC8043D2F for ; Wed, 24 Nov 2004 15:41:21 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 30716 invoked from network); 24 Nov 2004 15:41:20 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 24 Nov 2004 15:41:20 -0000 Received: from [10.50.41.235] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id iAOFf5WY043775; Wed, 24 Nov 2004 10:41:16 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Marcel Moolenaar Date: Wed, 24 Nov 2004 10:26:35 -0500 User-Agent: KMail/1.6.2 References: <200411231500.55841.jhb@FreeBSD.org> <200411231631.00945.jhb@FreeBSD.org> <9C77F94E-3DC8-11D9-A2B1-000D93C47836@xcllnt.net> In-Reply-To: <9C77F94E-3DC8-11D9-A2B1-000D93C47836@xcllnt.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200411241026.35486.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: amd64@FreeBSD.org cc: powerpc@FreeBSD.org cc: ia64@FreeBSD.org Subject: Re: Patch to optimize "bare" critical sections X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Nov 2004 15:41:22 -0000 On Tuesday 23 November 2004 10:26 pm, Marcel Moolenaar wrote: > On Nov 23, 2004, at 1:31 PM, John Baldwin wrote: > > On Tuesday 23 November 2004 03:00 pm, John Baldwin wrote: > >> Basically, I have a patch to divorce the interrupt disable/deferring > >> to > >> only happen inside of spinlocks using a new spinlock_enter/exit() API > >> (where a spinlock_enter/exit includes a critical section as well) but > >> that > >> plain critical sections won't have to do such a thing. I've tested > >> it on > >> i386, alpha, and sparc64 already, and it has also been tested on arm. > >> I'm > >> unable to get a cross-built powerpc kernel to link (linker dies with a > >> signal 6), but the compile did finish. I have cross-compiled ia64 and > >> amd64 > >> successfully, but have not run tested due to ENOHARDWARE. So, I would > >> appreciate it if a few folks could try the patch out on ppc, ia64, and > >> amd64 to make sure it works ok. Thanks. > >> > >> http://www.FreeBSD.org/~jhb/spinlock.patch > > > > *cough* Ahem, http://www.FreeBSD.org/~jhb/patches/spinlock.patch > > > > Sorry about that. > > The patch doesn't apply cleanly. Can you create a patch against HEAD > and not your lock branch? Doh, the patch has been updated to be against HEAD now. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-ia64@FreeBSD.ORG Thu Nov 25 15:08:37 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3FAE16A4CE; Thu, 25 Nov 2004 15:08:37 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 282B443D31; Thu, 25 Nov 2004 15:08:37 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.13.1/8.13.1) with ESMTP id iAPF6jsg041741; Thu, 25 Nov 2004 10:06:45 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)iAPF6j30041738; Thu, 25 Nov 2004 15:06:45 GMT (envelope-from robert@fledge.watson.org) Date: Thu, 25 Nov 2004 15:06:45 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: John Baldwin In-Reply-To: <200411231631.00945.jhb@FreeBSD.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: amd64@FreeBSD.org cc: powerpc@FreeBSD.org cc: ia64@FreeBSD.org Subject: Re: Patch to optimize "bare" critical sections X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Nov 2004 15:08:38 -0000 On Tue, 23 Nov 2004, John Baldwin wrote: > On Tuesday 23 November 2004 03:00 pm, John Baldwin wrote: > > Basically, I have a patch to divorce the interrupt disable/deferring to > > only happen inside of spinlocks using a new spinlock_enter/exit() API > > (where a spinlock_enter/exit includes a critical section as well) but that > > plain critical sections won't have to do such a thing. I've tested it on > > i386, alpha, and sparc64 already, and it has also been tested on arm. I'm > > unable to get a cross-built powerpc kernel to link (linker dies with a > > signal 6), but the compile did finish. I have cross-compiled ia64 and > > amd64 > > successfully, but have not run tested due to ENOHARDWARE. So, I would > > appreciate it if a few folks could try the patch out on ppc, ia64, and > > amd64 to make sure it works ok. Thanks. > > > > http://www.FreeBSD.org/~jhb/spinlock.patch > > *cough* Ahem, http://www.FreeBSD.org/~jhb/patches/spinlock.patch FYI, I'm seeing a fairly solid wedge occuring under stress with the i386 patch in place on a dual Xeon test box in the Netperf cluster. I thought at first it was a property of the UMA optimizations I have that use the critical sections, but it also happens with just the critical section changes, so... :-) The reproduction mode I'm using is to run the syscall_timing tool on the box over a serial console repeatedly: http://www.watson.org/~robert/freebsd/syscall_timing.c In particular, I'm running 10,000 iterations of the socket create/free test. Under normal circumstances it looks like this: tiger-2# while (1) while? ./syscall_timing 10000 socket | grep per while? end 0.000006708 per/iteration 0.000006642 per/iteration 0.000006658 per/iteration 0.000006660 per/iteration ... ^C When I get the wedge it does this: tiger-2# while (1) while? ./syscall_timing 10000 socket | grep per while? end 0.000006735 per/iteration 0.000006772 per/iteration 0.000006721 per/iteration 0.000006744 per/iteration ... 0.000006716 per/iteration 0.000006710 per/iteration 0.000006745 per/ <-- hung It could well be associated with poor timing involving a clock or serial interrupt. I haven't made much headway at investigating it yet, and it looks like serial break is of no help, but will attempt to see what I can do this afternoon. I suspect without NMI on the box in question it will be dificult. I haven't yet tried with a UP kernel, however, only SMP. That said, with the critical section optimization in place and moving UMA to using critical sections rather than mutexes for the per-CPU cache on SMP, I see a small but heathy performance improvement in the socket create/destroy micro-benchmark: x netperf-socket-smp + percpu-socket-smp +--------------------------------------------------------------------------+ | + x | | ++ x xxx| |+ + ++++ + xxxxx| | |____A____| |AM|| +--------------------------------------------------------------------------+ N Min Max Median Avg Stddev x 10 6.64e-06 6.676e-06 6.666e-06 6.6601e-06 1.2359881e-08 + 10 6.078e-06 6.236e-06 6.172e-06 6.165e-06 4.0734915e-08 Difference at 95.0% confidence -4.951e-07 +/- 2.82825e-08 -7.43382% +/- 0.424655% (Student's t, pooled s = 3.01007e-08) Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research From owner-freebsd-ia64@FreeBSD.ORG Fri Nov 26 21:35:17 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C9E916A4CE; Fri, 26 Nov 2004 21:35:17 +0000 (GMT) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3530A43D49; Fri, 26 Nov 2004 21:35:17 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from [192.168.4.250] (dhcp50.pn.xcllnt.net [192.168.4.250]) by ns1.xcllnt.net (8.13.1/8.13.1) with ESMTP id iAQLZGnZ057650; Fri, 26 Nov 2004 13:35:16 -0800 (PST) (envelope-from marcel@xcllnt.net) In-Reply-To: <200411231631.00945.jhb@FreeBSD.org> References: <200411231500.55841.jhb@FreeBSD.org> <200411231631.00945.jhb@FreeBSD.org> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <0F35A925-3FF3-11D9-8DD8-000D93C47836@xcllnt.net> Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Fri, 26 Nov 2004 13:35:14 -0800 To: John Baldwin X-Mailer: Apple Mail (2.619) cc: amd64@freebsd.org cc: powerpc@freebsd.org cc: Robert Watson cc: ia64@freebsd.org Subject: Re: Patch to optimize "bare" critical sections X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Nov 2004 21:35:17 -0000 On Nov 23, 2004, at 1:31 PM, John Baldwin wrote: > On Tuesday 23 November 2004 03:00 pm, John Baldwin wrote: >> Basically, I have a patch to divorce the interrupt disable/deferring >> to >> only happen inside of spinlocks using a new spinlock_enter/exit() API >> (where a spinlock_enter/exit includes a critical section as well) but >> that >> plain critical sections won't have to do such a thing. I've tested >> it on >> i386, alpha, and sparc64 already, and it has also been tested on arm. >> I'm >> unable to get a cross-built powerpc kernel to link (linker dies with a >> signal 6), but the compile did finish. I have cross-compiled ia64 and >> amd64 >> successfully, but have not run tested due to ENOHARDWARE. So, I would >> appreciate it if a few folks could try the patch out on ppc, ia64, and >> amd64 to make sure it works ok. Thanks. > > *cough* Ahem, http://www.FreeBSD.org/~jhb/patches/spinlock.patch No problems on ia64. I haven't loaded the machine to see if I get the wedge Robert was talking about, but I'm not too worried about that at the moment. FYI, -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net