automatic renice in 4.1 bsd?
Jeff Anton
anton at ucbvax.ARPA
Sat Oct 13 08:57:45 AEST 1984
If I remember 4.1 correctly it will move the nice of a process
from 0 to +4 after 10 cpu minutes. This only applies to
non-root and nice = 0 processes. Csh however has a bug in the way
it handles the 'nice' internal command. Csh attempts to set the
nice absolutely by doing the nice +40 then nice -(20-resultnice).
This however, fails if you are not root and will set your shell
to nice +19 (The real maximum). The fix is pretty easy.
You should go into csh source and change these nices into a call
to the new setpriority. (I think it's in 4.1)
Disclaimer: I don't work on BSD, I just know a few pieces of it. (bugs)
Jeff Anton
anton at berkeley.arpa
ucbvax!anton
More information about the Comp.unix.wizards
mailing list