From owner-freebsd-current@FreeBSD.ORG Sat Oct 28 07:19:27 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 A318116A412; Sat, 28 Oct 2006 07:19:26 +0000 (UTC) (envelope-from davidxu@freebsd.org) From: David Xu To: freebsd-current@freebsd.org Date: Sat, 28 Oct 2006 15:19:18 +0800 User-Agent: KMail/1.8.2 References: <45425D92.8060205@elischer.org> <200610281206.13588.davidxu@freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610281519.18843.davidxu@freebsd.org> Cc: Daniel Eischen , Garance A Drosihn , Julian Elischer , "Alexandre \"Sunny\" Kovalenko" 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 07:19:27 -0000 On Saturday 28 October 2006 13:34, Garance A Drosihn wrote: > I think we have different ideas of what is the goal is with this > claim of "fairness". > > If I understand it right, it is *not* that some static code in the > kernel is going to decide which applications are fair and which ones > are not fair. IIIRC, what Julian wants to do is provide a way that > the administrator can make that decision. The administrator will > have a way to throttle some thread-crazy process, but only if the > *administrator* wants to do that. > > If the machine is for a single user, then that user will probably > set "N" to a high value. But if the machine has a lot of users on > it, then the administrator of that machine may want to set "N" to > the number of CPU's on the system, or maybe the number of CPU's > minus 1. And if the users don't like that, then they can go buy > their own damn machine instead of using the machine someone else > bought and is allowing them to access for free. > > At RPI we have both kinds of machines. Machines owned by a single > user, and machines which have multiple students ssh'ed into at the > same time. I can see wanting to throttle thread-crazy processes on > some machines, and not wanting any throttling at all on others. > > ...but it has been a few years since the presentation that I remember > Julian giving about this, so maybe I am not remembering it correctly. > I do remember that whatever it was, it sounded pretty reasonable at > the time. :-) but you know pthread_create call() is more complex and diffcult to use than fork() which does not need any parameter, before freebsd has native thread support, the whole FreeBSD world is using fork(), and I have not seen a single complaint that postgresql should be rewritten because it is using too much CPU and driving other users out, same for Apache web server, why should threaded application be a culprit ? David Xu