patchcompile

Sort:
You are not authorized to post a reply.
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
    Senior Member
    Posts: 3348
    Senior Member
      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
      Senior Member
      Posts: 3348
      Senior Member
        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
          Senior Member
          Posts: 3348
          Senior Member
            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
            You are not authorized to post a reply.