Comment 5 for bug 511794

Revision history for this message
karatedog (karatedog) wrote :

I can confirm that cpufreq-selector has strange behavior in Ubuntu 10.04.

cpufreq-selector never hangs, it is just very slow if issued this way: 'sudo cpufreq-selector -c 1 -g performance'
I noticed that it takes almost exactly 30 seconds to finish the operation, which is strange.

$ time sudo cpufreq-selector -c 1 -g performance
real 0m30.300s
user 0m0.008s
sys 0m0.004s

$ time sudo cpufreq-selector -c 1 -g performance
real 0m30.252s
user 0m0.004s
sys 0m0.004s

$ time sudo cpufreq-selector -c 1 -g performance
real 0m30.061s
user 0m0.004s
sys 0m0.004s

However if I set SUID on 'cpufreq-selector' and issue: 'cpufreq-selector -c 1 -g performance', it will be lightning fast, tested about 1000 times.