psutil icon indicating copy to clipboard operation
psutil copied to clipboard

[centos 7] Inconsistent units in cpu_freq

Open dladams opened this issue 3 years ago • 3 comments

Summary

  • OS: centos 7
  • Architecture: 64 bit
  • Psutil version: 5.9.0
  • Python version: 3.8.12
  • Type: core

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

dladams avatar Mar 28 '22 17:03 dladams

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

giampaolo avatar Sep 19 '22 22:09 giampaolo

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 .

hammy275 avatar Oct 06 '22 15:10 hammy275