From owner-freebsd-arch Sat Jan 25 19: 6:52 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12E3037B401; Sat, 25 Jan 2003 19:06:51 -0800 (PST) Received: from mail.chesapeake.net (chesapeake.net [205.130.220.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FCD743E4A; Sat, 25 Jan 2003 19:06:50 -0800 (PST) (envelope-from jroberson@chesapeake.net) Received: from localhost (jroberson@localhost) by mail.chesapeake.net (8.11.6/8.11.6) with ESMTP id h0Q36mX91957; Sat, 25 Jan 2003 22:06:48 -0500 (EST) (envelope-from jroberson@chesapeake.net) Date: Sat, 25 Jan 2003 22:06:48 -0500 (EST) From: Jeff Roberson To: Matthew Dillon Cc: Steve Kargl , Robert Watson , Gary Jennejohn , Subject: Re: New scheduler (#2) In-Reply-To: <200301252350.h0PNo6xO009489@apollo.backplane.com> Message-ID: <20030125220607.Y18109-100000@mail.chesapeake.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 25 Jan 2003, Matthew Dillon wrote: > I found another problem. In sched_exit() you are 'returning' > part of the child's priority and interactivity to the parent, but > you are not taking into account batch processes. > > A batch child which is exiting, such as the 'cc1' in a 'cc' or the 'cc' > in a 'make' (you see where this is leading? Consider a 'make buildworld') > must penalize the parent so the next fork/exec'd child retains the batch > priority. > > The 4bsd code does this. The sched_smp code does not. The sched_smp > code simply adds to kg_slptime and this can *never* penalize the parent. > The result is that the parent retains its near-zero cpu utilization > (because all it is doing is fork/exec/wait). > > This could be the primary cause of the interactive/buildworld latency > reports. > Ah, yeah, very good. I hadn't considered the fork/exit priority adjustments in this light. I did have a big XXX there to look at this later though. I'll see if I cant do something more similar to the 4bsd code here. Thanks, Jeff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message