| This processor speed is extracted differently for x86 and power architectures. On Facter 3, for x86, it's read from /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq. This is the maximum frequency the processor can achieve. On the other hand, for power architecture, the speed is read from /proc/cpuinfo, the `clock` attribute. From what I saw, this is the processor's current speed. The only info I found, backing this up is here: https://comp.os.linux.powerpc.narkive.com/LKZEgCMF/proc-cpuinfo. On Facter 4, for both architectures, the speed is read from /proc/cpuinfo, the `clock` and `cpu MHz` attributes. They both represent the actual processor frequency, not the maximum frequency. The Facter documentation states that `processor.speed` is the processor speed. So we don't know if that's the current or the maximum speed. In conclusion, I think that the Facter 4's implementation is the best because it's consistent, offering the actual speed for both architectures. |