From owner-freebsd-current@FreeBSD.ORG Sat Oct 28 04:56:04 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from localhost.my.domain (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 581C216A417; Sat, 28 Oct 2006 04:56:04 +0000 (UTC) (envelope-from davidxu@freebsd.org) From: David Xu To: freebsd-current@freebsd.org Date: Sat, 28 Oct 2006 12:55:56 +0800 User-Agent: KMail/1.8.2 References: <45425D92.8060205@elischer.org> <200610281206.13588.davidxu@freebsd.org> <4542DE59.5010500@elischer.org> In-Reply-To: <4542DE59.5010500@elischer.org> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200610281255.57135.davidxu@freebsd.org> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Daniel Eischen , Paul Allen , Julian Elischer , "Alexandre \"Sunny\" Kovalenko" , current@freebsd.org Subject: Re: Comments on the KSE option X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 28 Oct 2006 04:56:05 -0000 On Saturday 28 October 2006 12:36, Julian Elischer wrote: > >> Julian > > > > As you are emphasizing fairness, I must say I don't believe fairness in > > libpthread either, > > you mean you don't think it is a good idea or that you don't think it > works? (sorry, I know that your english is way better than my > chinese ;-) > I meant I don't think libpthread's userland scheduler + ksegrp in kernel has implemented fairness between threads correctly. > > I don't think writing a fairness scheduler is an > > easy work, does kernel have made fairness for threads in same ksegrp, > > so does libpthread's userland scheduler ? > > The kernel is only responsible for making sure that one ksegrp > (usually a process in my original idea) is not unfair to another > ksegrp. > What happens within the ksegrp is not it's interest. And no it > isn't an easy thing to do which is why I had hoped that some > PhD student would have taken it up by now :-) > > > they don't, it can make threads > > in same ksegrp misbehaviored, so what we have done is still process > > scheduling fairness even there is ksegrp in kernel, and now sacrificed > > fairness between threads. > > once again, I'm not sure what you mean by that. >