nixos,desktop,gaming: performance optimisation
This commit is contained in:
parent
892b910d04
commit
b9cbe17f15
1 changed files with 22 additions and 0 deletions
|
@ -6,4 +6,26 @@
|
|||
end = "${pkgs.libnotify}/bin/notify-send 'GameMode Deactivated' 'GameMode Deactivated. Back to normal mode. ⏹️'";
|
||||
};
|
||||
};
|
||||
|
||||
### https://wiki.archlinux.org/title/Gaming#Improving_performance
|
||||
systemd.tmpfiles.rules = [
|
||||
# Path Mode UID GID Age Argument
|
||||
#"w /proc/sys/vm/compaction_proactiveness - - - - 0"
|
||||
"w /proc/sys/vm/min_free_kbytes - - - - 1048576"
|
||||
"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 - - - - never"
|
||||
#"w /sys/kernel/mm/transparent_hugepage/shmem_enabled - - - - never"
|
||||
#"w /sys/kernel/mm/transparent_hugepage/khugepaged/defrag - - - - 0"
|
||||
"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 - - - - 500"
|
||||
"w /sys/kernel/debug/sched/latency_ns - - - - 1000000"
|
||||
"w /sys/kernel/debug/sched/migration_cost_ns - - - - 500000"
|
||||
"w /sys/kernel/debug/sched/min_granularity_ns - - - - 500000"
|
||||
"w /sys/kernel/debug/sched/wakeup_granularity_ns - - - - 0"
|
||||
"w /sys/kernel/debug/sched/nr_migrate - - - - 8"
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue