Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

Limit Process's CPU utilization

SOLVED
Go to solution
kemo
Trusted Contributor

Limit Process's CPU utilization

Hello

How to limit the CPU utilization for a process to a certain value or percentage so in any case this process would never exceed that limit?

thanks
3 REPLIES
kemo
Trusted Contributor

Re: Limit Process's CPU utilization

System Info:
===========
uname -a
OSF1 Hostname V5.1 2650 alpha

Alpha ES80
Martin Moore
HPE Pro
Solution

Re: Limit Process's CPU utilization

If you want to limit the total amount of CPU time used, the shell can do that; see ulimit (or limit if using the C shell). See man page for ulimit or csh.

For a percentage of time, you might have to use class scheduling. See the class_scheduling man page.

Another possibility: if you have a multi-CPU system, you can restrict the process to a single processor or a set of processors, which effectively limits its share of the total available CPU power. See the man page for runon.

Martin
I work for HP
A quick resolution to technical issues for your HP Enterprise products is just a click away HP Support Center Knowledge-base
See Self Help Post for more details

kemo
Trusted Contributor

Re: Limit Process's CPU utilization

thnx