The Ubuntu kernel is shipped with CPU controlling governors, normally set to
ondemand they will regulate the performance of your CPU in your Ubuntu system.
You can change the CPU performance setting in Ubuntu per logical CPU.
Start by reading the current available settings for your system:
sudo cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
this will return a list of available settings you can use to regulate each core of your CPU, if you can you should then set them to max performance by selecting the
performance option. This will make your CPU cores run always at max frequency.
Knowing what options you have and if the
performance option is available, you can then set each core to
performance mode with the command:
sudo echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
this will make cpu0 (first core) run all the time at max performance. Do it for all the logical cores in your CPU.
You can then check if the option was successfully changed with the command:
sudo cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
this will check the current set option for cpu0 (first core). Check if the change was successful for all cores and if everything was set correctly you are good to go: Intel SpeedStep will be on but all your cores will be running at max frequency speed all the time.
You can then check and get information about the actual frequency using
cpufreq-info from the package
cpufrequtils in the universe repository, it will report per core the actual speed and a lot of other information including the set governor, but you need to install it first using the command
sudo apt-get install cpufrequtils.
cpufrequtils 007: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to firstname.lastname@example.org, please.
analyzing CPU 0:
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 8.0 us.
hardware limits: 800 MHz - 3.00 GHz
available frequency steps: 3.00 GHz, 2.30 GHz, 1.80 GHz, 800 MHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance
current policy: frequency should be within 800 MHz and 3.00 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 800 MHz.
cpufreq stats: 3.00 GHz:10.45%, 2.30 GHz:0.29%, 1.80 GHz:1.72%, 800 MHz:87.55% (28605)