cpufreq-userspace-scaler
cpufreq-userspace-scaler copied to clipboard
Fix cpu thread count for hyper-threading cpu
I can not see the improvement here, don't the result is the same ?
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