Operating System - HP-UX
1848007 Members
8733 Online
104022 Solutions
New Discussion

Re: Reserve CPU for a particular program

 
SOLVED
Go to solution
Temi Osinubi
New Member

Reserve CPU for a particular program

I have a high CPU utilization on a HP rp5470. I need to reserve a portion of the CPU for a particular program. Any ideas on how to do this?
6 REPLIES 6
Michael Tully
Honored Contributor
Solution

Re: Reserve CPU for a particular program

Basically you can't with the standard OS. You would need to purchase Process Resource Manager/Workload resource manager.
Have a look here for more information. These are not free.

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B3835DATRY
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B8843CA
Anyone for a Mutiny ?
John Poff
Honored Contributor

Re: Reserve CPU for a particular program

Hi,

HP-UX will take care of managing the CPU usage for you. You can set the priorities on a process using the nice command, but that may be at the expense of other processes which could slow down the rest of the system.

Here are a couple of threads that talk about CPU usage
and load balancing. One way to do it is to get the
PRM [Process Resource Manager] product.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x849b3a1c04ffd61190050090279cd0f9,00.html

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x6e64ef70e827d711abdc0090277a778c,00.html

JP
KCS_1
Respected Contributor

Re: Reserve CPU for a particular program

hi,

have a look at here that also explain how to set/install PRM product.

http://www2.itrc.hp.com/service/iv/docDisplay.do?docId=/DE_SW_UX_swrec_EN_01_E/PRM.pdf


Easy going at all.
Michael Steele_2
Honored Contributor

Re: Reserve CPU for a particular program

Yep, PRM, Process Resource Manager!
Support Fatherhood - Stop Family Law
Sunil Sharma_1
Honored Contributor

Re: Reserve CPU for a particular program

Hi,

Reserving a portion of CPU for specific application is not possible through OS native tools but yo can use HP Process Resource manager for this with he help of PRM you can also control memory allocation.

You can use OS native commands like nice,renice etc to run the desired process on higher priprity.

Sunil S
*** Dream as if you'll live forever. Live as if you'll die today ***
Decio Miname
Frequent Advisor

Re: Reserve CPU for a particular program

The "cheap" alternative of changing priorities mentioned by John P. is probably the best: simple and easy. Use it with caution, especially because your server is heavily loaded. You can also decrease the priority of processes that you know as less critical, and even better: make them run with "nice" as default.
Another strategy, though very very very ugly, is to timely hold/continue less critical processes for a few seconds using kill commands (I believe these were signals 24 and 26, not sure). This could seriously impact application functionality - it varies from case to case; NEVER use this for critical processes (like cluster daemons!!!). This would be a bad last alternative for never-solvable non-critical applications.
D.