From owner-freebsd-hackers Mon Dec 8 18:54:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA17380 for hackers-outgoing; Mon, 8 Dec 1997 18:54:22 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from picnic.mat.net (picnic.mat.net [206.246.122.117]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA17340 for ; Mon, 8 Dec 1997 18:54:06 -0800 (PST) (envelope-from chuckr@glue.umd.edu) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.8.8/8.8.5) with SMTP id VAA05280; Mon, 8 Dec 1997 21:53:13 -0500 (EST) X-Authentication-Warning: picnic.mat.net: chuckr owned process doing -bs Date: Mon, 8 Dec 1997 21:53:07 -0500 (EST) From: Chuck Robey X-Sender: chuckr@picnic.mat.net To: Terry Lambert cc: Joao Carlos Mendes Luis , freebsd-hackers@FreeBSD.ORG Subject: Re: Process scheduling: nice does not work ??? In-Reply-To: <199712090105.SAA24889@usr01.primenet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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! ----------------------------+-----------------------------------------------