* Version 0.3 of autonice daemon released
@ 1994-11-22 13:06 Ray Bellis
0 siblings, 0 replies; only message in thread
From: Ray Bellis @ 1994-11-22 13:06 UTC (permalink / raw)
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: <Ray.Bellis@psy.ox.ac.uk>
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: <Ray.Bellis@psy.ox.ac.uk>
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
------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1994-11-22 13:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-11-22 13:06 Version 0.3 of autonice daemon released Ray Bellis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox