Remove absolete udev rules and move Zram settings to it's own config
This commit is contained in:
parent
a8d42aad57
commit
2a013fdbb4
4 changed files with 12 additions and 15 deletions
7
debian/changelog
vendored
7
debian/changelog
vendored
|
@ -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 <samoilov.lex@gmail.com> Mon, 28 Apr 2025 19:47:43 +0400
|
||||||
|
|
||||||
tileos-system-adjustments (1.6.0~tileos) unstable; urgency=medium
|
tileos-system-adjustments (1.6.0~tileos) unstable; urgency=medium
|
||||||
|
|
||||||
* Update polkit rules
|
* Update polkit rules
|
||||||
|
|
5
etc/systemd/zram-generator.conf.d/zram-generator.conf
Normal file
5
etc/systemd/zram-generator.conf.d/zram-generator.conf
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[zram0]
|
||||||
|
compression-algorithm = zstd lz4 (type=huge)
|
||||||
|
zram-size = ram
|
||||||
|
swap-priority = 100
|
||||||
|
fs-type = swap
|
|
@ -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"
|
TEST!="/dev/zram0", GOTO="zram_end"
|
||||||
|
|
||||||
# Since ZRAM stores all pages in compressed form in RAM, we should prefer
|
# 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.
|
# the disk.
|
||||||
SYSCTL{vm.swappiness}="150"
|
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"
|
LABEL="zram_end"
|
||||||
|
|
|
@ -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"
|
|
Loading…
Add table
Reference in a new issue