From owner-freebsd-current@FreeBSD.ORG Fri Apr 11 15:30:28 2003 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 BF06237B401 for ; Fri, 11 Apr 2003 15:30:28 -0700 (PDT) Received: from mail.chesapeake.net (chesapeake.net [205.130.220.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDB4A43FAF for ; Fri, 11 Apr 2003 15:30:27 -0700 (PDT) (envelope-from jroberson@chesapeake.net) Received: from localhost (jroberson@localhost) by mail.chesapeake.net (8.11.6/8.11.6) with ESMTP id h3BMUQe18783; Fri, 11 Apr 2003 18:30:26 -0400 (EDT) (envelope-from jroberson@chesapeake.net) Date: Fri, 11 Apr 2003 18:30:26 -0400 (EDT) From: Jeff Roberson To: Steve Kargl In-Reply-To: <20030411222130.GB89467@troutmask.apl.washington.edu> Message-ID: <20030411182605.T37530-100000@mail.chesapeake.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org Subject: Re: ULE nice bugs are fixed. 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: Fri, 11 Apr 2003 22:30:29 -0000 On Fri, 11 Apr 2003, Steve Kargl wrote: > On Fri, Apr 11, 2003 at 05:55:42PM -0400, Jeff Roberson wrote: > > > > > On Fri, Apr 11, 2003 at 02:49:35PM -0400, Jeff Roberson wrote: > > > > On Fri, 11 Apr 2003, Steve Kargl wrote: > > > > > > I started to recompile the kernel and while sitting here decided > > > to load linux-mozilla. The system rebooted before linux-mozilla > > > displayed a window. I'm not sure this ULE related. > > > > > > Whoops. The system just panic after coming back up from > > > a linux-mozilla induce reboot. I've left the machine > > > at the db> prompt. > > > > > > > Is this with the change in my patch or without? Odd that I'm not seeing > > this. I cant remember if I asked for the output of 'call kseq_print(0)' > > but could you get that as well? > > > > It happens with a kernel without the change at line 180 > and it happens with a kernel with the change :-( > > db> call kseq_print(0) > load: 0 > load ITHD: 0 > load REALTIME: 0 > load TIMESHARE: 0 > load IDLE: 0 > nicemin: -4 > nice counts: > 0 = -1 > 4 = 1 > 0x8 > > > I am suspicious that background fsck is exasperating > the situation. I'm trying to build a 4BSD kernel to > see if it is ULE specific without much luck. > Ah, unusual. nicemin is -4 but there is no process with a -4 nice on the run queue. This is very suspicious. Notice the -1 count for 0. This makes me think that the nice of a process was set to 0 without going through the scheduler. I bet it will be quick to track down. Let me see if I can find it. I dont run background fsck here which is why I'm not seeing this. Oh, here it is. Line 303 and 647 of ffs_snapshot. Change the "td->td_ksegrp->kg_nice = x" to "sched_nice(td->td_ksegrp, x);" let me know if that fixes it (it will). Cheers, Jeff