From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,57d42bd9e6af7549,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-22 16:55:11 PST Newsgroups: comp.unix.osf.osf1 Path: nntp.gmd.de!xlink.net!sol.ctr.columbia.edu!spool.mu.edu!howland.reston.ans.net!news.sprintlink.net!EU.net!uknet!comlab.ox.ac.uk!newshost!Ray.Bellis From: Ray.Bellis@psy.ox.ac.uk (Ray Bellis) Subject: Version 0.3 of autonice daemon released Message-ID: Organization: O.U. Dept. of Experimental Psychology Date: 22 Nov 1994 13:06:20 GMT This is `autonice', a program to automatically lower the priority level of long lived processes for DEC OSF/1 AXP. The latest version of the software can be obtained from: ftp://ftp.mrc-bbc.ox.ac.uk/pub/dec_alpha/autonice-0.30.tar.gz The principal aim of the program is to give short lived interactive processes more CPU time than long lived `batch style' jobs. The idea behind this is that those long lived jobs might take a little longer to complete, but if a process is going to run for 24 hours anyway then it doesn't matter too much if it takes an extra 30 minutes. The nice level is set according to the following function: nice = 4 * (int)(log(cputime / 60.0) / log(2.0)) Thus after two minutes of CPU time the process is set to `nice 4' and after 32 minutes of CPU time it is set to the minimum priority level of `nice 20'. Special notes: o The software is designed only for DEC OSF/1 on Alpha AXP with the /proc file system mounted. It *may* work on real SVR4 systems as well. o In order to get the daemon to work properly when started automatically in a script from /sbin/init.d I've used the undocumented library call `daemon'. For systems which don't have this call, I've included a copy of the source code for daemon.c from the free 4.3 BSD releases. o I don't mind if people play around with this, but please send any fixes/suggestions/improvements to me. o There is a memory leak in DEC OSF/1 V3.0 which was invoked by previous versions of this program. I have found a change to the program which doesn't invoke the memory leak. o The CPU time field from /proc under DEC OSF/1 V3.0 gives the time in milliseconds rather than in seconds. This software detects this bug(?) and automatically compensates for it. ------------------------------------------------------------------------------ R. P. Bellis E-Mail: Computing Officer MRC Centre in Brain and Behaviour Dept of Experimental Psychology University of Oxford South Parks Road Tel: +44 1865 271359 Oxford OX1 3UD Fax: +44 1865 310447 ------------------------------------------------------------------------------ -- ------------------------------------------------------------------------------ R. P. Bellis E-Mail: Computing Officer MRC Centre in Brain and Behaviour Dept of Experimental Psychology University of Oxford South Parks Road Tel: +44 1865 271359 Oxford OX1 3UD Fax: +44 1865 310447 ------------------------------------------------------------------------------