mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_sm6250-common.git
synced 2025-05-02 20:17:16 +09:00
sm6250-common: 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 Bug: 38249616 Test: boot and run zram-perf showing better performance Change-Id: I0b92b246d773db85aa03d033b2cecee54347cbd1
This commit is contained in:
parent
09d22a08db
commit
f51fc562c4
@ -52,4 +52,4 @@ vendor /vendor
|
|||||||
# The update_engine code looks for this entry in order to determine the boot device address
|
# The update_engine code looks for this entry in order to determine the boot device address
|
||||||
# and fails if it does not find it.
|
# and fails if it does not find it.
|
||||||
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
|
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
|
||||||
/dev/block/zram0 none swap defaults zramsize=1073741824
|
/dev/block/zram0 none swap defaults zramsize=1073741824,max_comp_streams=8
|
||||||
|
@ -75,6 +75,10 @@ on init
|
|||||||
wait /dev/block/platform/soc/${ro.boot.bootdevice}
|
wait /dev/block/platform/soc/${ro.boot.bootdevice}
|
||||||
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
|
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
|
||||||
|
|
||||||
|
# ZRAM setup
|
||||||
|
write /sys/block/zram0/comp_algorithm lz4
|
||||||
|
write /proc/sys/vm/page-cluster 0
|
||||||
|
|
||||||
on early-fs
|
on early-fs
|
||||||
start vold
|
start vold
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user