46 lines
1.6 KiB
Text
46 lines
1.6 KiB
Text
# tuned configuration
|
|
#
|
|
# Red Hat Enterprise Linux for Real Time Documentation:
|
|
# https://docs.redhat.com
|
|
|
|
[main]
|
|
summary=Optimize for realtime workloads
|
|
include = network-latency
|
|
|
|
[variables]
|
|
# User is responsible for updating variables.conf with variable content such as isolated_cores=X-Y
|
|
include = /etc/tuned/realtime-variables.conf
|
|
|
|
isolated_cores_assert_check = \\${isolated_cores}
|
|
# Fail if isolated_cores are not set
|
|
assert1=${f:assertion_non_equal:isolated_cores are set:${isolated_cores}:${isolated_cores_assert_check}}
|
|
|
|
# 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
|
|
assert2=${f:assertion:isolated_cores contains present CPU(s):${isolated_cores_expanded}:${isolated_cores_present_expanded}}
|
|
|
|
[sysctl]
|
|
kernel.hung_task_timeout_secs = 600
|
|
kernel.nmi_watchdog = 0
|
|
kernel.sched_rt_runtime_us = -1
|
|
vm.stat_interval = 10
|
|
kernel.timer_migration = 0
|
|
|
|
[sysfs]
|
|
/sys/bus/workqueue/devices/writeback/cpumask = ${not_isolated_cpumask}
|
|
/sys/devices/virtual/workqueue/cpumask = ${not_isolated_cpumask}
|
|
/sys/devices/system/machinecheck/machinecheck*/ignore_ce = 1
|
|
|
|
[bootloader]
|
|
# lscpu | grep ^NUMA
|
|
# NUMA node0 CPU(s): 0,2,4,6,8,10,12,14,16,18,20,22
|
|
# NUMA node1 CPU(s): 1,3,5,7,9,11,13,15,17,19,21,23
|
|
|
|
cmdline=isolcpus=${isolated_cores} intel_pstate=disable nosoftlockup
|
|
|
|
[script]
|
|
script = ${i:PROFILE_DIR}/script.sh
|