davinci: rootdir: Update init.qcom.post_boot.sh from 20.10.22
Change-Id: I1e1405fc24d8670b096c860178f714fbbe906de1
This commit is contained in:
parent
b80df2fd39
commit
e6ae9c1b27
@ -70,6 +70,8 @@ function configure_memory_parameters() {
|
|||||||
vmpres_file_min=$((minfree_5 + (minfree_5 - rem_minfree_4)))
|
vmpres_file_min=$((minfree_5 + (minfree_5 - rem_minfree_4)))
|
||||||
echo $vmpres_file_min > /sys/module/lowmemorykiller/parameters/vmpressure_file_min
|
echo $vmpres_file_min > /sys/module/lowmemorykiller/parameters/vmpressure_file_min
|
||||||
|
|
||||||
|
echo "18432,23040,27648,64512,165888,225792" > /sys/module/lowmemorykiller/parameters/minfree
|
||||||
|
|
||||||
# Enable adaptive LMK for all targets &
|
# Enable adaptive LMK for all targets &
|
||||||
# use Google default LMK series for all 64-bit targets >=2GB.
|
# 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/enable_adaptive_lmk
|
||||||
@ -157,8 +159,6 @@ case "$target" in
|
|||||||
|
|
||||||
# Set Memory parameters
|
# Set Memory parameters
|
||||||
configure_memory_parameters
|
configure_memory_parameters
|
||||||
|
|
||||||
echo "18432,23040,27648,32256,85296,120640" > /sys/module/lowmemorykiller/parameters/minfree
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -122,20 +122,22 @@ on property:sys.boot_completed=1
|
|||||||
write /sys/devices/system/cpu/cpu0/cpufreq/schedutil/up_rate_limit_us 0
|
write /sys/devices/system/cpu/cpu0/cpufreq/schedutil/up_rate_limit_us 0
|
||||||
write /sys/devices/system/cpu/cpu0/cpufreq/schedutil/down_rate_limit_us 0
|
write /sys/devices/system/cpu/cpu0/cpufreq/schedutil/down_rate_limit_us 0
|
||||||
write /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_freq 1248000
|
write /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_freq 1248000
|
||||||
|
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 576000
|
||||||
|
|
||||||
# configure governor settings for big cluster
|
# configure governor settings for big cluster
|
||||||
write /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor "schedutil"
|
write /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor "schedutil"
|
||||||
write /sys/devices/system/cpu/cpu6/cpufreq/schedutil/up_rate_limit_us 0
|
write /sys/devices/system/cpu/cpu6/cpufreq/schedutil/up_rate_limit_us 0
|
||||||
write /sys/devices/system/cpu/cpu6/cpufreq/schedutil/down_rate_limit_us 0
|
write /sys/devices/system/cpu/cpu6/cpufreq/schedutil/down_rate_limit_us 0
|
||||||
write /sys/devices/system/cpu/cpu6/cpufreq/schedutil/hispeed_freq 1324600
|
write /sys/devices/system/cpu/cpu6/cpufreq/schedutil/hispeed_freq 1324600
|
||||||
|
write /sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq 652800
|
||||||
|
|
||||||
# sched_load_boost as -6 is equivalent to target load as 85. It is per cpu tunable.
|
# sched_load_boost as -6 is equivalent to target load as 85. It is per cpu tunable.
|
||||||
write /sys/devices/system/cpu/cpu6/sched_load_boost -6
|
write /sys/devices/system/cpu/cpu6/sched_load_boost -6
|
||||||
write /sys/devices/system/cpu/cpu7/sched_load_boost -6
|
write /sys/devices/system/cpu/cpu7/sched_load_boost -6
|
||||||
write /sys/devices/system/cpu/cpu6/cpufreq/schedutil/hispeed_load 85
|
write /sys/devices/system/cpu/cpu6/cpufreq/schedutil/hispeed_load 85
|
||||||
|
|
||||||
write /sys/module/cpu_boost/parameters/input_boost_freq "0:1324800"
|
write /sys/module/cpu_boost/parameters/input_boost_freq "0:1248000"
|
||||||
write /sys/module/cpu_boost/parameters/input_boost_ms 120
|
write /sys/module/cpu_boost/parameters/input_boost_ms 40
|
||||||
|
|
||||||
# Set allocstall_threshold to 0
|
# Set allocstall_threshold to 0
|
||||||
# Set swappiness to 100
|
# Set swappiness to 100
|
||||||
|
Loading…
Reference in New Issue
Block a user