Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../usr/lib/tuned/throughp...
File: tuned.conf
#
[0] Fix | Delete
# tuned configuration
[1] Fix | Delete
#
[2] Fix | Delete
[3] Fix | Delete
[main]
[4] Fix | Delete
summary=Broadly applicable tuning that provides excellent performance across a variety of common server workloads
[5] Fix | Delete
[6] Fix | Delete
[variables]
[7] Fix | Delete
thunderx_cpuinfo_regex=CPU part\s+:\s+(0x0?516)|(0x0?af)|(0x0?a[0-3])|(0x0?b8)\b
[8] Fix | Delete
amd_cpuinfo_regex=model name\s+:.*\bAMD\b
[9] Fix | Delete
[10] Fix | Delete
[cpu]
[11] Fix | Delete
governor=performance
[12] Fix | Delete
energy_perf_bias=performance
[13] Fix | Delete
min_perf_pct=100
[14] Fix | Delete
energy_performance_preference=performance
[15] Fix | Delete
[16] Fix | Delete
[acpi]
[17] Fix | Delete
platform_profile=performance
[18] Fix | Delete
[19] Fix | Delete
# Marvell ThunderX
[20] Fix | Delete
[vm.thunderx]
[21] Fix | Delete
type=vm
[22] Fix | Delete
uname_regex=aarch64
[23] Fix | Delete
cpuinfo_regex=${thunderx_cpuinfo_regex}
[24] Fix | Delete
transparent_hugepages=never
[25] Fix | Delete
[26] Fix | Delete
[disk]
[27] Fix | Delete
# The default unit for readahead is KiB. This can be adjusted to sectors
[28] Fix | Delete
# by specifying the relevant suffix, eg. (readahead => 8192 s). There must
[29] Fix | Delete
# be at least one space between the number and suffix (if suffix is specified).
[30] Fix | Delete
readahead=>4096
[31] Fix | Delete
[32] Fix | Delete
[sysctl]
[33] Fix | Delete
# If a workload mostly uses anonymous memory and it hits this limit, the entire
[34] Fix | Delete
# working set is buffered for I/O, and any more write buffering would require
[35] Fix | Delete
# swapping, so it's time to throttle writes until I/O can catch up. Workloads
[36] Fix | Delete
# that mostly use file mappings may be able to use even higher values.
[37] Fix | Delete
#
[38] Fix | Delete
# The generator of dirty data starts writeback at this percentage (system default
[39] Fix | Delete
# is 20%)
[40] Fix | Delete
vm.dirty_ratio = 40
[41] Fix | Delete
[42] Fix | Delete
# Start background writeback (via writeback threads) at this percentage (system
[43] Fix | Delete
# default is 10%)
[44] Fix | Delete
vm.dirty_background_ratio = 10
[45] Fix | Delete
[46] Fix | Delete
# PID allocation wrap value. When the kernel's next PID value
[47] Fix | Delete
# reaches this value, it wraps back to a minimum PID value.
[48] Fix | Delete
# PIDs of value pid_max or larger are not allocated.
[49] Fix | Delete
#
[50] Fix | Delete
# A suggested value for pid_max is 1024 * <# of cpu cores/threads in system>
[51] Fix | Delete
# e.g., a box with 32 cpus, the default of 32768 is reasonable, for 64 cpus,
[52] Fix | Delete
# 65536, for 4096 cpus, 4194304 (which is the upper limit possible).
[53] Fix | Delete
#kernel.pid_max = 65536
[54] Fix | Delete
[55] Fix | Delete
# The swappiness parameter controls the tendency of the kernel to move
[56] Fix | Delete
# processes out of physical memory and onto the swap disk.
[57] Fix | Delete
# 0 tells the kernel to avoid swapping processes out of physical memory
[58] Fix | Delete
# for as long as possible
[59] Fix | Delete
# 100 tells the kernel to aggressively swap processes out of physical memory
[60] Fix | Delete
# and move them to swap cache
[61] Fix | Delete
vm.swappiness=10
[62] Fix | Delete
[63] Fix | Delete
# The default kernel value 128 was over twenty years old default,
[64] Fix | Delete
# kernel-5.4 increased it to 4096, thus do not have it lower than 2048
[65] Fix | Delete
# on older kernels
[66] Fix | Delete
net.core.somaxconn=>2048
[67] Fix | Delete
[68] Fix | Delete
[scheduler]
[69] Fix | Delete
runtime=0
[70] Fix | Delete
# ktune sysctl settings for rhel6 servers, maximizing i/o throughput
[71] Fix | Delete
#
[72] Fix | Delete
# Minimal preemption granularity for CPU-bound tasks:
[73] Fix | Delete
# (default: 1 msec# (1 + ilog(ncpus)), units: nanoseconds)
[74] Fix | Delete
sched_min_granularity_ns = 10000000
[75] Fix | Delete
[76] Fix | Delete
# SCHED_OTHER wake-up granularity.
[77] Fix | Delete
# (default: 1 msec# (1 + ilog(ncpus)), units: nanoseconds)
[78] Fix | Delete
#
[79] Fix | Delete
# This option delays the preemption effects of decoupled workloads
[80] Fix | Delete
# and reduces their over-scheduling. Synchronous workloads will still
[81] Fix | Delete
# have immediate wakeup/sleep latencies.
[82] Fix | Delete
sched_wakeup_granularity_ns = 15000000
[83] Fix | Delete
[84] Fix | Delete
# Marvell ThunderX
[85] Fix | Delete
[sysctl.thunderx]
[86] Fix | Delete
type=sysctl
[87] Fix | Delete
uname_regex=aarch64
[88] Fix | Delete
cpuinfo_regex=${thunderx_cpuinfo_regex}
[89] Fix | Delete
kernel.numa_balancing=0
[90] Fix | Delete
[91] Fix | Delete
# AMD
[92] Fix | Delete
[scheduler.amd]
[93] Fix | Delete
type=scheduler
[94] Fix | Delete
uname_regex=x86_64
[95] Fix | Delete
cpuinfo_regex=${amd_cpuinfo_regex}
[96] Fix | Delete
runtime=0
[97] Fix | Delete
sched_migration_cost_ns=5000000
[98] Fix | Delete
[99] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function