Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: rsimpson@ewrcsdra.CutThisOut.demon.co.uk
Subject: Re: nicelevel 20
Date: 1999/07/26	[thread overview]
Message-ID: <lukhn7.hdo.ln@snowwhite> (raw)
In-Reply-To: 3796C1D1.2A1F9CCA@na.astro.it

Massimo Gais <mgais@na.astro.it> wrote:
: Why do you want to nice just to 20? Nice levels are *relative* so, 
: except if you have another process 'niced' to 19, your program
: "eat" the same cpu load if at level 19 or 20.
: IMHO the nice level doesn't fix a cpu % load, just reschedule process
: priority, so my personal hint is to use the "standard" 19 level
: everywhere.

What a load of old drivel everyone is talking!!!  Unlike other responders
to this thread I took the liberty of conducting some experiments.  I used
the seti@home client as my test program on an i386 and an Alpha.  Both
machines were running RedHat 6.0 with kernel 2.2.10.

I ran two seti jobs simultaneously at varying nice levels and observed
the percentage of CPU time which each consumed.  The results are
presented below.  I have rounded the results to whole numbers.

Nice levels		i386 results	Alpha results
0  0			50  50		50  50
0  19			94   6		94   6
0  20			N/A		99   1	

I think that the numbers above are fairly self explanatory.

I should also point out that irrespective of the above experiment, Linux
commands should be consistent across platforms and should tie up with
the documentation.  I can conceive of no reason why the upper nice
limit should be platform dependent and the documentation seems confused.
info nice claims that the maximum nice value is 19, whereis man renice
claims that the limit is 20.  Clearly, this is an area where a little bit
of tidying up is required.
 
-- 
Richard Simpson
Farnborough, Hants, Uk                 Fax: 01252 392118
rsimpson@ewrcsdra.Cut_This_Out.demon.co.uk
I am not aware of any views shared by myself and my employers.



  reply	other threads:[~1999-07-26  4:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-21  4:00 nicelevel 20 Helmut Katzgraber
1999-07-22  4:00 ` Stuart R. Fuller
1999-07-23  4:00   ` John Drohan
1999-07-22  4:00 ` Massimo Gais
1999-07-26  4:00   ` rsimpson [this message]
1999-07-26  4:00     ` Helmut Katzgraber
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox