summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Wang <wvw@google.com>2017-05-17 15:01:05 -0700
committerArian <arian.kulmer@web.de>2021-09-09 17:28:18 +0200
commit9f71490f285dc1a9559557af3e4836cf589ee6df (patch)
treea63760b2d8157643220ccc0e25791846c6a40a9f
parente99db13236bc8ac3471fcb22e81178fc423679eb (diff)
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
-rw-r--r--rootdir/etc/init.qcom.rc3
1 files changed, 2 insertions, 1 deletions
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