sm7250-common: rootdir: tune zram performance
-Set zram disksize so it can successfully initialize -Set max_comp_streams to num of cores since upstream also moves this to percpu. -Switch to LZ4 for better overall performance -Set page-cluster to 0 as the incremental cost of reading 1 page at a time is negligible for zram Bug: 38249616 Test: boot and run zram-perf showing better performance Signed-off-by: aswin7469 <aswinas@pixysos.com>
This commit is contained in:
@@ -48,6 +48,10 @@ on init
|
||||
start vendor.qseecomd
|
||||
start keymaster-4-0
|
||||
|
||||
# ZRAM setup
|
||||
write /sys/block/zram0/comp_algorithm lz4
|
||||
write /proc/sys/vm/page-cluster 0
|
||||
|
||||
on early-fs
|
||||
start vold
|
||||
|
||||
@@ -113,6 +117,11 @@ on charger
|
||||
setprop vendor.usb.controller a600000.dwc3
|
||||
setprop sys.usb.configfs 1
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
# Enable ZRAM on boot_complete
|
||||
swapon_all /vendor/etc/fstab.qcom
|
||||
write /proc/sys/vm/swappiness 100
|
||||
|
||||
#pd-mapper
|
||||
service vendor.pd_mapper /vendor/bin/pd-mapper
|
||||
class core
|
||||
|
||||
Reference in New Issue
Block a user