From owner-freebsd-current@FreeBSD.ORG Mon Jul 19 15:56:47 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0001916A4CE; Mon, 19 Jul 2004 15:56:46 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD34C43D5D; Mon, 19 Jul 2004 15:56:46 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i6JFu7wo052218; Mon, 19 Jul 2004 11:56:07 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i6JFu7Fe052215; Mon, 19 Jul 2004 11:56:07 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Mon, 19 Jul 2004 11:56:06 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: John Baldwin In-Reply-To: <200406301118.33680.jhb@FreeBSD.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@FreeBSD.org cc: Eric Anderson Subject: thread+preemption stability improvement (was: Re: ACPI degrading.. ?) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2004 15:56:47 -0000 On Wed, 30 Jun 2004, John Baldwin wrote: > Try this patch. It fixed all my lockups with xmms in KDE on Friday: This patch causes my SMP and UP tests to succeed with PREEMPTION enabled, whereas before they rapidly hung. On SMP I see a small (just under 1%) but consistent improvement in query throughput with MySQL, and on UP I see a small (just under 1%) but inconsistent decrease in query throughput with MySQL. The standard deviation on the UP case is almost the same size as the change, but in the SMP case it's 1/4-1/3 the size of the change, FWIW. Can't speak to the latency as the test I'm currently running isn't very latency sensitive, but was very sensitive to the stability issue. I think this patch is definitely worth committing ASAP :-). Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research > > --- //depot/projects/smpng/sys/i386/i386/intr_machdep.c 2004/07/02 20:28:06 > +++ //depot/user/jhb/preemption/i386/i386/intr_machdep.c 2004/07/16 20:14:26 > @@ -204,6 +204,8 @@ > } > isrc->is_pic->pic_eoi_source(isrc); > error = 0; > + /* XXX */ > + td->td_pflags &= ~TDP_OWEPREEMPT; > critical_exit(); > } else { > /* > > -- > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve" = http://www.FreeBSD.org >