"Nice" or not to "nice" large jobs

John F Haugh II jfh at rpp386.cactus.org
Fri May 17 06:21:17 AEST 1991


In article <1991May16.145927.9815 at casbah.acns.nwu.edu> phil at eecs.nwu.edu (William LeFebvre) writes:
>Tell the user s/he is wrong.
>
>The VAX BSD system (4.1 and 4.2, not sure about 4.3) would automatically
>renice any process that exceeded 10 CPU minutes to a nice of 10.  Note
>that the default for the "nice" command is 4, so it was in a user's best
>interests to use the "nice" command explicitly.

I checked the source for this some time back and noticed that it has a
bug which doesn't cause processes with non-standard nice values to be
reniced.  If you start off with a niceness of 1, after 10 minutes you
stay a 1.  If you start off with a niceness of 0, then you get reniced.

It would make better sense if the code set your nice to 10 after 10
minutes if it was anything less than 10 (but not less than 0, that is.)
-- 
John F. Haugh II        | Distribution to  | UUCP: ...!cs.utexas.edu!rpp386!jfh
Ma Bell: (512) 255-8251 | GEnie PROHIBITED :-) |  Domain: jfh at rpp386.cactus.org
"If liberals interpreted the 2nd Amendment the same way they interpret the
 rest of the Constitution, gun ownership would be mandatory."



More information about the Comp.unix.internals mailing list