Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Ray.Bellis@psy.ox.ac.uk (Ray Bellis)
Subject: Re: Nice background processes?
Date: 1996/02/27	[thread overview]
Message-ID: <wwvybppayht.fsf@axp01.mrc-bbc.ox.ac.uk> (raw)
In-Reply-To: 312DD6C7.3E23@sis.ucm.es

In article <312DD6C7.3E23@sis.ucm.es> "Juan C. Herr=?iso-8859-1?Q?=E1iz Regidor" <jc@sis.ucm.es>?= writes:

> Stefano Ducati wrote:
> > 
> > I'm sysadm on a DEC OSF 3.0 where the users are used to
> > put in backgound heavy processes slowing down the system.
> > 
> > Hou can I do to renice any user's  background process to keep
> > healty the system????
> > 
> 
> 	You can define the AUTONICE variable to 1. This will
> 	renice all job that are running more than 10 minutes
> 	of cpu. The variable can be set dinamically with
> 	rcmgr AUTONICE 1 or can be define when you create
> 	the kernel.

Alternatively run my `autonice' daemon which progressively lowers the
priority of long-lived jobs.  You can get the latest version from:

  ftp://ftp.mrc-bbc.ox.ac.uk/pub/dec_alpha/autonice-0.4.tar.gz

For those of you already using autonice, I'm working on an enhanced
version which accepts a tiny subset of `C' as a run-time configuration
file.  This will allow configurations such as:

-- sample autonice.conf ---

/* don't to anything to root's processes */
if (user == "root") return;

if ((time >= 86400) && (nice < 20)) {

  /* kill processes more than 24 hours old that aren't nice 20 */
  kill(SIGHUP);

} else if ((time >= 3600) && (nice < 12)) {

  /* set nice 12 for processes an hour old that aren't already nice 12 */
  nice = 12;

} else if ((time >= 60) && (nice < 4)) {

  /* set nice 4 for processes older than a minute */
  nice = 4;

}

---

I'm hoping to release this version in a couple of weeks, I'll make an
official announcement when it's ready.

Ray.
-- 
  __  __     Computing Officer, MRC Research Centre in Brain and Behaviour,
 /_/ /_/ \/     Department of Experimental Psychology, Oxford University
/ \ / /  /  <http://www.mrc-bbc.ox.ac.uk/~rpb> <mailto:Ray.Bellis@psy.ox.ac.uk>



      reply	other threads:[~1996-02-27  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-02-16  5:00 Nice background processes? Stefano Ducati
1996-02-23  5:00 ` Juan C. Herr=?iso-8859-1?Q?=E1iz Regidor
1996-02-27  5:00   ` Ray Bellis [this message]
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