universal7885: rootdir: Tune zram performance

- Switch to LZ4 for better overall performance
- Set max_comp_streams to num of cores since upstream also moves this to
percpu.
- Set page-cluster to 0 as the incremental cost of reading 1 page at a
time is negligible for zram

[roynatech2544: Adjust swappiness too]

Bug: 38249616
Test: boot and run zram-perf showing better performance
Change-Id: I0b92b246d773db85aa03d033b2cecee54347cbd1
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: Ia40c30978b0805988b80b41b7c43007e339b1fbd
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
Wei Wang 2017-05-17 15:27:32 -07:00 committed by roynatech2544
commit 459bac7e0c
No known key found for this signature in database
GPG key ID: 9675C32163D88D30

View file

@ -11,10 +11,12 @@ on init
# Fastcharge
chown system radio /sys/class/sec/switch/afc_disable
# ZRAM parameters
write /proc/sys/vm/swappiness 180
# ZRAM setup
write /sys/block/zram0/comp_algorithm lz4
write /sys/block/zram0/max_comp_streams 8
write /proc/sys/vm/page-cluster 0
write /proc/sys/vm/swappiness 160
write /sys/block/zram0/comp_algorithm zstd
## SCSC WLAN
# SD-755: Increase default socket rx buffer limit