etc: note Arch wiki gaming so I remember them in the future on Steam Deck

This commit is contained in:
Aminda Suomalainen 2026-04-02 22:10:37 +03:00
parent 7169fbacb1
commit 0accf880d6
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
3 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,2 @@
# wiki.archlinux.org/title/Gaming#Increase_vm.max_map_count
vm.max_map_count = 2147483642

2
etc/tmpfiles.d/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# Generated by a script containing UIDs, so not useful here.
btrfs-enable-dynamic-periodic-reclaim.conf

View File

@ -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