amanusk / s-tui

Terminal-based CPU stress and monitoring utility
https://amanusk.github.io/s-tui/
GNU General Public License v2.0
4.14k stars 141 forks source link

No Fequency Graphs on Ryzen 5950x #182

Open DocMAX opened 2 years ago

DocMAX commented 2 years ago

s-tui 1.1.3 grafik

luoe commented 2 years ago

Same behavior with weird low reported frequencies on an Intel Core i5-1135G7. Other programs such as powertop or manually reading from /sys/devices/system/cpu/cpufreq/policy{0..7}/scaling_cur_freq work as intended.

s-tui: 1.1.3 Linux: 5.15.13

amanusk commented 2 years ago

Thanks for opening the issue. This seems to be the same problem as #180 Frequency is reported in GHz, while Min/Max is reported in Mhz.

The change originates from a change in psutil, the fix for which should be already in the works.

I suggest we wait for the psutil

luoe commented 2 years ago

@DocMAX if you use Archlinux/Manjaro, you can try do downgrade python-psutil to 5.8.0. This resolves this issue for now and only one core showing the exact frequency:

sudo pacman -U https://archive.archlinux.org/packages/p/python-psutil/python-psutil-5.8.0-4-x86_64.pkg.tar.zst

And add

IgnorePkg   = python-psutil

to pacman.conf under [options].

genema commented 2 years ago

This can be solved by downgrading psutil to v5.8.0 .

wc7086 commented 2 years ago
psutilVersion=`pip show psutil | grep 'Version' | awk -F ': ' '{print $2}'` \
&& psutilLocation=`pip show psutil | grep 'Location' | awk -F ': ' '{print $2}'`/psutil \
&& [ $psutilVersion == 5.9.0 ] \
&& sudo sed -i "/curr = cpuinfo_freqs\[i\]$/ s/$/ * 1000/" $psutilLocation/_pslinux.py

or If you know the directory where psutil is stored.

sudo sed -i "/curr = cpuinfo_freqs\[i\]$/ s/$/ * 1000/" /usr/lib/python3.10/site-packages/psutil/_pslinux.py
brunodrugowick commented 2 years ago

In Ubuntu-based distros, this should fix, but I don't know if it has side effects:

pip install --upgrade psutil==5.8.0

Edit: with the release of psutil@5.9.1 you can also just do pip install --upgrade psutil now. Also see https://github.com/amanusk/s-tui/issues/180#issuecomment-1226481057.

ejgallego commented 2 years ago

Duplicate of #180