Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sort CPUs/cores in disable turboboost script numerically. (#95)
* Sort CPUs/cores in disable turboboost script numerically. This results in a slightly easier to understand outcome. On CPUs like where there are 8+8 cores with hyperthreading and cpu0 is on the same core as cpu9, cpu1 and cpu10 etc. Since the script went through cpus lexicographically, it did traverse cpu 10-15 before doing 2-9. This resulted in disabling cpus 2-9, while cpu0, cpu1 and cpu 10-15 were online which is very confusing. Now it sorts things numerically, so goes through them in a more predictable order and the results is more predictable: in this particular case, cpu 0-7 are online, and cpu 8-15 are disabled. In more general words: the cpu with the lowest number of each core is still online, higher numbers are disabled.
- Loading branch information