* nicelevel 20
@ 1999-07-21 4:00 Helmut Katzgraber
1999-07-22 4:00 ` Massimo Gais
1999-07-22 4:00 ` Stuart R. Fuller
0 siblings, 2 replies; 6+ messages in thread
From: Helmut Katzgraber @ 1999-07-21 4:00 UTC (permalink / raw)
hi there.
i have a question: on my alpha running rh 6.0 i can renice jobs to
nicelevel 20, whereas on an intel with the same os i only can get as
high
as 19. has anybody a suggestion how i can renice something to 20 (i.e. i
want it to comfortably rest while other stuff is running) on rh
6.0-intel?
in fact i just tested it: if i start a job on an intel, and type
renice 20 PID
top
top shows only nicelevel 19. the same situation on the alpha gives the
desired nicelevel 20 when i run top.
thanks, h.
--
--------------------------------------------------------------------------
Helmut G. Katzgraber mail: dummkopf@debussy.ucsc.edu
Physics Department, Kerr Hall http://debussy.ucsc.edu/~dummkopf
University of California Phone: (+1) 831-459-4762
Santa Cruz, CA 95064, USA Fax: (+1) 831-459-3043
--------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: nicelevel 20
1999-07-21 4:00 nicelevel 20 Helmut Katzgraber
@ 1999-07-22 4:00 ` Massimo Gais
1999-07-26 4:00 ` rsimpson
1999-07-22 4:00 ` Stuart R. Fuller
1 sibling, 1 reply; 6+ messages in thread
From: Massimo Gais @ 1999-07-22 4:00 UTC (permalink / raw)
Helmut Katzgraber wrote:
>
> hi there.
>
> i have a question: on my alpha running rh 6.0 i can renice jobs to
> nicelevel 20, whereas on an intel with the same os i only can get as
> high
> as 19. has anybody a suggestion how i can renice something to 20 (i.e. i
> want it to comfortably rest while other stuff is running) on rh
> 6.0-intel?
>
> in fact i just tested it: if i start a job on an intel, and type
>
> renice 20 PID
> top
>
> top shows only nicelevel 19. the same situation on the alpha gives the
> desired nicelevel 20 when i run top.
>
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.
Regards
--
Massimo Gais <mgais@na.astro.it>
----
"True programmers never die,
they just branch to an odd address..."
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: nicelevel 20
1999-07-22 4:00 ` Massimo Gais
@ 1999-07-26 4:00 ` rsimpson
1999-07-26 4:00 ` Helmut Katzgraber
0 siblings, 1 reply; 6+ messages in thread
From: rsimpson @ 1999-07-26 4:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: nicelevel 20
1999-07-26 4:00 ` rsimpson
@ 1999-07-26 4:00 ` Helmut Katzgraber
0 siblings, 0 replies; 6+ messages in thread
From: Helmut Katzgraber @ 1999-07-26 4:00 UTC (permalink / raw)
thanks a lot for your reply. that is exactly what i meant: with an alpha
you *can* renice to 20, which will practically STOP the process, whereas
19 still gives it about 5% of CPU.
the problem i have, is that i have to manage a bunch of i386 machines
and we have strict nicing policies in the department. policies i
tailored (using my alpha) with the idea that after a certain amount of
jobs, the users are only allowed to submit "sleeping" jobs at nicelevel
20. unfortunately it seems that i have to re-think everything....
thanks again, cheers, h.
> 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.
--
-----------------------------------------------------------------
Helmut G. Katzgraber mail: dummkopf@debussy.ucsc.edu
Physics Department, Kerr Hall http://debussy.ucsc.edu/~dummkopf
University of California Phone: (+1) 831-459-4762
Santa Cruz, CA 95064, USA Fax: (+1) 831-459-3043
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: nicelevel 20
1999-07-21 4:00 nicelevel 20 Helmut Katzgraber
1999-07-22 4:00 ` Massimo Gais
@ 1999-07-22 4:00 ` Stuart R. Fuller
1999-07-23 4:00 ` John Drohan
1 sibling, 1 reply; 6+ messages in thread
From: Stuart R. Fuller @ 1999-07-22 4:00 UTC (permalink / raw)
Helmut Katzgraber (dummkopf@debussy.ucsc.edu) wrote:
:
: hi there.
:
: i have a question: on my alpha running rh 6.0 i can renice jobs to
: nicelevel 20, whereas on an intel with the same os i only can get as
: high
: as 19. has anybody a suggestion how i can renice something to 20 (i.e. i
: want it to comfortably rest while other stuff is running) on rh
: 6.0-intel?
:
: in fact i just tested it: if i start a job on an intel, and type
:
: renice 20 PID
: top
:
: top shows only nicelevel 19. the same situation on the alpha gives the
: desired nicelevel 20 when i run top.
I have a guitar amp. It plays louder than other amps, since the volume knob
goes to 11, while other amps only go to 10.
Stu
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: nicelevel 20
1999-07-22 4:00 ` Stuart R. Fuller
@ 1999-07-23 4:00 ` John Drohan
0 siblings, 0 replies; 6+ messages in thread
From: John Drohan @ 1999-07-23 4:00 UTC (permalink / raw)
Thanks alot Nigel. That's one louder, inn't?
--
John "BadBlood [PAIN]" Drohan
Stuart R. Fuller wrote in message ...
>Helmut Katzgraber (dummkopf@debussy.ucsc.edu) wrote:
>:
>: hi there.
>:
>: i have a question: on my alpha running rh 6.0 i can renice jobs to
>: nicelevel 20, whereas on an intel with the same os i only can get as
>: high
>: as 19. has anybody a suggestion how i can renice something to 20 (i.e. i
>: want it to comfortably rest while other stuff is running) on rh
>: 6.0-intel?
>:
>: in fact i just tested it: if i start a job on an intel, and type
>:
>: renice 20 PID
>: top
>:
>: top shows only nicelevel 19. the same situation on the alpha gives the
>: desired nicelevel 20 when i run top.
>
>I have a guitar amp. It plays louder than other amps, since the volume
knob
>goes to 11, while other amps only go to 10.
>
> Stu
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1999-07-26 4:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-21 4:00 nicelevel 20 Helmut Katzgraber
1999-07-22 4:00 ` Massimo Gais
1999-07-26 4:00 ` rsimpson
1999-07-26 4:00 ` Helmut Katzgraber
1999-07-22 4:00 ` Stuart R. Fuller
1999-07-23 4:00 ` John Drohan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox