Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-56611

SCons -j should not affect ninja concurrency when not using icecream

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Server Development Platform

      When generating ninja, the -j will control the local pools depth. This is not intuitive, and gets obscured into the ninja file. At least, Ninja should be setting local pools to the available cores, and ignoring -j passed to scons during generation.

      Possibly another interface could be made for better control, like an SCon Var such as NINJA_LOCAL_JOBS, which limits local jobs in the generated ninja.

      Other things to consider regarding this aspect, is that custom pools could also be made allowing for more local concurrency. Should a generalized ninja tool try to handle this by setting pools to a proportion of the NINJA_LOCAL_JOBS or NINJA_MAX_JOBS?

      Also when ninja is limiting its jobs, its not obvious what is the current limit. Should a new target be made to easily extract this info? A build edge which echos the current pools and limits?

      ninja list_pools
      

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            daniel.moody@mongodb.com Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: