From owner-freebsd-current@FreeBSD.ORG Mon Jul 19 15:23:12 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 968B616A4CF for ; Mon, 19 Jul 2004 15:23:12 +0000 (GMT) Received: from mail3.speakeasy.net (mail3.speakeasy.net [216.254.0.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E60143D4C for ; Mon, 19 Jul 2004 15:23:12 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 29627 invoked from network); 19 Jul 2004 15:23:12 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 19 Jul 2004 15:23:11 -0000 Received: from 10.50.41.229 (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i6JFN6Cc012734; Mon, 19 Jul 2004 11:23:07 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-current@FreeBSD.org, noackjr@alumni.rice.edu User-Agent: KMail/1.6 References: <40F752A1.8020705@alumni.rice.edu> <40F76BF0.1000108@alumni.rice.edu> In-Reply-To: <40F76BF0.1000108@alumni.rice.edu> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406301118.33680.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Eric Anderson cc: Robert Watson Subject: 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: , Date: Mon, 19 Jul 2004 15:23:12 -0000 X-Original-Date: Wed, 30 Jun 2004 11:18:33 -0400 X-List-Received-Date: Mon, 19 Jul 2004 15:23:12 -0000 On Friday 16 July 2004 01:47 am, Jon Noack wrote: > On 07/15/04 22:59, Jon Noack wrote: > > On 07/15/04 22:49, Robert Watson wrote: > >> On Thu, 15 Jul 2004, Jon Noack wrote: > >>> Come to think of it, all of my hard lockups were when Firefox was > >>> running. I think (some of) the issues native preemption uncovered > >>> are related to threading. In any case, I commented out "#define > >>> PREEMPTION" in src/sys//include/param.h and rebuilt my kernel > >>> so it would stay up for more than 30 minutes. > >> > >> I've also drawn the same conclusion -- to trigger the hangs, I run MySQL > >> with a threaded benchmark. Otherwise, things seem fairly stable on my > >> test boxes. Could you try running with PREEMPTION and using libthr > >> instead of libkse and see if you get the same result? > > > > I'm rebuilding my kernel with PREEMPTION and will add the following > > "global" values to /etc/libmap.conf before I reboot: > > libpthread.so.1 libthr.so.1 > > libpthread.so libthr.so > > > > I'll let you know how things pan out -- shouldn't be too long. > > Worked great with Firefox until I started XMMS. Everything was fine > when I started playing an mp3, but it locked up hard when I switched to > another desktop (had a Firefox window on the desktop I was switching to; > it painted the Firefox widgets but hadn't repainted the webpage I was > viewing before the lockup). > > Looks like it's thread library independent too. Try this patch. It fixed all my lockups with xmms in KDE on Friday: --- //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