Operating System - HP-UX
1834149 Members
2564 Online
110064 Solutions
New Discussion

Re: Help needed to improve the performance on HP

 
Satya_6
Frequent Advisor

Help needed to improve the performance on HP

Hi,

I thought this is the right forum with many experienced guys to pose this question of the general good program techniques to have a program with very good performance. Please ignore if this is not the right forum for this kind of topic

I was particularly interested in the performance improvement of my application on HP.

The application is developed mainly using C/C++ and its a X/Motif application also using OpenGL for 3D graphics

The application is made of an executable and lots of shared libs


Can you please suggest or provide me some pointers which would help me improve the performance and the memory footprint of the application on HP. The application is really performaning very bad on HP. The same code works very fine on Linux.

I was wondering if I am missing some tips and tricks of tuning the code to have a better performance on HP, even the memory consuption is bad on HP compared to Linux

With all these things , I feel I need to tune my code slighlty for HP, can anyone guide me please

Of course the application is 32bit

TIA
Satya
13 REPLIES 13
whiteknight
Honored Contributor

Re: Help needed to improve the performance on HP

Satya_6
Frequent Advisor

Re: Help needed to improve the performance on HP

Hi,

I was looking more of a tuning (tricks/tips/techniques) in the application code, than the kernal paramters. The last 2 links helps me to an extent on that. Is there something like that for my OpenGL implementation as well

TIA
Satya
AwadheshPandey
Honored Contributor

Re: Help needed to improve the performance on HP

http://docs.hp.com/en/5990-6739/ch12s02.html
It's kind of fun to do the impossible
Steven E. Protter
Exalted Contributor

Re: Help needed to improve the performance on HP

Shalom,

The system itself needs to be tuned.

Java tuning:
http://h21007.www2.hp.com/portal/site/dspp/PAGE.template/page.document?ciid=6508a8ea6ce02110a8ea6ce02110275d6e10RCRD

Hints:
http://h20331.www2.hp.com/Hpsub/cache/286030-0-0-225-121.html

tools:
http://h20331.www2.hp.com/Hpsub/cache/286022-0-0-225-121.html
http://www.hpux.ws/?p=6

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
Geoff Wild
Honored Contributor

Re: Help needed to improve the performance on HP

Well, your biggest gotcha is "Of course the application is 32bit "

HP-UX is natively 64 bit.

What kind of server are you running on - parisc or Itanium? also, what OS?

32 bit code on Itanium traditionaly has poor performance...

Your biggest performance gain will come from compiling the app on 64 bit.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Satya_6
Frequent Advisor

Re: Help needed to improve the performance on HP

Hi,

First, thank you very much for the inputs/pointers.
I have got hold of the Code Advisor and the caliper. I need to see how I can improve my program using these tools.

coming to moving to 64bit, I guess its not happening soon. ( I agree we will be in this limitations of 32bit) but I guess thats not in my hands. The application is built and used on PA-RISC machines

and as far as tuning the system itself, I need to convince the customer and also I would face the eventual question that when similar applications are working fine, why we need to tune specifically for our application.

Thanks and Regards
Satya

dirk dierickx
Honored Contributor

Re: Help needed to improve the performance on HP

when you say it is slower, how much slower is it? what HW is the linux machine running on? modern intel/linux machines _are_ faster then parisc, so it might be normal unless the speed difference is just way to big.
Dennis Handly
Acclaimed Contributor

Re: Help needed to improve the performance on HP

>Geoff: Well, your biggest gotcha is "Of course the application is 32bit"
>HP-UX is natively 64 bit.

These two statements are unconnected and very likely have little to do with Satya's problems.
HP-UX runs 32 bit applications with no degradation.

>32 bit code on Itanium traditionally has poor performance...

This is FUD. Perhaps you are confusing executing X86 instruction set?
HP-UX runs 32 bit IPF applications at full hardware speeds.

>Your biggest performance gain will come from compiling the app on 64 bit.

Not on HP-UX, it may slow down. Unless you can take advantage of using the large address space.
Satya_6
Frequent Advisor

Re: Help needed to improve the performance on HP

Hi,

Will I get a better performance by using the latest compiler? Assuming the the latest compiler does a better code optimization, Now I am using the aCC A.03.65

TIA
Satya
TwoProc
Honored Contributor

Re: Help needed to improve the performance on HP

Not surprising that its faster on Linux assuming this is a recent Intel/AMD chipset. However, since it sounds like it must run on the HP, the best approach would probably be to profile the code, and start isolating which pieces of code have the longest runtimes, and start tuning/recoding those pieces to run faster. I seriously doubt that the WHOLE application underperforms, it almost always seems like that in general one must deal with say 3 to 5 key areas, plus 4 or 5 more less serious areas to tune up problems like this. However, the coding required to tune up some of these could be major. It can be ugly, but the approach usually follows the basic pattern of obtaining a execution time profile,
then following the Pareto principle to look for the tuning opportunities which give the biggest yield for the smallest effort first. Then re-evaluate the remainders for effort-sizing/potential-return.
We are the people our parents warned us about --Jimmy Buffett
Jini Susan George
Occasional Advisor

Re: Help needed to improve the performance on HP

Hi Satya,

Caliper is available only for Itanium machines. For PA-RISC, you would need to use prospect (available at http://www.hp.com/go/prospect).

Regards,
- Jini.

Dennis Handly
Acclaimed Contributor

Re: Help needed to improve the performance on HP

>Will I get a better performance by using the latest compiler?

Probably not as much as on Integrity.