diff options
author | Wei Wang <wvw@google.com> | 2017-05-17 15:01:05 -0700 |
---|---|---|
committer | Arian <arian.kulmer@web.de> | 2021-09-09 17:28:18 +0200 |
commit | 9f71490f285dc1a9559557af3e4836cf589ee6df (patch) | |
tree | a63760b2d8157643220ccc0e25791846c6a40a9f | |
parent | e99db13236bc8ac3471fcb22e81178fc423679eb (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.rc | 3 |
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 |