Merge pull request #276 from yarda/marvell-amd
Arch specific tuning for Marvell ThunderX and AMD
This commit is contained in:
commit
af9e64a213
1 changed files with 26 additions and 0 deletions
|
|
@ -5,11 +5,22 @@
|
|||
[main]
|
||||
summary=Broadly applicable tuning that provides excellent performance across a variety of common server workloads
|
||||
|
||||
[variables]
|
||||
thunderx_cpuinfo_regex=CPU part\s+:\s+(0x0?516)|(0x0?af)|(0x0?a[0-3])|(0x0?b8)\b
|
||||
amd_cpuinfo_regex=model name\s+:.*\bAMD\b
|
||||
|
||||
[cpu]
|
||||
governor=performance
|
||||
energy_perf_bias=performance
|
||||
min_perf_pct=100
|
||||
|
||||
# Marvell ThunderX
|
||||
[vm.thunderx]
|
||||
type=vm
|
||||
uname_regex=aarch64
|
||||
cpuinfo_regex=${thunderx_cpuinfo_regex}
|
||||
transparent_hugepages=never
|
||||
|
||||
[disk]
|
||||
# The default unit for readahead is KiB. This can be adjusted to sectors
|
||||
# by specifying the relevant suffix, eg. (readahead => 8192 s). There must
|
||||
|
|
@ -60,3 +71,18 @@ vm.dirty_background_ratio = 10
|
|||
# 100 tells the kernel to aggressively swap processes out of physical memory
|
||||
# and move them to swap cache
|
||||
vm.swappiness=10
|
||||
|
||||
# Marvell ThunderX
|
||||
[sysctl.thunderx]
|
||||
type=sysctl
|
||||
uname_regex=aarch64
|
||||
cpuinfo_regex=${thunderx_cpuinfo_regex}
|
||||
kernel.numa_balancing=0
|
||||
|
||||
# AMD
|
||||
[sysctl.amd]
|
||||
type=sysctl
|
||||
uname_regex=x86_64
|
||||
cpuinfo_regex=${amd_cpuinfo_regex}
|
||||
kernel.sched_migration_cost_ns=5000000
|
||||
kernel.numa_balancing=0
|
||||
|
|
|
|||
Loading…
Reference in a new issue