[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: limiting the CPU time allowed

>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 26/02/01, 22:17:59, "A. Roubicek" <aro@cdc.noaa.gov> wrote regarding 
limiting the CPU time allowed:

> Hi all,

> I'm trying to find a way to limit the CPU time an IDL process can
> take (on unix, running from cron), to prevent clugging the system
> with runaway processes. Any leads would be greatly appreciated!

> Thank you,
> A.R.

As Craig mentioned you can set per-process CPU limits (for sh/ksh the
command is ulimit, BTW).

Alternatively you might consider installing a batch system such as GNQS 
(which should be free, it's covered by the GNU GPL) and then set up batch 
queues with time limits to process your IDL (and anything else you want 
have processed in the background).

Of course, a batch system may be total overkill for your requirements;
I just thought I'd throw the suggestion into the discussion.

Nigel Wade, System Administrator, Space Plasma Physics Group,
            University of Leicester, Leicester, LE1 7RH, UK 
E-mail :    nmw@ion.le.ac.uk 
Phone :     +44 (0)116 2523568, Fax : +44 (0)116 2523555