diff --git a/changelog.md b/changelog.md index fd4c02a..c2ef613 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # 更新日志 +## DEV 22.09.04 + +- 改进 cpuset分组预留核心 +- 改进 sdm8g1+隐藏频点支持 +- 改进 减少二进制体积 +- 修复 Exynos2100王者荣耀掉帧,感谢@chbqby + ## DEV 22.07.24 - 新增 Helio P35/G35/G37支持 diff --git a/config/template.json b/config/template.json index 052a51d..5e36d57 100644 --- a/config/template.json +++ b/config/template.json @@ -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, @@ -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" }, @@ -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" } @@ -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": { @@ -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" @@ -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": { @@ -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" diff --git a/magisk/module.prop b/magisk/module.prop index 6267b5a..95ab311 100644 --- a/magisk/module.prop +++ b/magisk/module.prop @@ -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 diff --git a/magisk/script/powercfg.json b/magisk/script/powercfg.json index a3bd6d1..d6ae1df 100644 --- a/magisk/script/powercfg.json +++ b/magisk/script/powercfg.json @@ -1,7 +1,7 @@ { "name": "Uperf", "author": "Matt Yang", - "version": "22.07.24", + "version": "22.09.04", "versionCode": 3, "features": { "strict": true, diff --git a/magisk/script/powercfg_once.sh b/magisk/script/powercfg_once.sh index 961f156..8cd5aec 100644 --- a/magisk/script/powercfg_once.sh +++ b/magisk/script/powercfg_once.sh @@ -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 @@ -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/*" @@ -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 diff --git a/magisk/script/setup.sh b/magisk/script/setup.sh index f05f632..ff1f5dc 100644 --- a/magisk/script/setup.sh +++ b/magisk/script/setup.sh @@ -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" diff --git a/version.json b/version.json index 529b6f0..50d4e2a 100644 --- a/version.json +++ b/version.json @@ -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" }