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

Add SystemInfo::numAvailableCores

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.3.3
    • Component/s: Portability
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Platforms 10 (02/19/16), Platforms 11 (03/11/16)

      Description

      SystemInfo::numCores is less useful than might be desired, because many forms of process management can limit access to a subset of total cores. This causes us to scale certain internal subsystems at suboptimal levels by assuming more processing than we actually have available.

      It would useful to have a new value available, perhaps numAvailableCores, which would return a num <= ::numCores.

      Consider the implementation of gnu nproc and investigate if a portable solution exists.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              waley.chen Waley Chen
              Reporter:
              jason.carey Jason Carey
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: