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

Use all available CPU cores for scons in compilation tasks

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Correctness
    • Dev Tools 2020-04-06

    Description

      Currently we use two evergreen global expansion variables to limit the amount the number of CPU cores SCons will use in compile tasks. In particular:

      num_scons_link_jobs_available: "0.25"
      num_scons_unit_cc_jobs_available: "0.75"
      

      We only use 25% of available cores for link jobs and 75% for cc jobs.

      I run a patch with those two variables set to 1 and all compile tasks in all variants simply succeeded without issues.

      I think that rather than limiting by default the number of cores, we should instead use all cores by default and cap the number of jobs only in the variants that hit Out of memory limit. (e.g. here)

      Attachments

        Activity

          People

            Unassigned Unassigned
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: