Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jul 2004 15:23:12 -0000
From:      John Baldwin <jhb@FreeBSD.org>
To:        freebsd-current@FreeBSD.org, noackjr@alumni.rice.edu
Cc:        Robert Watson <rwatson@FreeBSD.org>
Subject:   Re: ACPI degrading.. ?
Message-ID:  <200406301118.33680.jhb@FreeBSD.org>
In-Reply-To: <40F76BF0.1000108@alumni.rice.edu>
References:  <Pine.NEB.3.96L.1040715234852.50858B-100000@fledge.watson.org> <40F752A1.8020705@alumni.rice.edu> <40F76BF0.1000108@alumni.rice.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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/<ARCH>/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 <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406301118.33680.jhb>