giampaolo / psutil

Cross-platform lib for process and system monitoring in Python
BSD 3-Clause "New" or "Revised" License
10.2k stars 1.38k forks source link

[centos 7] Inconsistent units in cpu_freq #2087

Open dladams opened 2 years ago

dladams commented 2 years ago

Summary

Description

I am running on HPCs at NERSC. On both cori and perlmutter psutil.cpu_freq() returns something like:

scpufreq(current=1.795, min=1500.0, max=2000.0)

i.e. current appears to be in GHz while min and max are in MHz. Documentation and example there show everything in MHz.
This is psutil 5.9.0.

I tries to check on my laptop (macOS 12.3 M1) but get a file not found error.

Thank you.
David Adams

giampaolo commented 1 year ago

If you still have access to this machine, can you please paste the output of cat /proc/cpuinfo?

hammy275 commented 1 year ago

I'm not the OP, but I'm having the same issue. OS: Linux Mint 21 Architecture: 64 bit Psutil version: 5.9.0 Python version: 3.10.6

Here's a gist containing my output from cat /proc/cpuinfo

https://gist.github.com/hammy3502/7787ecdb1a9f3c2802bd17ba65e83aa5#file-i5-10210u-txt .