AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  C Compiler massively slow

    Posted Mon May 29, 2006 06:27 PM

    Originally posted by: SystemAdmin


    Hi out there,
    I'm not an AIX developer, just trying to port some apps from AIX 5.2 to
    new machines (P570) running AIX 5.3. The compiler (cc, xlc) seems to be
    running at less than 1/10 the expected speed (compile takes 11 hours
    on the new machine as opposed to 2 hours on the old machine). I see
    the machine running at [b] 0% idle [/b], with only approx [b]10% CPU [/b]
    used for compile, and nothing else worth mentioning running on the machine.

    I remember another case where this was caused by the compiler not
    being properly licensed. Does this ring a bell with anyone?

    Thanks for any help!
    #AIX-Forum


  • 2.  Re: C Compiler massively slow

    Posted Tue May 30, 2006 12:30 AM

    Originally posted by: rok_aix


    Hi.

    Why don't you compare numperm value of two machine.
    In my thought, your compile need to open many many files.
    In that case, AIX need more file cache for it.
    But if there is setted strict maxperm value to 1 in new machine, your compile must to be slow.

    good day.
    #AIX-Forum


  • 3.  Re: C Compiler massively slow

    Posted Tue May 30, 2006 05:45 AM

    Originally posted by: SystemAdmin


    The values of the old Host:
    1. vmo -a |grep perm
    minperm% = 10
    minperm = 200927
    maxperm% = 20
    maxperm = 401855
    strict_maxperm = 0

    The values of the new Host:
    1. vmo -a |grep perm
    maxperm = 744259
    maxperm% = 50
    minperm = 148849
    minperm% = 10
    strict_maxperm = 0

    So that is nearly the same....
    #AIX-Forum


  • 4.  Have you licenced the compiler?

    Posted Tue May 30, 2006 04:31 PM

    Originally posted by: nagger


    If you are running the compiler without a licence, then you will be hitting a timeout looking for the licence for every file.
    I forget the timeout length but it is someting like 20 seconds for every file and will hit compile times very heavily.

    Have you tried compiling a "hello world" prog and read any warnings or messages?

    Also, are you running the latest Maintenance Level of AIX 5.3 i.e. ML04?
    Next, are you running in a logical partition ? If yes what is the CPU, Entitlement and is it capped? This can limit the speed you are running out. You may be comparing a whole CPU to just 10% of one CPU on the p570.
    #AIX-Forum


  • 5.  Re: Have you licenced the compiler?

    Posted Wed May 31, 2006 02:36 AM

    Originally posted by: SystemAdmin


    Hi,

    Compile the HelloWorld is not giving any errors....

    # cc HelloWorld.c -o HelloWorld
    # ll H*
    -rw-r--r-- 1 root system 97 May 29 12:04 HelloWorld.c
    -rwxr-xr-x 1 root system 4423 May 31 07:23 HelloWorld
    # ./HelloWorld
    Hello World!
    #

    After this i get the tip from IBM to isert an extra compile opion: -qnolm
    (so no license file checking)
    And now it goes 2x as fast.... but still too slow....
    Instead of 2 hours it takes now 6 hours....

    The New host has 4 virtual proccessors and multithreading (so 8 procecessors visable), and we are using 0,4 CPU = 2.0 RPerf)
    (We are using capped mode, min. procs=0.1;max=1 procs, current 0,4 procs)
    Name: PowerPC,POWER5 (1.9 GHz POWER5+ Processor)
    Node: PowerPC,POWER5@0
    Device Type: cpu

    The Old Host has 8 CPU (8 x P3 262 MHz = 2.0 Rperf)
    Name: PowerPC,RS64-II
    Node: PowerPC,RS64-II@0
    Device Type: cpu

    1. oslevel -r
    5300-04

    Greetings
    Peter

    #AIX-Forum