diff --git a/system_files/desktop/shared/usr/lib/sysctl.d/65-memory.conf b/system_files/desktop/shared/usr/lib/sysctl.d/65-memory.conf deleted file mode 100644 index 7a2c2029..00000000 --- a/system_files/desktop/shared/usr/lib/sysctl.d/65-memory.conf +++ /dev/null @@ -1,6 +0,0 @@ -vm.swappiness=180 -vm.watermark_boost_factor=0 -vm.watermark_scale_factor=125 -vm.dirty_bytes=268435456 -vm.dirty_background_bytes=134217728 -vm.page-cluster=0 \ No newline at end of file diff --git a/system_files/desktop/shared/usr/lib/tuned/balanced/tuned.conf b/system_files/desktop/shared/usr/lib/tuned/balanced/tuned.conf new file mode 100644 index 00000000..ceca6f2c --- /dev/null +++ b/system_files/desktop/shared/usr/lib/tuned/balanced/tuned.conf @@ -0,0 +1,48 @@ +# +# tuned configuration +# + +[main] +summary=General non-specialized tuned profile + +[modules] +cpufreq_conservative=+r + +[cpu] +priority=10 +governor=conservative|powersave +energy_perf_bias=normal +energy_performance_preference=balance_performance +boost=1 + +[acpi] +platform_profile=balanced + +[audio] +timeout=10 + +[video] +radeon_powersave=dpm-balanced, auto +panel_power_savings=0 + +[disk] +# Comma separated list of devices, all devices if commented out. +# devices=sda + +[sysctl] +# The swappiness parameter controls the tendency of the kernel to move +# processes out of physical memory and onto the swap disk. +# 0 tells the kernel to avoid swapping processes out of physical memory +# for as long as possible +# 100 tells the kernel to aggressively swap processes out of physical memory +# and move them to swap cache +vm.swappiness=180 + +vm.watermark_boost_factor=0 +vm.watermark_scale_factor=125 +vm.dirty_bytes=268435456 +vm.dirty_background_bytes=134217728 +vm.page-cluster=0 + +[scsi_host] +alpm=medium_power diff --git a/system_files/desktop/shared/usr/lib/tuned/throughput-performance/tuned.conf b/system_files/desktop/shared/usr/lib/tuned/throughput-performance/tuned.conf new file mode 100644 index 00000000..b671c79b --- /dev/null +++ b/system_files/desktop/shared/usr/lib/tuned/throughput-performance/tuned.conf @@ -0,0 +1,70 @@ +# +# tuned configuration +# + +[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 + +[cpu] +governor=performance +energy_perf_bias=performance +min_perf_pct=100 +energy_performance_preference=performance + +[acpi] +platform_profile=performance + +# 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 +# be at least one space between the number and suffix (if suffix is specified). +readahead=>4096 + +[sysctl] +# PID allocation wrap value. When the kernel's next PID value +# reaches this value, it wraps back to a minimum PID value. +# PIDs of value pid_max or larger are not allocated. +# +# A suggested value for pid_max is 1024 * <# of cpu cores/threads in system> +# e.g., a box with 32 cpus, the default of 32768 is reasonable, for 64 cpus, +# 65536, for 4096 cpus, 4194304 (which is the upper limit possible). +#kernel.pid_max = 65536 + +# The swappiness parameter controls the tendency of the kernel to move +# processes out of physical memory and onto the swap disk. +# 0 tells the kernel to avoid swapping processes out of physical memory +# for as long as possible +# 100 tells the kernel to aggressively swap processes out of physical memory +# and move them to swap cache +vm.swappiness=180 + +vm.watermark_boost_factor=0 +vm.watermark_scale_factor=125 +vm.dirty_bytes=268435456 +vm.dirty_background_bytes=134217728 +vm.page-cluster=0 + +# The default kernel value 128 was over twenty years old default, +# kernel-5.4 increased it to 4096, thus do not have it lower than 2048 +# on older kernels +net.core.somaxconn=>2048 + +# Marvell ThunderX +[sysctl.thunderx] +type=sysctl +uname_regex=aarch64 +cpuinfo_regex=${thunderx_cpuinfo_regex} +kernel.numa_balancing=0 + +[video] +panel_power_savings=0