mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 19:55:33 -04:00
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:
parent
df3bc53dbe
commit
459bac7e0c
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue