69365bb834
Integrates the following host configuration into the configuration framework: - Host boot parameters - CPU reservation - Process affinity - Memory huge page allocations Change-Id: I2259e0e93eefd5ce5000271fa32ecaa8d13fa411 Signed-off-by: Matt Peters <matt.peters@windriver.com>
5 lines
179 B
Ruby
5 lines
179 B
Ruby
# Returns number of logical cpus
|
|
Facter.add(:number_of_logical_cpus) do
|
|
setcode "cat /proc/cpuinfo 2>/dev/null | awk '/^[pP]rocessor/ { n +=1 } END { print (n>0) ? n : 1}'"
|
|
end
|