4.2bsd kernel auto-nicing, scheduling

Spencer W. Thomas thomas at utah-gr.UUCP
Thu Feb 20 02:44:57 AEST 1986


We have disabled this feature here in the past, since we have a tendency
to start an emacs in the morning and use it all day.  With subprocesses
throwing output into windows as fast as they can, it's really easy to
get more than 10 minutes of CPU in a day of work.  All of a sudden your
response slows to crawl:  "D**m it, my emacs just got auto-niced".  I
also experimented with code that looked at the ratio between system &
user time.  This prevented auto-nicing of emacs, I'm really not sure how
effective it was otherwise.  It certainly wouldn't have slowed down a
run away sendmail (which seems to be your problem).  The long-crunching
jobs would eventually get niced, which they should be anyway.  In fact,
we ask people to run jobs that are going to take a LOOONNGGG time to run
them at nice 19.  This can backfire if a process with a large RSS
(bigger than the physical memory) is running -- you get a very nasty
swapping/thrashing behaviour.  Some constant about how often a process
can be swapped is too small.

-- 
=Spencer   ({ihnp4,decvax}!utah-cs!thomas, thomas at utah-cs.ARPA)



More information about the Comp.unix.wizards mailing list