Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jan 2010 18:48:50 +0100
From:      Jordi Espasa Clofent <jespasac@minibofh.org>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: About nice(1), renice(8) and ULE scheduler
Message-ID:  <4B574202.3020501@minibofh.org>
In-Reply-To: <201001191712.o0JHCjPj056570@lurza.secnetix.de>
References:  <201001191712.o0JHCjPj056570@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B574202.3020501>