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

Use all available CPU cores for scons in compilation tasks

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Build

      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)

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

              Created:
              Updated: