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
or every cpu but cpu0: for i in $(seq 1 $(nproc --ignore=1)); do echo 0 > /sys/devices/system/cpu/cpu$i/online; done
cpu_freq needs one more case to skip offline cpus (or ones without the sysfs files for frequency, which means the same thing)
Experienced the same issue after turning some cores off.
File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 1864, in cpu_freq
ret = _psplatform.cpu_freq()
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 742, in cpu_freq
raise NotImplementedError(
NotImplementedError: can't find current frequency file
python3-psutil (5.9.2) on fedora 38
turn cpu1 off:
echo 0 > /sys/devices/system/cpu/cpu1/online
or every cpu but cpu0:
for i in $(seq 1 $(nproc --ignore=1)); do echo 0 > /sys/devices/system/cpu/cpu$i/online; done
cpu_freq needs one more case to skip offline cpus (or ones without the sysfs files for frequency, which means the same thing)
psutil/psutil/_pslinux.py
Line 749 in 7eadee3
The text was updated successfully, but these errors were encountered: