Applies only if you have AMD CPU or any other cpufreq-driven non-intel CPU. Intel CPUs use newer pstate driver, completely omitting CPU load polling (much more efficient).
Originally Posted by ciupenhauer
This will reduce CPU bottleneck of your graphics pipe on small loads (text scrolling, desktop effects and such).
Set wake-up frequency for ondemand to 25% from 95%:
echo "25" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
Reduce state checking time, forcing CPU to stay up or down longer. Will improve response and performance, but slight risk to worsen power usage. Using higher values will lead to response loss, but higher performance:
echo "100" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
Comparison of effect on compilation:
If you have AMD APU I suggest you to try newest PM patchset, prior versions have TDP frequencies locked at safe ranges all time. This results in 1/3 of performance for sake of not burning the chip.
sampling_down_factor merge time
1 (default) 1 minute and 59 seconds.
20 1 minute and 47 seconds.
100 1 minute and 29 seconds.
150 1 minute and 24 seconds.
200 1 minute and 22 seconds.
300 1 minute and 20 seconds.
500 1 minute and 12 seconds.
1500 1 minute and 7 seconds
To override (only desktops) see this post, should not be needed with new PM code anymore.