Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-33078

SysInfo.pm reports incorrect CPU count on macOS

Details

    Description

      The SysInfo.pm module relies on /proc/cpuinfo to determine core count, but of course macOS does not implement the proc filesystem. There are other ways to reliably determine the number of cpus or cores on macOS.

      Attachments

        Issue Links

          Activity

            Gosselin Dave Gosselin added a comment -

            Naturally this affects the --parallel option for mtr. Regardless of core count, the module reports just one cpu.

            Gosselin Dave Gosselin added a comment - Naturally this affects the --parallel option for mtr. Regardless of core count, the module reports just one cpu.
            danblack Daniel Black added a comment - https://github.com/dkechag/System-CPU/blob/master/lib/System/CPU.pm#L227
            Gosselin Dave Gosselin added a comment -

            % sysctl -n hw.ncpu
            8
            

            Gosselin Dave Gosselin added a comment - % sysctl -n hw.ncpu 8
            danblack Daniel Black added a comment -

            good. Feel free to push to 10.5 if desired.

            danblack Daniel Black added a comment - good. Feel free to push to 10.5 if desired.
            danblack Daniel Black added a comment -

            merged to 10.5

            danblack Daniel Black added a comment - merged to 10.5

            People

              Gosselin Dave Gosselin
              Gosselin Dave Gosselin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.