adb指令切换cpu工作状态至性能模式

adb 指令

c 复制代码
adb root
adb wait-for-device
adb remount
adb wait-for-device
adb shell "setprop persist.sys.enable.hypnus 0"
adb shell "rmmod hypnus"
adb shell "cat /sys/devices/system/cpu/cpu*/online"
adb shell stop mpdecision
adb shell stop thermald
adb shell stop thermal-engine
adb shell stop perfd
adb shell stop perf-hal-1-0
adb shell stop perf-hal-2-0
adb shell "echo Y > /sys/module/lpm_levels/parameters/sleep_disabled"
adb shell "echo 4 > /sys/devices/system/cpu/cpu4/core_ctl/min_cpus"
adb shell "echo 4 > /sys/devices/system/cpu/cpu4/core_ctl/max_cpus"
adb shell "echo 1 > /sys/devices/system/cpu/cpu1/online"
adb shell "echo 1 > /sys/devices/system/cpu/cpu2/online"
adb shell "echo 1 > /sys/devices/system/cpu/cpu3/online"
adb shell "echo 1 > /sys/devices/system/cpu/cpu4/online"
adb shell "echo 1 > /sys/devices/system/cpu/cpu5/online"
adb shell "echo 1 > /sys/devices/system/cpu/cpu6/online"
adb shell "echo 1 > /sys/devices/system/cpu/cpu7/online"
adb shell "chmod 666 /sys/devices/system/cpu/cpu*/isolate"
adb shell "echo 0 > /sys/devices/system/cpu/cpu0/isolate"
adb shell "echo 0 > /sys/devices/system/cpu/cpu1/isolate"
adb shell "echo 0 > /sys/devices/system/cpu/cpu2/isolate"
adb shell "echo 0 > /sys/devices/system/cpu/cpu3/isolate"
adb shell "echo 0 > /sys/devices/system/cpu/cpu4/isolate"
adb shell "echo 0 > /sys/devices/system/cpu/cpu5/isolate"
adb shell "echo 0 > /sys/devices/system/cpu/cpu6/isolate"
adb shell "echo 0 > /sys/devices/system/cpu/cpu7/isolate"
adb shell "cat /sys/devices/system/cpu/cpu*/online"
adb shell "cat /sys/devices/system/cpu/cpu*/isolate"
adb shell "echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
adb shell "echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor"
adb shell "echo performance > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor"
adb shell "echo performance > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor"
adb shell "echo performance > /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor"
adb shell "echo performance > /sys/devices/system/cpu/cpu5/cpufreq/scaling_governor"
adb shell "echo performance > /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor"
adb shell "echo performance > /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor"
adb shell "echo performance > sys/class/devfreq/soc:qcom,cpubw/governor"
adb shell "echo performance > sys/class/devfreq/soc:qcom,gpubw/governor"
adb shell "echo performance > sys/class/devfreq/soc:qcom,l3-cpu0/governor"
adb shell "echo performance > sys/class/devfreq/soc:qcom,l3-cpu4/governor"
adb shell "echo performance > sys/class/devfreq/soc:qcom,memlat-cpu0/governor"
adb shell "echo performance > sys/class/devfreq/soc:qcom,memlat-cpu4/governor"
adb shell "echo performance > sys/class/devfreq/soc:qcom,mincpu0bw/governor"
adb shell "echo performance > sys/class/devfreq/soc:qcom,mincpu4bw/governor"
adb shell "echo performance > sys/class/devfreq/soc:qcom,mincpubw/governor"
adb shell "echo performance > sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw"
adb shell "echo performance > sys/class/devfreq/soc:qcom,cpu0-cpu-ddr-lat"
adb shell "echo performance > sys/class/devfreq/soc:qcom,cpu0-cpu-ddr-latfloor"
adb shell "echo performance > sys/class/devfreq/soc:qcom,cpu4-cpu-ddr-lat"
adb shell "echo performance > sys/class/devfreq/soc:qcom,cpu4-cpu-ddr-latfloor"
adb shell "echo performance > sys/class/devfreq/soc:qcom,kgsl-busmon/governor"
adb shell "echo performance > /sys/class/kgsl/kgsl-3d0/devfreq/governor"
adb shell "echo 950000000> /sys/class/kgsl/kgsl-3d0/gpuclk"
adb shell "echo 1 > /proc/sys/kernel/sched_boost"
adb shell cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
adb shell cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor"
adb shell cat /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor"
adb shell cat /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor"
adb shell cat /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor"
adb shell cat /sys/devices/system/cpu/cpu5/cpufreq/scaling_governor"
adb shell cat /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor"
adb shell cat /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor"
adb shell cat /sys/devices/system/cpu/cpu4/core_ctl/min_cpus
adb shell cat /sys/devices/system/cpu/cpu4/core_ctl/max_cpus
pause;

adb root: 以 root 权限启动 adb。

adb wait-for-device: 等待设备连接。

adb remount: 重新挂载文件系统,使文件系统可写。

adb shell "setprop persist.sys.enable.hypnus 0": 设置一个系统属性,关闭了名为 hypnus 的功能。

adb shell "rmmod hypnus": 卸载名为 hypnus 的内核模块。

adb shell "cat /sys/devices/system/cpu/cpu*/online": 显示各个 CPU 核心的在线状态。

一系列的命令停止特定的服务,如 mpdecision, thermald, thermal-engine, perfd, perf-hal-1-0, perf-hal-2-0。

adb shell "echo Y > /sys/module/lpm_levels/parameters/sleep_disabled": 启用某种睡眠状态。

adb shell "echo 4 > /sys/devices/system/cpu/cpu4/core_ctl/min_cpus": 设置 CPU4 控制器的最小 CPU 数量为 4。

adb shell "echo 4 > /sys/devices/system/cpu/cpu4/core_ctl/max_cpus": 设置 CPU4 控制器的最大 CPU 数量为 4。

逐个将 CPU 核心设置为在线状态,从1到7。

逐个将 CPU 核心的隔离状态设置为不隔离。

显示每个 CPU 核心的在线状态。

显示每个 CPU 核心的隔离状态。

为每个 CPU 核心设置性能模式。

在不同的设备上也设置了性能模式,包括 CPU BW、GPU BW、L3 和内存延迟等。

调整了 GPU 相关的参数。

启用内核的调度提升。

显示每个 CPU 核心的频率调频策略。

显示 CPU4 控制器的最小 CPU 数量。

显示 CPU4 控制器的最大 CPU 数量。

pause: 暂停命令

相关推荐
SH11HF6 小时前
小菜狗的云计算之旅,今天学习MySQL数据库基础知识及操作
adb
@Ryan Ding8 小时前
MySQL主从复制与读写分离概述
android·mysql·adb
feifeigo12315 小时前
升级到MySQL 8.4,MySQL启动报错:io_setup() failed with EAGAIN
数据库·mysql·adb
Edingbrugh.南空1 天前
Flink MySQL CDC 环境配置与验证
mysql·adb·flink
陈卓4101 天前
MySQL-主从复制&分库分表
android·mysql·adb
ladymorgana1 天前
【docker】修改 MySQL 密码后 Navicat 仍能用原密码连接
mysql·adb·docker
好奇的菜鸟3 天前
如何在Ubuntu上检查MySQL是否启动并放开3306端口
mysql·ubuntu·adb
OneT1me3 天前
adb shell中执行system用户权限命令的方法
adb
Polaris_YJH3 天前
360安全卫士占用5037端口(ADB端口)解决方案
adb·端口占用·5037
雨之小13 天前
RK3588调试之旅:adbd服务配置全攻略
adb·rk3588