-
Notifications
You must be signed in to change notification settings - Fork 104
/
openshift-bootstrap-master_tuned.yaml
64 lines (64 loc) · 5.15 KB
/
openshift-bootstrap-master_tuned.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
creationTimestamp: null
name: openshift-node-performance-openshift-bootstrap-master
namespace: openshift-cluster-node-tuning-operator
labels:
performance.openshift.io/weak-owner-reference-name: "openshift-bootstrap-master"
spec:
profile:
- data: "[main]\nsummary=Openshift node optimized for deterministic performance
at the cost of increased power consumption, focused on low latency network performance.
Based on Tuned 2.11 and Cluster node tuning (oc 4.5)\ninclude=openshift-node,cpu-partitioning\n\n#
Inheritance of base profiles legend:\n# cpu-partitioning -> network-latency
-> latency-performance\n# https://github.com/redhat-performance/tuned/blob/master/profiles/latency-performance/tuned.conf\n#
https://github.com/redhat-performance/tuned/blob/master/profiles/network-latency/tuned.conf\n#
https://github.com/redhat-performance/tuned/blob/master/profiles/cpu-partitioning/tuned.conf\n\n#
All values are mapped with a comment where a parent profile contains them.\n#
Different values will override the original values in parent profiles.\n\n[variables]\n#>
isolated_cores take a list of ranges; e.g. isolated_cores=2,4-7\n\nisolated_cores=0-1\n\n\nnot_isolated_cores_expanded=${f:cpulist_invert:${isolated_cores_expanded}}\n\n\n[cpu]\n#>
latency-performance\n#> (override)\nforce_latency=cstate.id:1|3\ngovernor=performance\nenergy_perf_bias=performance\nmin_perf_pct=100\n\n\n\n[service]\nservice.stalld=start,enable\n\n\n[vm]\n#>
network-latency\ntransparent_hugepages=never\n\n\n[irqbalance]\n# Disable the
plugin entirely, which was enabled by the parent profile `cpu-partitioning`.\n#
It can be racy if TuneD restarts for whatever reason.\n#> cpu-partitioning\nenabled=false\n\n\n[scheduler]\nruntime=0\ngroup.ksoftirqd=0:f:11:*:ksoftirqd.*\ngroup.rcuc=0:f:11:*:rcuc.*\ngroup.ktimers=0:f:11:*:ktimers.*\nsched_migration_cost_ns=5000000\n\ndefault_irq_smp_affinity
= ignore\n\n\n[sysctl]\n\n#> cpu-partitioning #RealTimeHint\nkernel.hung_task_timeout_secs=600\n#>
cpu-partitioning #RealTimeHint\nkernel.nmi_watchdog=0\n#> RealTimeHint\nkernel.sched_rt_runtime_us=-1\n#>
cpu-partitioning #RealTimeHint\nvm.stat_interval=10\n\n# cpu-partitioning and
RealTimeHint for RHEL disable it (= 0)\n# OCP is too dynamic when partitioning
and needs to evacuate\n#> scheduled timers when starting a guaranteed workload
(= 1)\nkernel.timer_migration=1\n#> network-latency\n# TODO once rhbz#2120328
is solved: kernel.numa_balancing, net.core.busy_read and net.core.busy_poll
do not exist on RT kernels\nkernel.numa_balancing=0\nnet.core.busy_read=50\nnet.core.busy_poll=50\nnet.ipv4.tcp_fastopen=3\n\n#
If a workload mostly uses anonymous memory and it hits this limit, the entire\n#
working set is buffered for I/O, and any more write buffering would require\n#
swapping, so it's time to throttle writes until I/O can catch up. Workloads\n#
that mostly use file mappings may be able to use even higher values.\n#\n# The
generator of dirty data starts writeback at this percentage (system default\n#
is 20%)\n#> latency-performance\nvm.dirty_ratio=10\n\n# Start background writeback
(via writeback threads) at this percentage (system\n# default is 10%)\n#> latency-performance\nvm.dirty_background_ratio=3\n\n#
The swappiness parameter controls the tendency of the kernel to move\n# processes
out of physical memory and onto the swap disk.\n# 0 tells the kernel to avoid
swapping processes out of physical memory\n# for as long as possible\n# 100
tells the kernel to aggressively swap processes out of physical memory\n# and
move them to swap cache\n#> latency-performance\nvm.swappiness=10\n\n# also
configured via a sysctl.d file\n# placed here for documentation purposes and
commented out due\n# to a tuned logging bug complaining about duplicate sysctl:\n#
\ https://issues.redhat.com/browse/RHEL-18972\n#> rps configuration\n# net.core.rps_default_mask=${not_isolated_cpumask}\n\n\n[selinux]\n#>
Custom (atomic host)\navc_cache_threshold=8192\n\n\n[net]\nnf_conntrack_hashsize=131072\n\n\n[bootloader]\n#
set empty values to disable RHEL initrd setting in cpu-partitioning\ninitrd_remove_dir=\ninitrd_dst_img=\ninitrd_add_dir=\n\n#
overrides cpu-partitioning cmdline\ncmdline_cpu_part=+nohz=on rcu_nocbs=${isolated_cores}
tuned.non_isolcpus=${not_isolated_cpumask} systemd.cpu_affinity=${not_isolated_cores_expanded}
intel_iommu=on iommu=pt\n\n\ncmdline_isolation=+isolcpus=managed_irq,${isolated_cores}\n\n\n\ncmdline_realtime=+nohz_full=${isolated_cores}
tsc=reliable nosoftlockup nmi_watchdog=0 mce=off skew_tick=1 rcutree.kthread_prio=11\n\n\n\n\n\n\n
\n\n\n\n\ncmdline_pstate=+intel_pstate=disable\n\n\n[rtentsk]\n"
name: openshift-node-performance-openshift-bootstrap-master
recommend:
- machineConfigLabels:
machineconfiguration.openshift.io/role: master
operand:
tunedConfig:
reapply_sysctl: null
priority: 20
profile: openshift-node-performance-openshift-bootstrap-master
status: {}