Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-30

Add a $(sys.cpusockets) variable

    XMLWordPrintable

    Details

    • Complexity:
      XS

      Description

      On Red Hat Linux, the licensing costs depend on the number of physical CPU sockets on the system. Oracle also uses per-socket licensing. In light of this it would be helpful to have a $(sys.cpusockets) environment detection variable to complement the $(sys.cpus) variable which counts physical and virtual (hyperthread) cores, rather than physical sockets.

      On Linux, the /proc/cpuinfo file lists physical ID numbers, so:

      grep "physical id" /proc/cpuinfo | sort -u | wc -l

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mvpel Michael Pelletier
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel