Skip to content

Commit 11b22fd

Browse files
Merge pull request #3024 from openshift-cherrypick-robot/cherry-pick-3022-to-release-4.17
[release-4.17] OCPBUGS-62715: ztp: cluster-compare now allows setting kernel.timer_migration=0 for non-RT kernels
2 parents d15b6ca + c08b580 commit 11b22fd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ztp/kube-compare-reference/required/node-tuning-operator/TunedPerformancePatch.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ spec:
1010
{{- if and (.spec.profile) (contains "max_perf_pct" (index .spec.profile 0).data) }}
1111
{{- $powersaveSysfs = "[sysfs]\n/sys/devices/system/cpu/intel_pstate/max_perf_pct=(?<max_perf_pct>[0-9]+)" }}
1212
{{- end }}
13+
{{- $timer_migration := "" }}
14+
{{- if and (.spec.profile) (contains "timer_migration=0" (index .spec.profile 0).data) }}
15+
{{- $timer_migration = "[sysctl]\nkernel.timer_migration=0" }}
16+
{{- end }}
1317
profile:
1418
- name: performance-patch
1519
# Please note:
@@ -32,6 +36,9 @@ spec:
3236
{{- if $powersaveSysfs }}
3337
{{- $powersaveSysfs | nindent 8 }}
3438
{{- end }}
39+
{{- if $timer_migration }}
40+
{{- $timer_migration | nindent 8 }}
41+
{{- end }}
3542
recommend:
3643
{{- range .spec.recommend }}
3744
- machineConfigLabels:

0 commit comments

Comments
 (0)