cpufreq-userspace-scaler icon indicating copy to clipboard operation
cpufreq-userspace-scaler copied to clipboard

Fix cpu thread count for hyper-threading cpu

Open ravikwow opened this issue 2 years ago • 2 comments

ravikwow avatar Dec 01 '22 13:12 ravikwow

I can not see the improvement here, don't the result is the same ?

tdannenmuller avatar Dec 01 '22 14:12 tdannenmuller

I can not see the improvement here, don't the result is the same ?

No, my code return 3 for processor with 2 cores and hyperthreading, your code return 1. ash-4.4# grep cores /proc/cpuinfo | sort -u cpu cores : 2 ash-4.4# grep -c processor /proc/cpuinfo 4 ash-4.4# cat /proc/cpuinfo | grep name model name : Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz model name : Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz model name : Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz model name : Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz

ravikwow avatar Dec 01 '22 17:12 ravikwow