physicalprocessorcount.rb

Path: lib/facter/physicalprocessorcount.rb
Last Update: Sat Feb 23 07:17:42 +0000 2019

Fact: physicalprocessorcount

Purpose: Return the number of physical processors.

Resolution:

  Uses the physicalprocessorcount key of the processors structured
  fact, which itself attempts to use sysfs to get the physical IDs of
  the processors and falls back to `/proc/cpuinfo` and `physical id` if
  sysfs is not available.

Caveats:

[Validate]