davinci: rootdir: Don't configure zram in init.qcom.post_boot.sh

* let it use the size which is set in fstab

Change-Id: Ie84d0674a643e637d5ef894399d76ede25d00eeb
This commit is contained in:
Volodymyr Zhdanov 2020-09-09 12:52:37 +03:00 committed by Arian
parent d017391602
commit b41622fbac
No known key found for this signature in database
GPG Key ID: 48029380598CE3B9
2 changed files with 8 additions and 14 deletions

View File

@ -29,13 +29,6 @@
target=`getprop ro.board.platform`
function configure_zram_parameters() {
# Set Zram disk size=1GB for >=2GB Non-Go targets.
echo 2684350464 > /sys/block/zram0/disksize
mkswap /dev/block/zram0
swapon /dev/block/zram0 -p 32758
}
function configure_memory_parameters() {
# Set Memory parameters.
#
@ -81,13 +74,6 @@ function configure_memory_parameters() {
# use Google default LMK series for all 64-bit targets >=2GB.
echo 1 > /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk
echo 1 > /sys/module/lowmemorykiller/parameters/oom_reaper
# Set allocstall_threshold to 0
# Set swappiness to 100
echo 0 > /sys/module/vmpressure/parameters/allocstall_threshold
echo 100 > /proc/sys/vm/swappiness
configure_zram_parameters
}
case "$target" in

View File

@ -135,6 +135,14 @@ on property:sys.boot_completed=1
write /sys/module/cpu_boost/parameters/input_boost_freq "0:1324800"
write /sys/module/cpu_boost/parameters/input_boost_ms 120
# Set allocstall_threshold to 0
# Set swappiness to 100
write /sys/module/vmpressure/parameters/allocstall_threshold 0
write /proc/sys/vm/swappiness 100
# Enable ZRAM on boot_complete
swapon_all /vendor/etc/fstab.qcom
service vendor.pd_mapper /vendor/bin/pd-mapper
class core
user system