Skip to content

Commit c9995a8

Browse files
1 parent 69dcf5e commit c9995a8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ 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_boost_factor}="0"
16+
SYSCTL{vm.watermark_scale_factor}="125"
17+
SYSCTL{vm.page-cluster}="0"
18+
1319

1420
LABEL="zram_end"

0 commit comments

Comments
 (0)