patchcompile

 4 Replies
 0 Subscribed to this topic
 27 Subscribed to this forum
Sort:
Author
Messages
hsuhsen
Basic Member
Posts: 23
Basic Member
    Hi, I just installed some CTPs and the compile of 357 programs has taken 45 minutes so far and it's only on 253.  Any ideas on how to speed it up? I saw the KB article that says to point TMPDIR to a SAN disk, but I can't do that right now.  I'm running 9.0.1.5 env on Windows 2003.
    John Henley
    Posts: 3353
      A few things to understand about compiling.
      When Lawson "compiles" it's not only using the COBOL compiler, but it is first building a complete .cbl file from its various library code, and also updating the GEN metadata for all tables, fields, etc. used in the program. Assuming you have adequate CPUs, you can increase the number of concurrent compiles using qcontrol, e.g. to change to 8 compiles at a time:
      > qcontrol -jlocal,8
      I typically see on Windows servers that I can push it to two compiles per (physical) CPU.

      This sometimes results in deadlocks when updating the GEN tables, which leads to part two of the equation, which is making sure you have adequate bandwidth to the database, if it's on a different server. If changing the concurrent compiles helps, you just need to make sure that you recompile any programs that create .err files due to deadlock.
      Thanks for using the LawsonGuru.com forums!
      John
      John Henley
      Posts: 3353
        BTW, qcontrol is only temporary until the next time the compile queue is started.
        To make the change permanent, create queue.cfg in %LAWDIR%\system, with the entry:
        local, 8
        Thanks for using the LawsonGuru.com forums!
        John
        hsuhsen
        Basic Member
        Posts: 23
        Basic Member
          Thanks, John. I'll try qcontrol and see what happens next time I compile. I appreciate your response. Have a great weekend.
          John Henley
          Posts: 3353
            If you're still compiling, you can issue the qcontrol -jlocal,xxx command and it will take effect immediately.

            Thanks for using the LawsonGuru.com forums!
            John