profiles: added check for unset isolated_cores
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
1623ac4a85
commit
6c3fd2b79e
4 changed files with 16 additions and 4 deletions
|
|
@ -8,6 +8,10 @@ include=network-latency
|
||||||
[variables]
|
[variables]
|
||||||
# User is responsible for updating variables.conf with variable content such as isolated_cores=X-Y
|
# User is responsible for updating variables.conf with variable content such as isolated_cores=X-Y
|
||||||
include=/etc/tuned/cpu-partitioning-variables.conf
|
include=/etc/tuned/cpu-partitioning-variables.conf
|
||||||
|
|
||||||
|
# Fail if isolated_cores are not set
|
||||||
|
assert1=${f:assertion_non_equal:isolated_cores are not set:${isolated_cores}:\\${isolated_cores}}
|
||||||
|
|
||||||
# tmpdir
|
# tmpdir
|
||||||
tmpdir=${f:exec:/usr/bin/mktemp:-d}
|
tmpdir=${f:exec:/usr/bin/mktemp:-d}
|
||||||
# Non-isolated cores cpumask including offline cores
|
# Non-isolated cores cpumask including offline cores
|
||||||
|
|
@ -19,7 +23,7 @@ not_isolated_cores_present_expanded=${f:cpulist_present:${not_isolated_cores_exp
|
||||||
not_isolated_cpumask=${f:cpulist2hex:${not_isolated_cores_expanded}}
|
not_isolated_cpumask=${f:cpulist2hex:${not_isolated_cores_expanded}}
|
||||||
|
|
||||||
# Fail if isolated_cores contains CPUs which are not present
|
# Fail if isolated_cores contains CPUs which are not present
|
||||||
assert=${f:assertion:isolated_cores contains present CPU(s):${isolated_cores_expanded}:${isolated_cores_present_expanded}}
|
assert2=${f:assertion:isolated_cores contains present CPU(s):${isolated_cores_expanded}:${isolated_cores_present_expanded}}
|
||||||
|
|
||||||
[sysctl]
|
[sysctl]
|
||||||
kernel.hung_task_timeout_secs = 600
|
kernel.hung_task_timeout_secs = 600
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,15 @@ include=realtime
|
||||||
[variables]
|
[variables]
|
||||||
# User is responsible for adding isolated_cores=X-Y to realtime-virtual-guest-variables.conf
|
# User is responsible for adding isolated_cores=X-Y to realtime-virtual-guest-variables.conf
|
||||||
include=/etc/tuned/realtime-virtual-guest-variables.conf
|
include=/etc/tuned/realtime-virtual-guest-variables.conf
|
||||||
|
|
||||||
|
# Fail if isolated_cores are not set
|
||||||
|
assert1=${f:assertion_non_equal:isolated_cores are not set:${isolated_cores}:\\${isolated_cores}}
|
||||||
|
|
||||||
isolated_cores_expanded=${f:cpulist_unpack:${isolated_cores}}
|
isolated_cores_expanded=${f:cpulist_unpack:${isolated_cores}}
|
||||||
isolated_cores_present_expanded=${f:cpulist_present:${isolated_cores}}
|
isolated_cores_present_expanded=${f:cpulist_present:${isolated_cores}}
|
||||||
|
|
||||||
# Fail if isolated_cores contains CPUs which are not present
|
# Fail if isolated_cores contains CPUs which are not present
|
||||||
assert=${f:assertion:isolated_cores contains present CPU(s):${isolated_cores_expanded}:${isolated_cores_present_expanded}}
|
assert2=${f:assertion:isolated_cores contains present CPU(s):${isolated_cores_expanded}:${isolated_cores_present_expanded}}
|
||||||
|
|
||||||
[script]
|
[script]
|
||||||
script=${i:PROFILE_DIR}/script.sh
|
script=${i:PROFILE_DIR}/script.sh
|
||||||
|
|
|
||||||
|
|
@ -26,11 +26,15 @@ include=realtime
|
||||||
[variables]
|
[variables]
|
||||||
# User is responsible for adding isolated_cores=X-Y to realtime-virtual-host-variables.conf
|
# User is responsible for adding isolated_cores=X-Y to realtime-virtual-host-variables.conf
|
||||||
include=/etc/tuned/realtime-virtual-host-variables.conf
|
include=/etc/tuned/realtime-virtual-host-variables.conf
|
||||||
|
|
||||||
|
# Fail if isolated_cores are not set
|
||||||
|
assert1=${f:assertion_non_equal:isolated_cores are not set:${isolated_cores}:\\${isolated_cores}}
|
||||||
|
|
||||||
isolated_cores_expanded=${f:cpulist_unpack:${isolated_cores}}
|
isolated_cores_expanded=${f:cpulist_unpack:${isolated_cores}}
|
||||||
isolated_cores_present_expanded=${f:cpulist_present:${isolated_cores}}
|
isolated_cores_present_expanded=${f:cpulist_present:${isolated_cores}}
|
||||||
|
|
||||||
# Fail if isolated_cores contains CPUs which are not present
|
# Fail if isolated_cores contains CPUs which are not present
|
||||||
assert=${f:assertion:isolated_cores contains present CPU(s):${isolated_cores_expanded}:${isolated_cores_present_expanded}}
|
assert2=${f:assertion:isolated_cores contains present CPU(s):${isolated_cores_expanded}:${isolated_cores_present_expanded}}
|
||||||
|
|
||||||
[scheduler]
|
[scheduler]
|
||||||
# group.group_name=rule_priority:scheduler_policy:scheduler_priority:core_affinity_in_hex:process_name_regex
|
# group.group_name=rule_priority:scheduler_policy:scheduler_priority:core_affinity_in_hex:process_name_regex
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ include = network-latency
|
||||||
include = /etc/tuned/realtime-variables.conf
|
include = /etc/tuned/realtime-variables.conf
|
||||||
|
|
||||||
# Fail if isolated_cores are not set
|
# Fail if isolated_cores are not set
|
||||||
assert1=${f:assertion_non_equal:isolated_cores unset:${isolated_cores}:\${isolated_cores}}
|
assert1=${f:assertion_non_equal:isolated_cores are not set:${isolated_cores}:\\${isolated_cores}}
|
||||||
|
|
||||||
# Non-isolated cores cpumask including offline cores
|
# Non-isolated cores cpumask including offline cores
|
||||||
not_isolated_cpumask = ${f:cpulist2hex_invert:${isolated_cores}}
|
not_isolated_cpumask = ${f:cpulist2hex_invert:${isolated_cores}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue