On Fri, 27 Nov 1998 10:43:26 +0100 Sturle Sunde wrote:
> Secondly it checks the load on the computer (5 minute average). If there
> are any active users (active during the last ten minutes) or the load goes
> above $MAXL, then mprime is killed. If the load goes back under $STAL and
> no user (except $USRS) have been active during the last ten minutes, then
> mprime is started again.
You may want to try what I do with some of our machines - instead of
killing and restarting the program, send it a STOP or a CONT signal (I
assume Linux has these signals available, I'm a BSD and SysV person). I
have a cron job on the machines where users don't want mersenne testing
active while they're logged on (we should never have added xload to the
xsession file :-), but another single machine which monitors all the
other machines and just looks for the presence of the process regardless
of whether or not it's actually chewing CPU time. This is all working
nicely for about 80-odd Ultrix, Solaris and NetBSD boxes.
Just another idea...
Simon.