Operating System - Tru64 Unix
1752407 Members
5650 Online
108788 Solutions
New Discussion юеВ

Re: 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 3
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 HPE
A quick resolution to technical issues for your HPE products is just a click away HPE Support Center
See Self Help Post for more details

Accept or Kudo

kemo
Trusted Contributor

Re: Limit Process's CPU utilization

thnx