From owner-freebsd-stable@FreeBSD.ORG Wed Jan 20 17:48:53 2010 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F00A2106566B for ; Wed, 20 Jan 2010 17:48:53 +0000 (UTC) (envelope-from jespasac@minibofh.org) Received: from smtp02.cdmon.com (smtp02.cdmon.com [212.36.74.55]) by mx1.freebsd.org (Postfix) with ESMTP id AD7628FC16 for ; Wed, 20 Jan 2010 17:48:53 +0000 (UTC) Received: from jespasac.cdmon.com (62.Red-217-126-43.staticIP.rima-tde.net [217.126.43.62]) (Authenticated sender: jespasac@noverificar) by smtp02.cdmon.com (Postfix) with ESMTP id 7002746316 for ; Wed, 20 Jan 2010 18:48:51 +0100 (CET) Message-ID: <4B574202.3020501@minibofh.org> Date: Wed, 20 Jan 2010 18:48:50 +0100 From: Jordi Espasa Clofent User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0b1 Thunderbird/3.0 MIME-Version: 1.0 To: freebsd-stable@FreeBSD.ORG References: <201001191712.o0JHCjPj056570@lurza.secnetix.de> In-Reply-To: <201001191712.o0JHCjPj056570@lurza.secnetix.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: About nice(1), renice(8) and ULE scheduler X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2010 17:48:54 -0000 > In fact nice is a very simple program. It only changes the > priority value of a process in a POSIX-compliant way. > There is no need to change or adapt it; it still works fine > in the SMP world and with new schedulers. It's up to the > scheduler to interpret and handle the priority values of > processes. > > In other words: The nice(1) tool only attaches a number to > a process, nothing more. Only the scheduler knows what that > number means. So there's no need to change nice(1). Great. So, the key is the scheduler; it makes sense. > By the way, the source code of nice(1) is almost trivial. > Basically it just calls the setpriority(2) and execve(2) > syscalls. 99% of the source file consists of the BSD > license test, arguments parsing and C syntax overhead. Thanks for aclaration. ;) -- I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me. And when it has gone past I will turn the inner eye to see its path. Where the fear has gone there will be nothing. Only I will remain. Bene Gesserit Litany Against Fear.