Add a new variable `no_turbo` to the cpu-partitioning-powersave profile to allow users to override the default behavior of disabling turbo mode.
31 lines
1.2 KiB
Text
31 lines
1.2 KiB
Text
# tuned configuration
|
|
#
|
|
|
|
[main]
|
|
summary=Optimize for CPU partitioning with additional powersave
|
|
include=cpu-partitioning
|
|
|
|
[variables]
|
|
# User is responsible for updating variables.conf with variable content such as isolated_cores=X-Y
|
|
include=/etc/tuned/cpu-partitioning-powersave-variables.conf
|
|
|
|
isolated_cores_assert_check = \\${isolated_cores}
|
|
# Make sure isolated_cores is defined before any of the variables that
|
|
# use it (such as assert1) are defined, so that child profiles can set
|
|
# isolated_cores directly in the profile (tuned.conf)
|
|
isolated_cores = ${isolated_cores}
|
|
# Fail if isolated_cores are not set
|
|
assert1=${f:assertion_non_equal:isolated_cores are set:${isolated_cores}:${isolated_cores_assert_check}}
|
|
|
|
max_power_state_assert_check = \\${max_power_state}
|
|
max_power_state = ${max_power_state}
|
|
|
|
# Fail if max_power_state is not set
|
|
assert2=${f:assertion_non_equal:max_power_state is set:${max_power_state}:${max_power_state_assert_check}}
|
|
|
|
[cpu]
|
|
force_latency=${max_power_state}
|
|
no_turbo=${no_turbo}
|
|
|
|
[bootloader]
|
|
cmdline_cpu_part=+nohz=on${cmd_isolcpus} nohz_full=${isolated_cores} rcu_nocbs=${isolated_cores} tuned.non_isolcpus=${not_isolated_cpumask} intel_pstate=passive nosoftlockup
|