From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,59982375fa66b099 X-Google-Attributes: gidfee84,public From: Ray.Bellis@psy.ox.ac.uk (Ray Bellis) Subject: Re: Nice background processes? Date: 1996/02/27 Message-ID: #1/1 X-Deja-AN: 141495102 sender: rpb@axp01.mrc-bbc.ox.ac.uk references: <4g271c$ir8@tic.sm.dsi.unimi.it> <312DD6C7.3E23@sis.ucm.es> organization: O.U. Dept. of Experimental Psychology feb 1996 16: 01:27 +0100 newsgroups: comp.unix.osf.osf1 In article <312DD6C7.3E23@sis.ucm.es> "Juan C. Herr=?iso-8859-1?Q?=E1iz Regidor" ?= 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 / \ / / /