Operating System - HP-UX
1824846 Members
3756 Online
109674 Solutions
New Discussion юеВ

"ctcom" hogging more CPU %

 
Bhushan_3
New Member

"ctcom" hogging more CPU %

Hi,
I am trying to compile C++ code, and its hanging at certain point for a long. At this jncture, if I check the mempory usage, I find that the process "ctcom" is using the maximim percentage. At one time it rises upto 90%. Is this a know problem. Please let me know if how can get away with this.
4 REPLIES 4
Steve Steel
Honored Contributor

Re: "ctcom" hogging more CPU %

Hi


I have never seen this but

1)What os version and C++ version

2)compile options

3)Does syslog.log show anything


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Bhushan_3
New Member

Re: "ctcom" hogging more CPU %

The compilker version is:
aCC: HP ANSI C++ B3910B A.01.21

find following dump on the xterm. it hangs at this place:
Using /opt/aCC/bin/aCC
/opt/aCC/bin/aCC -g -DXTFUNCPROTO -DFUNCPROTO -DSIGNATURE_MOTIF +nostl +inst_implicit_include +DA1.0 -DRW_MULTI_THREAD -DRWSTD_MULTI_THREAD -D_THREAD_SAFE -DRW_THR_OS_HPUX -DRW_THR_OS_VERSION_HPUX=0x1020 -DRW_THR_COMPILER_VERSION_HP_ACC=0x011500 -DRW_THR_CANT_EXTRACT_TEMPLATE_ARGS_FROM_SIGNATURE -DRW_NO_BOOL -I/tmserv/loadbuild/tm80/hpp10/tm80ag_hpp10/inc/versant -I/tmserv/loadbuild/tm80/hpp10/tm80ag_hpp10/inc/versant/cxxcls/template -I/home/bbagi/work/trail/inc/versant/cxxcls/template -I. -I/tmserv/loadbuild/tm80/hpp10/tm80ag_hpp10/inc/galaxy -I/tmserv/loadbuild/tm80/hpp10/tm80ag_hpp10/inc/orbix -I/tmserv/loadbuild/tm80/hpp10/tm80ag_hpp10/inc/versant -I/home/bbagi/work/trail/inc -I/tmserv/loadbuild/tm80/hpp10/tm80ag_hpp10/inc -I/home/bbagi/work/trail/inc/std -I/tmserv/loadbuild/tm80/hpp10/tm80ag_hpp10/inc/std -I/opt/aCC/include -I/opt/aCC/include/iostream -I/usr -I/usr/include -DDEBUG -DNEED_GNS_TO_DEFINE_MOB_MACROS -DCOMFUNCPROTO -DHPUX100 -DHPP100 -DRW_MULTI_THREAD -DRWSTD_MULTI_THREAD -D_THREAD_SAFE -D_REENTRANT -DRW_THR_OS_HPUX -DRW_THR_OS_VERSION_HPUX=0x1020 -DRW_THR_CANT_EXTRACT_TEMPLATE_ARGS_FROM_SIGNATURE -DRW_NO_BOOL +DA1.0 -DNONE_CLASH -c gnsxcore.cxx


Armin Kunaschik
Esteemed Contributor

Re: "ctcom" hogging more CPU %

The aCC compiler is known (at least to me) to
consume huge ressources in certain case.
But it looks like there are no memory leaks;
the ressources are freed as soon as compiling ends.

As long as it does not crash your machine do not care.
If you care, add more ressources (mem/cpu).

Be carefull with updating the compiler.
You need to update the aCC runtime on all
targets. And if you're lucky, HP changed some
header/library files and you need to check/change all your code.

My 2 cents,
Armin
And now for something completely different...
rick jones
Honored Contributor

Re: "ctcom" hogging more CPU %

Why are you compiling for PA1.0? PA 1.0 systems have not been supported since HP-UX 10.10. If you wanted a "portable" binary, that should be +DAportable.

Of course 10.20 is now officially obsolete as well. It _looks_ like this is a really old compiler on 10.X? There may be some later versions or patches on the DART CD but otherwise you may want to consider upgrading the OS and compilers to something much much newer.
there is no rest for the wicked yet the virtuous have no pillows