Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个更改有根设备的 CPU 调控器的应用程序。我知道我可以在“sys/devices/system/cpu/cpu0/cpufreq/scaling_governor”中获得当前的调控器,但我该如何更改呢?
首先,从您所在的目录中,执行以下操作:
#cat scaling_available_governors
然后你会得到这样的输出:
ondemand userspace powersave performance
这些是您的内核支持的调控器。现在您可以通过运行以下命令强制内核使用其中之一:
#echo "powersave" > scaling_governor
你需要root才能工作。