From: Grant Slater Date: Wed, 6 Jul 2022 13:45:55 +0000 (+0300) Subject: hardware: set CPU Energy-Performance Bias to performance X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/6eea372ea8f7d70bc61c188c8ab236438a39faa6 hardware: set CPU Energy-Performance Bias to performance --- diff --git a/cookbooks/hardware/attributes/default.rb b/cookbooks/hardware/attributes/default.rb index d86e0347e..484c3987f 100644 --- a/cookbooks/hardware/attributes/default.rb +++ b/cookbooks/hardware/attributes/default.rb @@ -57,3 +57,8 @@ if File.exist?("/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor") && default[:sysfs][:cpufreq_ondemand][:parameters][:"devices/system/cpu/cpufreq/ondemand/up_threshold"] = "25" default[:sysfs][:cpufreq_ondemand][:parameters][:"devices/system/cpu/cpufreq/ondemand/sampling_down_factor"] = "100" end + +if File.exist?("/sys/devices/system/cpu/cpu0/power/energy_perf_bias") + default[:sysfs][:cpu_power_energy_perf_bias][:comment] = "Set CPU Energy-Performance Bias Preference to performance" + default[:sysfs][:cpu_power_energy_perf_bias][:parameters][:"devices/system/cpu/cpu*/power/energy_perf_bias"] = "0" +end \ No newline at end of file