CPU Scaling

CPU Scaling

1、performance cpu用於處於最高狀態

2、powersave cpu設置爲最低狀態

3、userspace 手動設置cpu

4、ondemand conservative都是內核自己cpu算法控制,不同的是ondemand是如果有負載,則直接升到高;conservativestep by step

 

如果編譯成模塊的,可以在/etc/modules添加達到boot的時候加載

Android如何使用?

init.rc

# Give write permission for some of the CPU scaling sysfs file

 chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

 chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

#set cpu freq ondemand

 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor conservative

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章