From 9f71490f285dc1a9559557af3e4836cf589ee6df Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Wed, 17 May 2017 15:01:05 -0700 Subject: shinano-common: rootdir: Tune zram performance * Set page-cluster to 0 as the incremental cost of reading 1 page at a time is negligible for zram Change-Id: Ia73d08904551dfc8d57268fc4da3f9f34d10e277 --- rootdir/etc/init.qcom.rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 010b98b..bd16d8f 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -46,8 +46,9 @@ on init write /sys/module/qpnp_rtc/parameters/poweron_alarm 1 - # Setup zram options + # ZRAM setup write /sys/block/zram0/comp_algorithm lz4 + write /proc/sys/vm/page-cluster 0 # Create a tmpfs for dynamic network mounting mkdir /storage/removable/remote 0700 root system -- cgit v1.2.3