Skip to content

Commit 429f037

Browse files
1 parent 69dcf5e commit 429f037

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

usr/lib/udev/rules.d/30-zram.rules

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ TEST!="/dev/zram0", GOTO="zram_end"
99
# the page cache as hermetic as possible, because otherwise it is "expensive"
1010
# to read data from disk again. At the same time, uncompressing pages from ZRAM
1111
# is not as expensive and is usually very fast on modern CPUs.
12-
SYSCTL{vm.swappiness}="150"
12+
SYSCTL{vm.swappiness}="180"
13+
14+
# Based on https://wiki.archlinux.org/title/Zram#Optimizing%20swap%20on%20zram
15+
SYSCTL{vm.watermark_scale_factor}="125"
16+
1317

1418
LABEL="zram_end"

0 commit comments

Comments
 (0)