The default CPU governor on an Ubuntu machine sets it to use an ondemand CPU setting that will use the lowest CPU speed and then set it higher when it is needed, but it does not always work very well. But it can be fixed.
Dsiable the ondemand CPU governor.
┌─[jason@darkstar]─[~] └──╼ $echo 'GOVERNOR="performance"' | sudo tee /etc/default/cpufrequtils GOVERNOR="performance" |
Then restart the service to apply the changes witohut needing to re-boot.
┌─[jason@darkstar]─[~] └──╼ $sudo /etc/init.d/cpufrequtils restart [ ok ] Restarting cpufrequtils (via systemctl): cpufrequtils.service. |
TThen use the cpufreq-info command to get the current CPU frequency and see if it worked.
┌─[jason@darkstar]─[~] └──╼ $cpufreq-info | tail -n 2 current CPU frequency is 3.10 GHz. cpufreq stats: 3.10 GHz:24.87%, 2.80 GHz:0.02%, 2.40 GHz:0.10%, 1.90 GHz:0.83%, 1.40 GHz:74.18% (766) |
This should really help out if a user has an Ubuntu installation that is annoying and they wish to force the CPU speed manually.