From owner-freebsd-arch Sat Jan 25 19:13:44 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 AC44337B401; Sat, 25 Jan 2003 19:13:42 -0800 (PST) Received: from mail.chesapeake.net (chesapeake.net [205.130.220.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB54243EB2; Sat, 25 Jan 2003 19:13:41 -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 h0Q3DdH94067; Sat, 25 Jan 2003 22:13:39 -0500 (EST) (envelope-from jroberson@chesapeake.net) Date: Sat, 25 Jan 2003 22:13:39 -0500 (EST) From: Jeff Roberson To: Matthew Dillon Cc: Steve Kargl , Robert Watson , Gary Jennejohn , Subject: Re: New scheduler (#3) In-Reply-To: <200301260218.h0Q2IlkX024483@apollo.backplane.com> Message-ID: <20030125220945.L18109-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: > > :This would explain why my recent effort to force Jeff's > :scheduler to overload without X running didn't work. > : > :Matt, are you generating patches or simply analyzing > :Jeff's code? I don't mind panicking my machine if you > :need a guinea pig. > : > :-- > :Steve > > I'm just analyzing Jeff's code and doing simple rip-up tests. I haven't > been saving the bug fixes. Mainly I am getting up to speed on the > scheduler API so I can implement my fractional fair share cpu and I/O > scheduler down the line. > I'd be very interested in hearing a critique of the API. There are a few things that I think are missing now. For example, a sched_exec(). Also, I think sched_fork() should be a finer grained thing like: sched_fork_kse() sched_fork_kseg() sched_fork_td() sched_fork_proc() So that they could be used when new structures are created from fork or as part of adding a new thread/kse/kseg to an existing proc. > I expect Jeff can fix the more obvious bugs in a few seconds. Dealing > with the cpu-thread-stealing issue is a much harder problem. I saw > the flip-flop and reported it, but did not try to fix it. > I'm still not sure about the flip-flop that you're talking about. The others should be very quick to fix. I'll get a patched version going pretty quickly here. Thank you very much for the review matt. This is the most thorough feedback I've received yet. Cheers, Jeff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message