Fact: physicalprocessorcount
Purpose: Return the number of physical processors.
Resolution:
Attempts to use sysfs to get the physical IDs of the processors. Falls back to /proc/cpuinfo and "physical id" if sysfs is not available.
Caveats: