Operating System - HP-UX
1826480 Members
3962 Online
109692 Solutions
New Discussion

Re: Process - utilize more CPU

 
LudekC
Advisor

Process - utilize more CPU

Good day,
configuration:
HP-UX B.11.11
application server rp5470 (4 CPU)
Program (process) run on server more than 6 hours - in night. This process use in Glance CPU 70% - 90%, but only perhaps 1 CPU from 4 CPU. Is possible use more CPU with this process or how improve performance for this process.
Thank You Ludek
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Process - utilize more CPU

Shalom,

Sure, but the application program needs to be written in such a way to use multiple cpus. There is nothing you can do from the systems administration standpoint to make it happen.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
LudekC
Advisor

Re: Process - utilize more CPU

Hello,
is possible reserve (assign) 1 CPU for one concrete process?
Thank You Ludek
Bill Hassell
Honored Contributor

Re: Process - utilize more CPU

Your process is running the way it was written. The first instruction must be executed before the second instruction and so on. That is called single threaded so you'll get exactly the same results on a single processor system as you would on a 32 processor system. To make the program run faster, you must be able to change the code and:

1. rewrite the application to remove inefficient code

2. create threads to process independent sections of the code

3. reduce the number of I/O's by reading larger records

Your last question about a single CPU is yes, you can assign a process to a single processor. To answer your un-asked question:

NO, you won't see any difference in performance at all. HP-UX assigns a processor every time a process starts running after a system call. There is no movement of the program -- only the program counter is loaded along with a few registers (microseconds). But this occurs regardless of whether the processor has been reserved or not. You can play with processor sets using the mpsched command.


Bill Hassell, sysadmin