As explained in the ubuntu faq about Origami the only solution to limit cpu usage is cpulimit... BUT, according to the page for F@H on Notebook, you can configure your cpu governor to ignore nice processes, so the frequency will not grow up when starting Origami :
echo 1 | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load
or in your /etc/rc.local to activate it at boot :
echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load
echo 1 > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/ignore_nice_load
echo 1 > /sys/devices/system/cpu/cpu2/cpufreq/ondemand/ignore_nice_load
echo 1 > /sys/devices/system/cpu/cpu3/cpufreq/ondemand/ignore_nice_load
# ... and the same for each cpuN
You can change your cpu governor by using cpufreq-set :
cpufreq-set -r -g ondemand # will set the governor ondemand
cpufreq-set -r -g performance # will set the governor performance
Here is the list of the cpu governors :
- ondemand scales up CPU speed as long as the CPU load remains high.
- conservative does the same, but slower, and backs off quicker
- performance stays at the max CPU speed, all the time.
- powersave stays at the min CPU speed, all the time.