From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97298491512175.tru64-unix-managers.marc@archive.invalid> From: Ryan McConigley Date: Tue, 31 Oct 2000 09:35:15 +0000 To: tru64-unix-managers Subject: SUMMARY: Limiting a users CPU usage X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97298491512175 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@cs.uwa.edu.au - http://www.cs.uwa.edu.au/~ryan '----'._`.----. \ ` \; "You're just jealous because the voices are talking to me" ;_\