Compare commits

..

No commits in common. "main" and "v1.6.0" have entirely different histories.
main ... v1.6.0

4 changed files with 15 additions and 12 deletions

7
debian/changelog vendored
View file

@ -1,10 +1,3 @@
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 <samoilov.lex@gmail.com> Mon, 28 Apr 2025 19:47:43 +0400
tileos-system-adjustments (1.6.0~tileos) unstable; urgency=medium
* Update polkit rules

View file

@ -1,5 +0,0 @@
[zram0]
compression-algorithm = zstd lz4 (type=huge)
zram-size = ram
swap-priority = 100
fs-type = swap

View file

@ -1,3 +1,9 @@
# 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
@ -7,4 +13,10 @@ 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"

View file

@ -0,0 +1,3 @@
# 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"