[DESCRIPTION]
echo 0 > /proc/ppm/enabled
# Enable PPM (Default)
echo 1 > /proc/ppm/enabled
echo 0 > /proc/ppm/enabled
Fixed # Core for each cluster
echo X Y > /proc/ppm/policy/ut_fix_core_num Where,
X = -1, 0 ~ 4. Core# for cluster 0
Y = -1, 0 ~ 4. Core# fot cluster 1
echo 4 4 > /proc/ppm/policy/ut_fix_core_num
Fixed OPP for each cluster
echo X Y > /proc/ppm/policy/ut_fix_freq_idx Where,
X = -1, 0 ~ 15. OPP for cluster 0
Y = -1, 0 ~ 15. OPP for cluster 1
echo 1 2 > /proc/ppm/policy/ut_fix_freq_idx
範例:
echo 1 > /proc/ppm/enabled
echo 4 4 2 > /proc/ppm/policy/ut_fix_core_num <= 開4小核 4大核 2最大核
echo 0 0 0 > /proc/ppm/policy/ut_fix_freq_idx <小核用最高頻,大核用最高頻,最大核用最高
頻
可以先從CPU最高效能全開來測試,然後逐步調降適當的設定
建議可以安裝附件的PerMon的APK,可以即時顯示CPU 的核數與freq在畫面上
可以用來確認CPU設定是否生效
如何使用adb command来设置cpu频率和核数[SOLUTION]
透過ADB Shell設定CPU開核與freq的command與用法如下:
# Disable PPMecho 0 > /proc/ppm/enabled
# Enable PPM (Default)
echo 1 > /proc/ppm/enabled
echo 0 > /proc/ppm/enabled
Fixed # Core for each cluster
echo X Y > /proc/ppm/policy/ut_fix_core_num Where,
X = -1, 0 ~ 4. Core# for cluster 0
Y = -1, 0 ~ 4. Core# fot cluster 1
echo 4 4 > /proc/ppm/policy/ut_fix_core_num
Fixed OPP for each cluster
echo X Y > /proc/ppm/policy/ut_fix_freq_idx Where,
X = -1, 0 ~ 15. OPP for cluster 0
Y = -1, 0 ~ 15. OPP for cluster 1
echo 1 2 > /proc/ppm/policy/ut_fix_freq_idx
範例:
echo 1 > /proc/ppm/enabled
echo 4 4 2 > /proc/ppm/policy/ut_fix_core_num <= 開4小核 4大核 2最大核
echo 0 0 0 > /proc/ppm/policy/ut_fix_freq_idx <小核用最高頻,大核用最高頻,最大核用最高
頻
可以先從CPU最高效能全開來測試,然後逐步調降適當的設定
建議可以安裝附件的PerMon的APK,可以即時顯示CPU 的核數與freq在畫面上
可以用來確認CPU設定是否生效
若有確定較好的設定,就可以修改custom folder的設定
转自一牛论坛:MTK