- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- performance problem on string usage
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 11:49 PM
09-10-2002 11:49 PM
performance problem on string usage
I join a small benchmark we did and the results on LINUX, AIX and HPUX.
As my applications deal very much with strings, does anybody knows where to look at or am I missing something?
> mode string
>
> HPISIM 17.200 (HP-UX 32 bits)
> HPISIM 64b 15.400 (HP-UX 64 bits)
> Jupiter 2.500 (Linux)
> SLElusis 8.600 (AIX)
>
>
>
> mode char *
>
>
> HPISIM 1.900
> HPISIM 64b 1.700
> Jupiter 0.400
> SLElusis 1.300
>
>
>
>
> #include
> #include
> #include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 12:04 AM
09-11-2002 12:04 AM
Re: performance problem on string usage
http://www.hp.com/go/developer
In any case you spelt bonjour wrong!!
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 12:04 AM
09-11-2002 12:04 AM
Re: performance problem on string usage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 12:15 AM
09-11-2002 12:15 AM
Re: performance problem on string usage
but I am not sure it's a dev issue because it seems to be a general problem with HP.
All the benches we are doing show poor results on HP against Linux and AIX
Sorry Stephan here are my compiler 's options on HPUX:
/opt/aCC/bin/aCC -D__unix__ -D__hpux__ -mt -AA -ext +DA1.1 +p +W829,921,652 -DTGVERSION=\"01.00\" -I../tg_sys/include -I../tg_sys/include -I../tg_loaddic_monp/include -I../tg_disp/include -o bin/essai_malloc EXEC/essai_malloc.cxx -L./lib -L../tg_sys/lib -L../tg_sys/lib -L../tg_loaddic_monp/lib -L../tg_disp/lib -ltg_disp -ltg_loaddic_monp -ltg_sys -ltg_disp -ltg_loaddic_monp -ltg_sys 2> EXEC/essai_malloc.out
he
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 12:18 AM
09-11-2002 12:18 AM
Re: performance problem on string usage
Hi,
I can compile the code using this line:
aCC -AA -o string.exe string.c
Please indicate how you invoke the program
and how you measure the time etc.
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 12:38 AM
09-11-2002 12:38 AM
Re: performance problem on string usage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 01:00 AM
09-11-2002 01:00 AM
Re: performance problem on string usage
Hi
I still do not know how you run this program
and what you measure.
If I shall be able to measure if the
results are reasonable (or the same as you get)
I need to know exactly how you perform
your test.
What kind of machine are you running on,
what version of aCC?
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 01:26 AM
09-11-2002 01:26 AM
Re: performance problem on string usage
I run the program with one argument which is the number of loops.
Run it 1 000 000 times and
add -G as aCC directive to get a profile check the CPU usage with gprof.
The reason why we did this small test is the global poor performance whe got when porting our applications from Linux and AIX to HPUX.
It is a C++ application ensemble (multi-threaded and multiprocesses) which switches messages and applies different actions on the messages . These messages are mainly characters strings and we are using STL a lot.
We are using glance to take measurement on the real-time.
By the we constated that most of the system calls like malloc are not considered as system calls by glance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 02:32 AM
09-11-2002 02:32 AM
Re: performance problem on string usage
Hi,
I advise you to check your compiler-options.
Compiling with different options give
a big difference in execution time for your
test-program.
I have performed the test by starting the
program in the following way:
time string.exe 1000000
Compiler-options time (realtime)
-AA -G +DA2.0 30.2 sec
-AA +DA1.1 21.35 sec
-AA -G +DA1.1 35.76 sec
-AA +DA2.0 15.76 sec
-AA +DA2.0 +O3 11.07 sec
The +DA2.0 tells the compiler to generate
code for a PARISC2.0 processer.
In the compile-info you gave the code is
generated for a PARISC1.1
PARISC2.0 is the PARISC-version in all new
machines.
+O3 tells the compiler to optimize the code.
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 02:37 AM
09-11-2002 02:37 AM
Re: performance problem on string usage
But I can't use the optimise 3 level and I can't use PA2.0 because:
- 1) compile of my objects are rejected with the +O3 option (I'm using a lot of throws/catch and compiler says that's too much).
-2) the target system is Stratus running HPUX only in the 32bits mode...
too bad isn't it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 02:47 AM
09-11-2002 02:47 AM
Re: performance problem on string usage
The fact that you have a target machine
that is running hp-ux 32bit does not mean
that you can not use the option
+DA2.0
I used a C200 hp-ux 11.00 (32-bit)
for this test.
This means that unless your target-machine is
very old (using PARISC1.1), you should use
+DA2.0
(the option for compiling for 64-bit is
+DA2.0W )
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 04:33 AM
09-11-2002 04:33 AM
Re: performance problem on string usage
I will retry with +O2 optimize level and check...
Thank you anyway Olav!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 04:56 AM
09-11-2002 04:56 AM