SUMMARY: Limiting a users CPU usage

From: Ryan McConigley <ryan_at_cs.uwa.edu.au>
Date: Tue, 31 Oct 2000 17:34:05 +0000

        The short answer to my question is "yes" and thanks to the many who
replied. There were two main schools of though on the subject. About half
the people suggested I use Autonice. That automatically renices a process
after it uses an arbitary amount of CPU time. See
http://www.tru64unix.compaq.com/faqs/publications/base_doc/DOCUMENTATION/HTM
L/AA-PS2RE-TE_html/CHPTR005.HTM#CONFIG-MAINT-CH if anyone is interested.

        Most of the other people suggested I try class scheduling (see man pages
of class_scheduling and class_admin) that allows for more flexiable
priorities. You can set limits based on UID, PID or GIDs. The other
suggestions were about scripting and cron jobs to monitor job times which
turns out similar to autonice. I'm not sure which one I'll take, since
we've just reached the end of semister here, hopefully I'll get some time
to tinker on the machines and have things up and running for next semister.

        Cheers,
                Ryan.


At 14:02 30/10/2000 +0000, Ryan McConigley wrote:
>
> The subject sums up my question really. Is there a way to limit/change
>the amount of CPU load a user can have access to. We have a couple of
>accounts that are used by various groups to run model simulations. Most of
>the time the runs are not time critical and are suppose to be "niced" so
>they run quietly in the background. However, a lot of the time my users
>forget to nice them. Instead of running around telling people how to
>renice jobs, I'd like it if I could create an account and restrict that
>account to use a maximium of say 60% of the CPU time.
>
> I know it was possible one ancient mainframe systems, but I'm not sure if
>I can do it under Tru64 or how to do it if it is possible.

--
          Ryan McConigley - Systems Administrator                  _.-,
     Computer Science   University of Western Australia        .--'  '-._
       Tel: (+61 8) 9380 7082 - Fax: (+61 8) 9380 1089       _/`-  _      '.
Email: Ryan_at_cs.uwa.edu.au - http://www.cs.uwa.edu.au/~ryan  '----'._`.----. \
                                                                     `     \;
 "You're just jealous because the voices are talking to me"                ;_\
Received on Tue Oct 31 2000 - 09:35:41 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT