forked from yc9559/uperf
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uperf:ProcGetUid采用busybox中的方法,可能与AffinityHelper死循环有关 uperf:下调滑动距离阈值,减少滑动误认为是点击 uperf:延迟UI响应的Hint恢复时间范围增加到700ms SfAnalysis:有些时候刚开始滑动就遇到卡顿,误报交给uperf压制非交互时的boost解决 wipe-v2:配置文件:评分函数权重和参数范围回调一些 配置文件生成器:降低卡顿模式的sfLag的频率拉升 配置文件生成器:骁龙712最大主频2.3g 安装脚本:设置enable_sfanalysis标志位,如果遇到与她相关的卡屏可删除此标志位禁用SfAnalysis 自启动脚本:关闭`sleep 60`有助于解决小米10 MIUI12启动器不响应触摸的情况 自启动脚本:wait_until_login测试目录可写权限 once:补充关闭一些热插拔 Signed-off-by: Matt Yang <[email protected]>
- Loading branch information
Showing
11 changed files
with
80 additions
and
173 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ BASEDIR="$(dirname "$0")" | |
. $BASEDIR/libcommon.sh | ||
. $BASEDIR/libpowercfg.sh | ||
. $BASEDIR/libuperf.sh | ||
. $BASEDIR/libsfanalysis.sh | ||
|
||
# unify schedtune misc | ||
# android 10 doesn't have schedtune.sched_boost_enabled exposed, default = true | ||
|
@@ -71,20 +70,20 @@ change_thread_cgroup "system_server" "android.ui" "top-app" "stune" | |
# ...and pin HeapTaskDaemon on LITTLE | ||
change_thread_cgroup "system_server" "HeapTaskDaemon" "background" "cpuset" | ||
|
||
# # reduce big cluster wakeup, eg. [email protected] | ||
# change_task_cgroup ".hardware." "background" "cpuset" | ||
# change_task_affinity ".hardware." "0f" | ||
# # ...but exclude fingerprint&camera&display service for speed | ||
# change_task_cgroup ".hardware.biometrics.fingerprint" "" "cpuset" | ||
# change_task_cgroup ".hardware.camera.provider" "" "cpuset" | ||
# change_task_cgroup ".hardware.display" "" "cpuset" | ||
# change_task_affinity ".hardware.biometrics.fingerprint" "ff" | ||
# change_task_affinity ".hardware.camera.provider" "ff" | ||
# change_task_affinity ".hardware.display" "ff" | ||
# reduce big cluster wakeup, eg. [email protected] | ||
change_task_cgroup ".hardware." "background" "cpuset" | ||
change_task_affinity ".hardware." "0f" | ||
# ...but exclude fingerprint&camera&display service for speed | ||
change_task_cgroup ".hardware.biometrics.fingerprint" "" "cpuset" | ||
change_task_cgroup ".hardware.camera.provider" "" "cpuset" | ||
change_task_cgroup ".hardware.display" "" "cpuset" | ||
change_task_affinity ".hardware.biometrics.fingerprint" "ff" | ||
change_task_affinity ".hardware.camera.provider" "ff" | ||
change_task_affinity ".hardware.display" "ff" | ||
|
||
# provide best performance for fingerprint service | ||
change_task_cgroup ".hardware.biometrics.fingerprint" "rt" "stune" | ||
change_task_nice ".hardware.biometrics.fingerprint" "-20" | ||
change_task_cgroup ".hardware.biometrics." "rt" "stune" | ||
change_task_nice ".hardware.biometrics." "-20" | ||
mutate "100" $ST_RT/schedtune.boost | ||
mutate "1" $ST_RT/schedtune.prefer_idle | ||
|
||
|
@@ -141,9 +140,10 @@ lock_val "0" /sys/module/cpu_input_boost/parameters/flex_boost_freq_hp | |
lock_val "0" /sys/module/cpu_input_boost/parameters/flex_boost_freq_lp | ||
lock_val "0" /sys/module/devfreq_boost/parameters/input_boost_duration | ||
|
||
# stop qualcomm perfd | ||
# try to disable all other userspace performance daemon | ||
# Qualcomm perfd | ||
stop perfd | ||
# stop qualcomm perfd | ||
# Qualcomm perfhal | ||
perfhal_stop | ||
# brain service maybe not smart | ||
stop oneplus_brain_service | ||
|
@@ -154,12 +154,37 @@ stop oneplus_brain_service | |
# stop vendor.power-hal-1-2 | ||
# stop vendor.power-hal-1-3 | ||
|
||
# try to disable all hotplug | ||
# Qualcomm Battery Current Limit | ||
for mode in /sys/devices/soc.0/qcom,bcl.*/mode; do | ||
echo -n "disable" > $mode | ||
done | ||
for hotplug_mask in /sys/devices/soc.0/qcom,bcl.*/hotplug_mask; do | ||
lock_val "0" $hotplug_mask | ||
done | ||
for hotplug_soc_mask in /sys/devices/soc.0/qcom,bcl.*/hotplug_soc_mask; do | ||
lock_val "0" $hotplug_soc_mask | ||
done | ||
for mode in /sys/devices/soc.0/qcom,bcl.*/mode; do | ||
echo -n "enable" > $mode | ||
done | ||
# Exynos hotplug | ||
mutate "0" /sys/power/cpuhotplug/enabled | ||
mutate "0" $CPU/cpuhotplug/enabled | ||
# turn off msm_thermal | ||
lock_val "0" /sys/module/msm_thermal/core_control/enabled | ||
lock_val "N" /sys/module/msm_thermal/parameters/enabled | ||
# maybe CAF | ||
lock_val "0" /proc/sys/kernel/hotplug | ||
lock_val "1" $CPU/cpu0/rq-stats/hotplug_disable | ||
# AllWinner H6 | ||
lock_val "1" /sys/kernel/autohotplug/boost_all | ||
# 3rd | ||
lock_val "0" /sys/kernel/intelli_plug/intelli_plug_active | ||
lock_val "0" /sys/module/blu_plug/parameters/enabled | ||
lock_val "0" /sys/devices/virtual/misc/mako_hotplug_control/enabled | ||
lock_val "0" /sys/module/autosmp/parameters/enabled | ||
lock_val "0" /sys/kernel/zen_decision/enabled | ||
# bring all cores online | ||
for i in 0 1 2 3 4 5 6 7 8 9; do | ||
mutate "1" $CPU/cpu$i/online | ||
|
@@ -225,9 +250,6 @@ lock_val "1" $LPM/lpm_prediction | |
lock_val "0" $LPM/sleep_disabled | ||
lock_val "25" $LPM/bias_hyst | ||
|
||
# start surfaceflinger analysis | ||
sfa_start | ||
|
||
# start uperf once only | ||
uperf_stop | ||
uperf_start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Uperf Setup | ||
# https://github.com/yc9559/ | ||
# Author: Matt Yang & cjybyjk ([email protected]) | ||
# Version: 20200507 | ||
# Version: 20200513 | ||
|
||
BASEDIR="$(dirname $(readlink -f "$0"))" | ||
|
||
|
@@ -109,6 +109,15 @@ _get_sdm865_type() | |
fi | ||
} | ||
|
||
_get_sdm76x_type() | ||
{ | ||
if [ "$(cat /sys/devices/soc0/revision)" == "2.0" ]; then | ||
echo "sdm768" | ||
else | ||
echo "sdm765" | ||
fi | ||
} | ||
|
||
_get_msm8916_type() | ||
{ | ||
case "$(_get_socid)" in | ||
|
@@ -258,7 +267,7 @@ _get_cfgname() | |
"kona") ret="$(_get_sdm865_type)" ;; | ||
"msmnile") ret="sdm855" ;; | ||
"sdm845") ret="sdm845" ;; | ||
"lito") ret="sdm765" ;; | ||
"lito") ret="$(_get_sdm76x_type)" ;; | ||
"sm6150") ret="$(_get_sm6150_type)" ;; | ||
"sdm710") ret="sdm710" ;; | ||
"msm8916") ret="$(_get_msm8916_type)" ;; | ||
|
@@ -290,7 +299,7 @@ uperf_print_banner() | |
echo "" | ||
echo "* Uperf https://github.com/yc9559/uperf/" | ||
echo "* Author: Matt Yang" | ||
echo "* Version: DEV 20200507" | ||
echo "* Version: DEV 20200513" | ||
echo "" | ||
} | ||
|
||
|
@@ -340,6 +349,9 @@ sfa_install() | |
_set_perm "$target_lib_path/libsfanalysis.so" 0 0 0644 u:object_r:system_lib_file:s0 | ||
# in case of set_perm_recursive is broken | ||
chmod 0755 $BASEDIR/bin/* | ||
|
||
# create sfanalysis enable flag | ||
touch $BASEDIR/enable_sfanalysis | ||
} | ||
|
||
powerhal_stub_install() | ||
|
Oops, something went wrong.