Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-19452

getconf _NPROCESSORS_ONLN could report incorrect cpu count in containers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.2.2
    • Fix Version/s: 6.4.18
    • Component/s: Init system
    • Labels:
      None

      Description

      When inside a container the number of cpus available should be determined with the

      nproc
      

      cmd and not the

      getconf _NPROCESSORS_ONLN
      

      cmd as that reports all phys cpus.
      This could be significant because the number of cpus is used to set the number of malloc arenas which can affect overall mem usage.

        Attachments

          Activity

            People

            • Assignee:
              mckellyln Mark Kelly
              Reporter:
              mckellyln Mark Kelly
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: