This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Virtual memory settings. | |
# Kernel documentation: https://docs.kernel.org/admin-guide/sysctl/vm.html. | |
# Arch zram: https://wiki.archlinux.org/title/zram#Optimizing_swap_on_zram. | |
# Gaming tuning: https://pastebin.com/fwzW9whL. | |
# PopOS tuning: https://github.com/pop-os/default-settings/pull/163. | |
# MaxPerformanceWizard (MPW) https://gitlab.com/cscs/maxperfwiz/-/blob/master/maxperfwiz. | |
boot.kernel.sysctl = { | |
# Tunes how aggressively kernel evicts memory pages until a specific amount of free memory is left for your active working set | |
## Sweet spot for gaming is 125-200, near 200 makes kswapd swap too aggressive |