From owner-cvs-src@FreeBSD.ORG Mon Nov 8 18:18:16 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC98616A4E2 for ; Mon, 8 Nov 2004 18:18:14 +0000 (GMT) Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6086043D55 for ; Mon, 8 Nov 2004 18:18:12 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 29019 invoked from network); 8 Nov 2004 18:18:11 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 8 Nov 2004 18:18:11 -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 iA8II4Hs019426; Mon, 8 Nov 2004 13:18:07 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Pascal Hofstee Date: Mon, 8 Nov 2004 13:09:05 -0500 User-Agent: KMail/1.6.2 References: <200410300735.i9U7ZrL2031884@repoman.freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200411081309.05747.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: cvs-src@FreeBSD.org cc: Jeff Roberson cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern sched_ule.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 18:18:17 -0000 On Friday 05 November 2004 10:22 pm, Pascal Hofstee wrote: > On Sat, 30 Oct 2004 07:35:53 +0000 (UTC), Jeff Roberson > > wrote: > > jeff 2004-10-30 07:35:53 UTC > > > > FreeBSD src repository > > > > Modified files: > > sys/kern sched_ule.c > > Log: > > - In sched_prio() check to see if the kse is assigned to a runq as the > > check for TD_ON_RUNQ() no longer means the thread is really on a > > run- queue. I suspect this state should be re-evaluated as it must mean > > something else now. This fixes ULE+KSE+PREEMPTION on UP x86. > > Hi Jeff, > > I decided to take this commit as a good moment to give SCHED_ULE + > PREEMPTION a shot again in the hope of triggering potential bugs to > further improve SCHED_ULE. And i must say ... without > INVARIANTS/WITNESS ... SCED_ULE + PREEMPTION == SOLID ... No Panics > for well over 2 days during general desktop usage and compilation. > > I then decided to give it a real stress-test and decided to also > enable WITNESS, INVARIANTS and FULL_PREEMPTION. This combination > seemed just as stable at first ... untill i decided to shutdown > Firefox .. which caused a system panic with the famous "Negative nice > count" KASSERT from kern/sched_ule.c > > I did some additional testing and so far it seems that Every threaded > application seems to exhibit this panic upon exit. I don't have an > actual kerneldump at the moment ... but i should be able to generate > one and provide additional information and/or a backtrace if desired. > > To reproduce simply exit a multi-threaded application ... firefox, > ogg123 and apache-worker all caused the same panic. > > This is on a UP P2-400 MHz running 6.0-CURRENT as of November 3rd or 4th, I don't think multithreaded processes are ready for FULL_PREEMPTION yet on either scheduler, so I wouldn't use FULL_PREEMPTION for now. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org