diff --git a/usr/lib/udev/rules.d/30-zram.rules b/usr/lib/udev/rules.d/30-zram.rules index 0d3dba4..acfbccd 100644 --- a/usr/lib/udev/rules.d/30-zram.rules +++ b/usr/lib/udev/rules.d/30-zram.rules @@ -9,6 +9,10 @@ TEST!="/dev/zram0", GOTO="zram_end" # the page cache as hermetic as possible, because otherwise it is "expensive" # to read data from disk again. At the same time, uncompressing pages from ZRAM # is not as expensive and is usually very fast on modern CPUs. -SYSCTL{vm.swappiness}="150" +SYSCTL{vm.swappiness}="180" + +# Based on https://wiki.archlinux.org/title/Zram#Optimizing%20swap%20on%20zram +SYSCTL{vm.watermark_scale_factor}="125" + LABEL="zram_end"