You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't have a system with different min/max frequencies on the processors to show the problem, so I don't actually have a visible bug.
But looking at the code in psutils/_pslinux.py for cpu_freq() and doing the similar iteration on a server with 88 processors:
>> paths = sorted(glob.glob("/sys/devices/system/cpu/cpufreq/policy[0-9]*") or glob.glob("/sys/devices/system/cpu/cpu[0-9]*/cpufreq"))
>>> for i, p in enumerate(paths): print(i, p)
...
0 /sys/devices/system/cpu/cpufreq/policy0
1 /sys/devices/system/cpu/cpufreq/policy1
2 /sys/devices/system/cpu/cpufreq/policy10
3 /sys/devices/system/cpu/cpufreq/policy11
4 /sys/devices/system/cpu/cpufreq/policy12
5 /sys/devices/system/cpu/cpufreq/policy13
6 /sys/devices/system/cpu/cpufreq/policy14
7 /sys/devices/system/cpu/cpufreq/policy15
8 /sys/devices/system/cpu/cpufreq/policy16
9 /sys/devices/system/cpu/cpufreq/policy17
10 /sys/devices/system/cpu/cpufreq/policy18
11 /sys/devices/system/cpu/cpufreq/policy19
12 /sys/devices/system/cpu/cpufreq/policy2
13 /sys/devices/system/cpu/cpufreq/policy20
The alphabetic sorting of the files looses correct cpu-order with more than 9 CPUs.
This means that [min, max] for cpu2 will be taken from cpu10, etc.
The text was updated successfully, but these errors were encountered:
Summary
Description
I don't have a system with different min/max frequencies on the processors to show the problem, so I don't actually have a visible bug.
But looking at the code in psutils/_pslinux.py for cpu_freq() and doing the similar iteration on a server with 88 processors:
The alphabetic sorting of the files looses correct cpu-order with more than 9 CPUs.
This means that [min, max] for cpu2 will be taken from cpu10, etc.
The text was updated successfully, but these errors were encountered: