Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-8216

`os::cpus()` will return incorrect result on machines with > 64 CPUs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • stout
    • None
    • Windows

    Description

      From Akash:

      Just realized this, but I don't think function works if your machine has > 64 CPUs. It calls GetSystemInfo, which returns the cpus of the "current" group, which is 64 max. Call GetMaximumProcessorCount(ALL_PROCESSOR_GROUPS) to get the right number. There was a bug fix in python with a similar issue to this: https://github.com/python/cpython/commit/c67bae04780f9d7590f9f91b4ee5f31c5d75b3c3

      Attachments

        Activity

          People

            Unassigned Unassigned
            andschwa Andrew Schwartzmeyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: