universal7885: zram: Reduce size to 30% of physical RAM

The original 80% was too much, with that zram size, the idle RAM usage was around 75%. Now with 30%, the system boots fine and idle RAM usage has been decreased to around 55%. Also, reduce swappiness a bit
This commit is contained in:
roynatech2544 2022-04-15 14:59:25 +09:00
commit d0fdbc6489
2 changed files with 2 additions and 2 deletions

View file

@ -1,2 +1,2 @@
/dev/block/zram0 none swap defaults zramsize=80%,max_comp_streams=8,zram_backingdev_size=512M
/dev/block/zram0 none swap defaults zramsize=30%,max_comp_streams=8,zram_backingdev_size=512M

View file

@ -11,7 +11,7 @@ on init
# Fastcharge
chown system radio /sys/class/sec/switch/afc_disable
write /proc/sys/vm/swappiness 180
write /proc/sys/vm/swappiness 150
# ZRAM setup
write /sys/block/zram0/comp_algorithm lz4