realtime: added assertion to check whether isolated_cores contains present CPUs
Resolves: rhbz#1264128 Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
99a600b1eb
commit
07d63a8fb0
3 changed files with 13 additions and 0 deletions
|
|
@ -10,6 +10,10 @@ include=realtime
|
|||
# User is responsible for adding isolated_cores=X-Y to realtime-virtual-guest-variables.conf
|
||||
include=/etc/tuned/realtime-virtual-guest-variables.conf
|
||||
isolated_cores_expanded=${f:cpulist_unpack:${isolated_cores}}
|
||||
isolated_cores_present_expanded=${f:cpulist_present:${isolated_cores}}
|
||||
|
||||
# Fail if isolated_cores contains CPUs which are not present
|
||||
assert=${f:assertion:non present CPU(s) in isolated_cores:${isolated_cores_expanded}:${isolated_cores_present_expanded}}
|
||||
|
||||
[script]
|
||||
script=script.sh
|
||||
|
|
|
|||
|
|
@ -27,6 +27,10 @@ include=realtime
|
|||
# User is responsible for adding isolated_cores=X-Y to realtime-virtual-host-variables.conf
|
||||
include=/etc/tuned/realtime-virtual-host-variables.conf
|
||||
isolated_cores_expanded=${f:cpulist_unpack:${isolated_cores}}
|
||||
isolated_cores_present_expanded=${f:cpulist_present:${isolated_cores}}
|
||||
|
||||
# Fail if isolated_cores contains CPUs which are not present
|
||||
assert=${f:assertion:non present CPU(s) in isolated_cores:${isolated_cores_expanded}:${isolated_cores_present_expanded}}
|
||||
|
||||
[scheduler]
|
||||
# group.group_name=rule_priority:scheduler_policy:scheduler_priority:core_affinity_in_hex:process_name_regex
|
||||
|
|
|
|||
|
|
@ -12,6 +12,11 @@ include = network-latency
|
|||
include = /etc/tuned/realtime-variables.conf
|
||||
# Non-isolated cores cpumask including offline cores
|
||||
not_isolated_cpumask = ${f:cpulist2hex_invert:${isolated_cores}}
|
||||
isolated_cores_expanded=${f:cpulist_unpack:${isolated_cores}}
|
||||
isolated_cores_present_expanded=${f:cpulist_present:${isolated_cores}}
|
||||
|
||||
# Fail if isolated_cores contains CPUs which are not present
|
||||
assert=${f:assertion:non present CPU(s) in isolated_cores:${isolated_cores_expanded}:${isolated_cores_present_expanded}}
|
||||
|
||||
[sysctl]
|
||||
kernel.hung_task_timeout_secs = 600
|
||||
|
|
|
|||
Loading…
Reference in a new issue