From 0accf880d6ee22d14df0985131d38824d48d377e Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 2 Apr 2026 22:10:37 +0300 Subject: [PATCH] etc: note Arch wiki gaming so I remember them in the future on Steam Deck --- etc/sysctl.d/80-gamecompatibility.conf | 2 ++ etc/tmpfiles.d/.gitignore | 2 ++ .../consistent-response-time-for-gaming.conf | 20 +++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 etc/sysctl.d/80-gamecompatibility.conf create mode 100644 etc/tmpfiles.d/.gitignore create mode 100644 etc/tmpfiles.d/consistent-response-time-for-gaming.conf diff --git a/etc/sysctl.d/80-gamecompatibility.conf b/etc/sysctl.d/80-gamecompatibility.conf new file mode 100644 index 00000000..6c27e8fd --- /dev/null +++ b/etc/sysctl.d/80-gamecompatibility.conf @@ -0,0 +1,2 @@ +# wiki.archlinux.org/title/Gaming#Increase_vm.max_map_count +vm.max_map_count = 2147483642 diff --git a/etc/tmpfiles.d/.gitignore b/etc/tmpfiles.d/.gitignore new file mode 100644 index 00000000..502aad1d --- /dev/null +++ b/etc/tmpfiles.d/.gitignore @@ -0,0 +1,2 @@ +# Generated by a script containing UIDs, so not useful here. +btrfs-enable-dynamic-periodic-reclaim.conf diff --git a/etc/tmpfiles.d/consistent-response-time-for-gaming.conf b/etc/tmpfiles.d/consistent-response-time-for-gaming.conf new file mode 100644 index 00000000..bd209eb0 --- /dev/null +++ b/etc/tmpfiles.d/consistent-response-time-for-gaming.conf @@ -0,0 +1,20 @@ +# https://wiki.archlinux.org/title/Gaming#Make_the_changes_permanent +# Path Mode UID GID Age Argument +w /proc/sys/vm/compaction_proactiveness - - - - 0 +w /proc/sys/vm/watermark_boost_factor - - - - 1 +w /proc/sys/vm/min_free_kbytes - - - - 1048576 +w /proc/sys/vm/watermark_scale_factor - - - - 500 +w /proc/sys/vm/swappiness - - - - 10 +w /sys/kernel/mm/lru_gen/enabled - - - - 5 +w /proc/sys/vm/zone_reclaim_mode - - - - 0 +w /sys/kernel/mm/transparent_hugepage/enabled - - - - madvise +w /sys/kernel/mm/transparent_hugepage/shmem_enabled - - - - advise +w /sys/kernel/mm/transparent_hugepage/defrag - - - - never +w /proc/sys/vm/page_lock_unfairness - - - - 1 +w /proc/sys/kernel/sched_child_runs_first - - - - 0 +w /proc/sys/kernel/sched_autogroup_enabled - - - - 1 +w /proc/sys/kernel/sched_cfs_bandwidth_slice_us - - - - 3000 +w /sys/kernel/debug/sched/base_slice_ns - - - - 3000000 +w /sys/kernel/debug/sched/migration_cost_ns - - - - 500000 +w /sys/kernel/debug/sched/nr_migrate - - - - 8 +