Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jul 1998 12:03:34 +0200 (CEST)
From:      Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
To:        freebsd-questions@FreeBSD.ORG (freebsd-questions@freebsd.org)
Subject:   Re: Bug in the process-scheduler & niceness of 20?
Message-ID:  <199807241003.MAA08330@kazi.dcse.fee.vutbr.cz>

next in thread | raw e-mail | index | archive | help

> On Fri, 17 Jul 1998, Cejka Rudolf wrote:
> 
> > Yes, ok. But why is niceness control _so very_ insensitive?
> > How can I increase nice sensitivity?
> 
> Hack the kernel?

Perhaps - I don't know anything else.
Is this easy (one place, number change) or more elaborate change?

> > Example:
> > 
> > 	1. process with nice = 0:  CPU = 65 %
> > 	2. process with nice = 20: CPU = 30 %
> > 
> > Ratio 2:1 is _too_ small. How can I reach ratio 5:1 or bigger?
> > idprio is unusable for this purpose. Time ratio reacheble with idprio
> > is 1:1 or infinity:none.

> What are you running that requires so much precision?

"Precision" isn't good word, "ratio" is right. Command idprio is in
most cases unusable because the regular user isn't allowed to use this
command. So only nice remains.

If I run computing process via idprio yet (rc5des as example) and another
computing process with normal priority (ray-tracing), idprio process stops.
It's good and I like this. But there are some cases in which I want to
donate about 5 % (or 10 %) of processor time constantly for any low
priority process (not only rc5des exists). Just because to know something
will be computed after a while (with bouded time) :-)

With nice I have made some tests for two main running (computing) processes:
				1: nice = 0	2: nice = 19
	FreeBSD	=>	2:1	64 %		30 %
	Sun	=>	3:1	74 %		24 %
	Linux	=>	10:1	86 %		 9 %

Yes, I like many featuers of FreeBSD task scheduler - especially
perfect response time. But 30 % for niced process is too much for me.
My idea follows:

		Processor usage for two processes (after one minute)
NICENESS	"./proc & nice -NICENESS ./proc &"

0		48 %	48 %	(~ 1:1)
5		59 %	37 %	(~ 2:1)
10		70 %	26 %	(~ 3:1)
15		81 %	15 %	(~ 6:1)
20		91 %	5 %	(~ 20:1)

Are there any counterparts against this idea?

--------------------------------------------------------------------------
Rudolf Cejka  (cejkar@dcse.fee.vutbr.cz;  http://www.fee.vutbr.cz/~cejkar)
Technical University of Brno, Faculty of El. Engineering and Comp. Science
Bozetechova 2, 612 66  Brno, Czech Republic

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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