1846627 Members
2423 Online
110256 Solutions
New Discussion

Re: CPU Utilisation

 
Siddhesh
Advisor

CPU Utilisation

Hi Gurus,

Is there any way by which I can prevent any process from consuming 100% CPU. In other words, I want to run that process, but by consuming lesser CPU %.


Thanks,
Siddhesh.
5 REPLIES 5
Paula J Frazer-Campbell
Honored Contributor

Re: CPU Utilisation

Hi


Nice

Man nice

Paula
If you can spell SysAdmin then you is one - anon
john korterman
Honored Contributor

Re: CPU Utilisation

Hi,
try looking into PRM, e.g.:
http://docs.hp.com/hpux/onlinedocs/B8733-90001/B8733-90001.html

regards,
John K.
it would be nice if you always got a second chance
Bill Hassell
Honored Contributor

Re: CPU Utilisation

HP-UX doesn't allow a single process to consume all of the CPU time unless there is nothing else running. If two processes want 100% of the CPU, they will get 50% each over time. HP-UX will switch between the programs ever timeslice interval (typically 100ms), and even a dozen programs that use 100% of the CPU will not slow down interactive programs like vi or a shell prompt. HP-UX will process I/O interrupts without regard to the CPU load. You can force a program to take be scheduled less often by using nice.


Bill Hassell, sysadmin
nibble
Super Advisor

Re: CPU Utilisation

you may use top then adjust the priority with nice
Tim D Fulford
Honored Contributor

Re: CPU Utilisation

added to the above...PRM.. (process resource management)

If you have a few "types" of application on the computer you can split them into groups and assign resource limits.. (However I think these resource limits are generally whole CPU's etc). But if one application is "hogging" lots of CPU, & interfering with another application on the same computer, then PRM may help...

...I suspect that the problem you facing is process like fc60mon, or cclogd ..etc.. regularly hitting 100%. Generally these are fixed with patches.

Lastly... We run a database, Informix, and even after careful tuning we sometimes see "oninit" processes at 100%. This is not necessarily a problem, provided you are getting 100% work out of it. Infact some people recon you are getting your moneies worth out of it in this case (e.g. you buy an 8 cpu box but only run it at 40%, why not buy a 4 CPU box and run it at 80% & save money...)

good luck

Tim
-