mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 04:05:31 -04:00
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:
parent
2cfe74a022
commit
d0fdbc6489
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ on init
|
||||||
# Fastcharge
|
# Fastcharge
|
||||||
chown system radio /sys/class/sec/switch/afc_disable
|
chown system radio /sys/class/sec/switch/afc_disable
|
||||||
|
|
||||||
write /proc/sys/vm/swappiness 180
|
write /proc/sys/vm/swappiness 150
|
||||||
|
|
||||||
# ZRAM setup
|
# ZRAM setup
|
||||||
write /sys/block/zram0/comp_algorithm lz4
|
write /sys/block/zram0/comp_algorithm lz4
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue