diff --git a/debian/changelog b/debian/changelog index f24eece..c8dc576 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +tileos-system-adjustments (1.6.1~tileos) unstable; urgency=medium + + * Remove absolete 80-io-tweaks.rules + * Move Zram settings from udev to zram-generator.conf + + -- Aleksey Samoilov Mon, 28 Apr 2025 19:47:43 +0400 + tileos-system-adjustments (1.6.0~tileos) unstable; urgency=medium * Update polkit rules diff --git a/etc/systemd/zram-generator.conf.d/zram-generator.conf b/etc/systemd/zram-generator.conf.d/zram-generator.conf new file mode 100644 index 0000000..7719d0c --- /dev/null +++ b/etc/systemd/zram-generator.conf.d/zram-generator.conf @@ -0,0 +1,5 @@ +[zram0] +compression-algorithm = zstd lz4 (type=huge) +zram-size = ram +swap-priority = 100 +fs-type = swap diff --git a/etc/udev/rules.d/30-zram.rules b/etc/udev/rules.d/30-zram.rules index cf3ba27..7fea305 100644 --- a/etc/udev/rules.d/30-zram.rules +++ b/etc/udev/rules.d/30-zram.rules @@ -1,9 +1,3 @@ -# Prefer to recompress only huge pages. This will result in additional memory -# savings, but may slightly increase CPU load due to additional compression -# overhead. -ACTION=="add", KERNEL=="zram[0-9]*", ATTR{recomp_algorithm}="algo=lz4 priority=1", \ - RUN+="/sbin/sh -c echo 'type=huge' > /sys/block/%k/recompress" - TEST!="/dev/zram0", GOTO="zram_end" # Since ZRAM stores all pages in compressed form in RAM, we should prefer @@ -13,10 +7,4 @@ TEST!="/dev/zram0", GOTO="zram_end" # the disk. SYSCTL{vm.swappiness}="150" -# Optimal value for games, so sets not too aggressive, but also not too weak -# kswapd behavior, as described there: -# https://www.reddit.com/r/linux_gaming/comments/vla9gd/comment/ie1cnrh/ -SYSCTL{vm.watermark_scale_factor}="125" -SYSCTL{vm.watermark_boost_factor}="0" - LABEL="zram_end" diff --git a/etc/udev/rules.d/80-io-tweaks.rules b/etc/udev/rules.d/80-io-tweaks.rules deleted file mode 100644 index 6ffeab9..0000000 --- a/etc/udev/rules.d/80-io-tweaks.rules +++ /dev/null @@ -1,3 +0,0 @@ -# Forced I/O multithreading -ACTION=="add|change", SUBSYSTEM=="block", ATTR{queue/rq_affinity}="1" -ACTION=="add|change", SUBSYSTEM=="block", ATTR{queue/iosched/fifo_batch}=="32"