This discussion is archived
2 Replies Latest reply: Dec 27, 2012 1:10 AM by 973976 RSS

Performence issue with Solaris 12.3 compiler

973976 Newbie
Currently Being Moderated
Hi

We have started using Solaris 12.3 compiler but having issues with its performance. With Old Compiler (CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25) the whole build process complete in less than 3 hours but with Solaris 12.3 compiler its taking 15 hours. I was able to narrow down to a module which was taking around 13 hours. I compared time taken to compile each file in this module , on an average compiler is taking 8 minutes to compile each file where as old compiler takes 40 sec(there are around 110 cpp files in this module)

I started investigating thinking that its a disk/clearcase issue but IT department said that there no issue with either of them. I started looking at the steps in compiling each file and found that ccfe takes 95% of time. Below is the time taken by each step in compiling a single C++ file. Also verified that ulimit is unlimited for all properties. Any idea how to proceed further,any pointer?

Tuesday, December 25, 2012 09:54:50 PM IST
/opt/solarisstudio12.3/prod/bin/ccfe -xarch=v9 -D__SunOS_5_11 -D__SUNPRO_CC=0x5120 -D__unix -D__SVR4 -D__sun -D__SunOS -D__sparcv9 -D__sparc -D_LP64 -D__LP64__ -D__BUILTIN_VA_ARG_INCR -Dunix -Dsun -Dsparc -D_REENTRANT -D__SUN_PREFETCH -D__SUNPRO_CC_COMPAT=5 -I. -I../../fmks/Basic -I../../fmks/idls -I../../fmks/Comp -I../../fmks/cont -I../../components/immolap/idl -I../../components/immolap/src -I../../components/cos -I../../components/metadata/interface -I../../components/QCube/idl -I../../components/xds/interface -I../../components/olapxds/interface -I./idl -I../../fmks/Init -I../../components/metadata/common -I../../components/QCube/lua/include -I../../components/QCube/lua/tolua/include -I../../components/QCube/lua/src -I../../../TAO/TAO-1.5/ACE_wrappers -I../../../TAO/TAO-1.5/ACE_wrappers/TAO -I../../../TAO/TAO-1.5/ACE_wrappers/TAO/orbsvcs -I/opt/8.0-stack/SmartHeap_8.1smp/include -I-xbuiltin -I/opt/solarisstudio12.3/prod/include/CC/Cstd -I/opt/solarisstudio12.3/prod/include/CC -I/opt/solarisstudio12.3/prod/include/cc -DGENERATED_BUILD_CPP -DBUILD_MODE_RO -DDM_USE_STL -DCORBA_TAO -DBITS64 -DSOLARIS -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS_BITS64 -DCORBA_TAO -D_MBCS -DIMMOLAP_BUILD_DLL -DQCUBE_EXPORTS -D_COS_ENABLE_ -D_USRDLL -D_WINDOWS -D__NO_NAMESPACE__ -D__WINNT__ -DI2_TAO_SOL -DACE_HAS_EXCEPTIONS -D__MATHERR_ERRNO_DONTCARE -DSMARTHEAP -DSOLTHREADS -D__solaris -ptf /tmp/ccfe.04.%1.%2 -features=no%conststrings -template=%none -ptx /opt/solarisstudio12.3/prod/bin/CC -ptk -O2 -features=no%conststrings -template=no%extdef -xcode=pic32 -mt=yes -m64 -xlibmieee -DGENERATED_BUILD_CPP -DBUILD_MODE_RO -DDM_USE_STL -DCORBA_TAO -DBITS64 -DSOLARIS -erroff=%all -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS_BITS64 -DCORBA_TAO -D_MBCS -DIMMOLAP_BUILD_DLL -DQCUBE_EXPORTS -D_COS_ENABLE_ -D_USRDLL -D_WINDOWS -D__NO_NAMESPACE__ -D__WINNT__ -DI2_TAO_SOL -DACE_HAS_EXCEPTIONS -xO5 -xtarget=native -xdepend=yes -xmemalign=8s -fsimple=2 -fns=yes -ftrap=%none -xlibmil -xlibmopt -xbuiltin=%all -D__MATHERR_ERRNO_DONTCARE -DSMARTHEAP -DSOLTHREADS -D__solaris -I. -I../../fmks/Basic -I../../fmks/idls -I../../fmks/Comp -I../../fmks/cont -I../../components/immolap/idl -I../../components/immolap/src -I../../components/cos -I../../components/metadata/interface -I../../components/QCube/idl -I../../components/xds/interface -I../../components/olapxds/interface -I./idl -I../../fmks/Init -I../../components/metadata/common -I../../components/QCube/lua/include -I../../components/QCube/lua/tolua/include -I../../components/QCube/lua/src -I../../../TAO/TAO-1.5/ACE_wrappers -I../../../TAO/TAO-1.5/ACE_wrappers/TAO -I../../../TAO/TAO-1.5/ACE_wrappers/TAO/orbsvcs -I/opt/8.0-stack/SmartHeap_8.1smp/include -dryrun -c -compat=5 -instlib=/opt/solarisstudio12.3/prod/lib/v9/libCstd.a -xdbggen=no%stabs+dwarf2+usedonly -xmemalign=8s -xF=%none -xbuiltin=%all -pic -xldscope=global -xivdep=loop -xdepend -O5 -erroff=%all src/QCubeRepMeasureDim.cpp -ptb src/QCubeRepMeasureDim.o -o /tmp/ccfe.01.ir -s /tmp/ccfe.02.sd
Tuesday, December 25, 2012 10:02:41 PM IST
/opt/solarisstudio12.3/prod/bin/iropt -Qy -O5 -xarch=sparc4 -m64 -xchip=T4 -xcache=16/32/4:128/32/8:4096/64/16 -fsimple=2 -depend -mt -k -ftrap=%none -fns -xbuiltin=%all -xlibmopt -xprefetch=auto,explicit -xprefetch_level=1 -xprefetch_auto_type=no%indirect_array_access -xvector=no%lib -F -o /tmp/iropt.05.ir -is /tmp/ccfe.02.sd /tmp/ccfe.01.ir
Tuesday, December 25, 2012 10:02:43 PM IST
Tuesday, December 25, 2012 10:02:43 PM IST
Tuesday, December 25, 2012 10:02:43 PM IST
Tuesday, December 25, 2012 10:02:43 PM IST
/opt/solarisstudio12.3/prod/bin/stdlibfilt -stderr
Tuesday, December 25, 2012 10:02:43 PM IST
Tuesday, December 25, 2012 10:02:43 PM IST
/opt/solarisstudio12.3/prod/bin/cg -Qy -fsimple=2 -O5 -xarch=sparc4 -m64 -xchip=T4 -xcache=16/32/4:128/32/8:4096/64/16 -il /opt/solarisstudio12.3/prod/lib/sparc4/64/libm.il -comdat -ftrap=%none -fns -xbuiltin=%all -xcode=pic32 -xannotate=yes -xlibmopt -xmemalign=8s -xprefetch=auto,explicit -xprefetch_level=1 -xprefetch_auto_type=no%indirect_array_access -xthreadvar=dynamic -xvector=no -mt -oo src/QCubeRepMeasureDim.o -ir /tmp/iropt.05.ir -is /tmp/ccfe.02.sd
Tuesday, December 25, 2012 10:02:48 PM IST
Tuesday, December 25, 2012 10:02:48 PM IST
  • 1. Re: Performence issue with Solaris 12.3 compiler
    SFV Newbie
    Currently Being Moderated
    Is it the same source that takes 3 hours with 5.9 and 15 hours with 12.3?
    Can you run the compilation under time/ptime and verify that it is 'user' time, not 'system' (i.e it is the compiler itself and not file system or something like that).

    In general it is not unusual for C++ frontend to take majority of compilation time, especially on a template-heavy code that requires substantial compile-time evaluation.

    However the x5+ difference between 5.9 and 5.13 is troubling.
    By any chance do you have an Oracle support contract to file the bug?

    regards,
    __Fedor.
  • 2. Re: Performence issue with Solaris 12.3 compiler
    973976 Newbie
    Currently Being Moderated
    Hi __Fedor.

    Just to check i compiled the same code base on same machine with 5.9 compiler and it completed in expected time (3 hours).
    I am convinced that there is some issue with 5.13 compiler. I will check with IT department to see whether we have any support contract for studio, we do have support contract for Oracle.

    For now i am trying to find some work around or way to make compiling faster, maximum time allowed by our build system is 8 hours after which build is automatically killed. Please let me know if you any idea (may be some compiler switch). I tried -fast but had no effect.

    thanks
    Nayeem Khan

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points