Skip to content

Commit

Permalink
DEV 22.09.04
Browse files Browse the repository at this point in the history
- 改进 cpuset分组预留核心
- 改进 sdm8g1+隐藏频点支持
- 改进 减少二进制体积
- 修复 Exynos2100王者荣耀掉帧,感谢@chbqby
- ...合计8个commit

Signed-off-by: Matt Yang <yccy@outlook.com>
  • Loading branch information
yc9559 committed Sep 4, 2022
1 parent 98af5e4 commit 49c7f87
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 26 deletions.
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# 更新日志

## DEV 22.09.04

- 改进 cpuset分组预留核心
- 改进 sdm8g1+隐藏频点支持
- 改进 减少二进制体积
- 修复 Exynos2100王者荣耀掉帧,感谢@chbqby

## DEV 22.07.24

- 新增 Helio P35/G35/G37支持
Expand Down
28 changes: 20 additions & 8 deletions config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@
},
"sysfs": {
"enable": true,
"knob": {}
"knob": {
"cpusetTa": "/dev/cpuset/top-app/cpus",
"cpusetFg": "/dev/cpuset/foreground/cpus",
"cpusetBg": "/dev/cpuset/background/cpus",
"cpusetSysBg": "/dev/cpuset/system-background/cpus",
"cpusetRe": "/dev/cpuset/restricted/cpus"
}
},
"sched": {
"enable": true,
Expand Down Expand Up @@ -147,8 +153,8 @@
"rules": [
{ "k": "/MAIN_THREAD/", "ac": "ui", "pc": "ui" },
{ "k": "^(UnityMain|RenderThread |GameThread)", "ac": "gtmain", "pc": "auto" },
{ "k": "^(Unity|Worker Thread|TaskGraph|RHIThread|Thread-|Job.Worker)", "ac": "gtcoop", "pc": "auto" },
{ "k": "^(RenderThread|GLThread|JNISurfaceText|IJK_External_Re)|[Aa]nim|([.]raster|[.]ui)$", "ac": "ui", "pc": "ui" },
{ "k": "^(Unity|Worker Thread|TaskGraph|RHIThread|GLThread|Thread-|Job.Worker)", "ac": "gtcoop", "pc": "auto" },
{ "k": "^(RenderThread|JNISurfaceText|IJK_External_Re)|[Aa]nim|([.]raster|[.]ui)$", "ac": "ui", "pc": "ui" },
{ "k": "^(Chrome_InProc|CrRendererMain|CrGpuMain|CompositorTile)", "ac": "norm", "pc": "auto" },
{ "k": "^(Viz|Chrome_|Compositor)|[Vv]sync|mali-", "ac": "ui", "pc": "ui" },
{ "k": "^(OkHttp|Ysa|Xqa|Rx|APM|TVKDL-|tp-|cgi-|ODCP-|Bugly|xlog_)", "ac": "bg", "pc": "auto" },
Expand Down Expand Up @@ -177,7 +183,13 @@
"guideCap": true,
"limitEfficiency": false
},
"sysfs": {},
"sysfs": {
"cpusetTa": "0-7",
"cpusetFg": "0-2,4-7",
"cpusetBg": "0-2",
"cpusetSysBg": "0-2",
"cpusetRe": "0-6"
},
"sched": {
"scene": "idle"
}
Expand All @@ -188,7 +200,7 @@
"cpu.latencyTime": 0.2,
"cpu.slowLimitPower": 2.0,
"cpu.fastLimitPower": 2.0,
"cpu.fastLimitCapacity": 20.0,
"cpu.fastLimitCapacity": 16.0,
"cpu.margin": 0.2
},
"idle": {
Expand Down Expand Up @@ -218,7 +230,7 @@
"switch": {
"cpu.latencyTime": 0.0,
"cpu.slowLimitPower": 3.0,
"cpu.fastLimitPower": 6.0,
"cpu.fastLimitPower": 5.0,
"cpu.fastLimitRecoverScale": 0.1,
"cpu.margin": 0.4,
"sched.scene": "boost"
Expand All @@ -229,7 +241,7 @@
"cpu.latencyTime": 0.4,
"cpu.slowLimitPower": 1.0,
"cpu.fastLimitPower": 1.0,
"cpu.fastLimitCapacity": 5.0,
"cpu.fastLimitCapacity": 4.0,
"cpu.margin": 0.1
},
"idle": {
Expand Down Expand Up @@ -259,7 +271,7 @@
"switch": {
"cpu.latencyTime": 0.0,
"cpu.slowLimitPower": 1.5,
"cpu.fastLimitPower": 3.0,
"cpu.fastLimitPower": 2.5,
"cpu.fastLimitRecoverScale": 0.1,
"cpu.margin": 0.3,
"sched.scene": "boost"
Expand Down
4 changes: 2 additions & 2 deletions magisk/module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=uperf
name=Uperf
version=v3(22.07.24)
versionCode=220724
version=v3(22.09.04)
versionCode=220904
author=Matt Yang
description=Userspace performance controller for android. Repo: https://github.com/yc9559/uperf/
updateJson=https://github.com/yc9559/uperf/raw/master/version.json
2 changes: 1 addition & 1 deletion magisk/script/powercfg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Uperf",
"author": "Matt Yang",
"version": "22.07.24",
"version": "22.09.04",
"versionCode": 3,
"features": {
"strict": true,
Expand Down
22 changes: 10 additions & 12 deletions magisk/script/powercfg_once.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ disable_hotplug() {
lock_val "0" /sys/kernel/zen_decision/enabled

# stop sched core_ctl
set_corectl_param "enable" "0:0 2:0 4:0 6:0 7:0"
set_corectl_param "enable" "0:0 6:0 7:0"

# bring all cores online
for i in 0 1 2 3 4 5 6 7 8 9; do
Expand Down Expand Up @@ -140,6 +140,15 @@ disable_kernel_boost() {
lock_val "enable 0" /proc/perfmgr/tchbst/user/usrtch
lock "/proc/ppm/policy/*"
lock "/proc/ppm/*"
lock_val "0" "/sys/module/mtk_fpsgo/parameters/boost_affinity*"
lock_val "0" "/sys/module/fbt_cpu/parameters/boost_affinity*"
lock_val "9999000" "/sys/kernel/fpsgo/fbt/limit_*"
lock_val "0" /sys/kernel/fpsgo/fbt/switch_idleprefer
lock_val "1" /proc/perfmgr/syslimiter/syslimiter_force_disable
lock_val "1" /sys/module/mtk_core_ctl/parameters/policy_enable
lock_val "90" /sys/kernel/fpsgo/fbt/thrm_temp_th
lock_val "-1" /sys/kernel/fpsgo/fbt/thrm_limit_cpu
lock_val "-1" /sys/kernel/fpsgo/fbt/thrm_sub_cpu

# Samsung
mutate "0" "/sys/class/input_booster/*"
Expand Down Expand Up @@ -176,17 +185,6 @@ disable_userspace_boost() {
# Qualcomm perfd
stop perfd 2>/dev/null

# work with uperf/ContextScheduler
lock_val "0" "/sys/module/mtk_fpsgo/parameters/boost_affinity*"
lock_val "0" "/sys/module/fbt_cpu/parameters/boost_affinity*"
lock_val "9999000" "/sys/kernel/fpsgo/fbt/limit_*"
lock_val "0" /sys/kernel/fpsgo/fbt/switch_idleprefer
lock_val "1" /proc/perfmgr/syslimiter/syslimiter_force_disable
lock_val "1" /sys/module/mtk_core_ctl/parameters/policy_enable
lock_val "90" /sys/kernel/fpsgo/fbt/thrm_temp_th
lock_val "-1" /sys/kernel/fpsgo/fbt/thrm_limit_cpu
lock_val "-1" /sys/kernel/fpsgo/fbt/thrm_sub_cpu

# Qualcomm&MTK perfhal
perfhal_stop

Expand Down
2 changes: 1 addition & 1 deletion magisk/script/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ install_uperf() {
echo ""
echo "* Uperf https://github.com/yc9559/uperf/"
echo "* Author: Matt Yang"
echo "* Version: v3(22.07.24)"
echo "* Version: v3(22.09.04)"
echo ""

echo "- Installing uperf"
Expand Down
4 changes: 2 additions & 2 deletions version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"versionCode": 220724,
"versionCode": 220904,
"version": "v3",
"zipUrl": "https://github.com/yc9559/uperf/releases/download/dev-22.07.24/uperf-dev-22.07.24.zip",
"zipUrl": "https://github.com/yc9559/uperf/releases/download/dev-22.09.04/uperf-dev-22.09.04.zip",
"changelog": "https://github.com/yc9559/uperf/raw/master/changelog.md"
}

0 comments on commit 49c7f87

Please sign in to comment.