diff --git a/rootdir/etc/fstab.zram b/rootdir/etc/fstab.zram index c33cdbb..faf8e03 100644 --- a/rootdir/etc/fstab.zram +++ b/rootdir/etc/fstab.zram @@ -1,4 +1,4 @@ # Android fstab file. # -/dev/block/zram0 none swap defaults zramsize=1073741824 +/dev/block/zram0 none swap defaults zramsize=1073741824,max_comp_streams=8 diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 58c608f..464867f 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -53,6 +53,10 @@ on init write /sys/block/sde/queue/read_ahead_kb 2048 write /sys/block/sde/queue/nr_requests 256 + # ZRAM setup + write /sys/block/zram0/comp_algorithm lz4 + write /proc/sys/vm/page-cluster 0 + on fs mount_all --early /vendor/etc/fstab.qcom