Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Dec 1997 21:53:07 -0500 (EST)
From:      Chuck Robey <chuckr@glue.umd.edu>
To:        Terry Lambert <tlambert@primenet.com>
Cc:        Joao Carlos Mendes Luis <jonny@coppe.ufrj.br>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Process scheduling: nice does not work ???
Message-ID:  <Pine.BSF.3.96.971208215101.3522G-100000@picnic.mat.net>
In-Reply-To: <199712090105.SAA24889@usr01.primenet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 9 Dec 1997, Terry Lambert wrote:

> >   I've been doing some test with cpu-intensive scheduling in FreeBSD
> > 2.2-stable, when I found what seems to be an error in the scheduler.
> 
> 
> Standard UNIX priorities work like this:
> 
> 				prio	20	19	18	17	...
> 					^	^	^	^
> IF something here run it ---------------'	|	|	|
> ELSE IF something here run it ------------------'	|	|
> ELSE IF something here run it --------------------------'	|
> ELSE IF something here run it ----------------------------------'

I thought, Terry, that the effective priority slowly raised itself, with
the length of time that it hadn't been run.  The scheme you describe means
that anything set to 19 never gets run at all, if there's a 20 (in fact I
think the numbers are backwords, anyhow).  Thats not the way I thought it
was.

> ...
> 
> Note: these are base priorities, which the system will adjust based on
> I/O vs. CPU utilization.
> 
> 
> Your processes must have both been I/O bound.
> 
> FreeBSD is doing what it's supposed to.
> 
> 
> 					Terry Lambert
> 					terry@lambert.org
> ---
> Any opinions in this posting are my own and not those of my present
> or previous employers.
> 
> 

----------------------------+-----------------------------------------------
Chuck Robey                 | Interests include any kind of voice or data 
chuckr@glue.umd.edu         | communications topic, C programming, and Unix.
213 Lakeside Drive Apt T-1  |
Greenbelt, MD 20770         | I run Journey2 and picnic, both FreeBSD
(301) 220-2114              | version 3.0 current -- and great FUN!
----------------------------+-----------------------------------------------







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971208215101.3522G-100000>