Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu_freq does not work in (at least) Linux Ubuntu 16.04 and Mint 17.2 #981

Closed
roko-p opened this issue Feb 21, 2017 · 2 comments
Closed
Labels

Comments

@roko-p
Copy link

roko-p commented Feb 21, 2017

Trying to import cpu_freq from psutil (latest - 5.1.3) on Linux Mint 17.2 fails. The function does not get defined because there is no /sys/devices/system/cpu/cpufreq on the system (as per this line)

There is, however, /sys/devices/system/cpu/cpu0/cpufreq (and for cpu1, cpu2..)

On Ubuntu 16.04 (at least this one machine), there is /sys/devices/system/cpu/cpufreq but it is empty and therefore cpu_freq() just returns an empty list

@giampaolo
Copy link
Owner

giampaolo commented Feb 21, 2017 via email

@MattiasMartens
Copy link

on 5.10.104-linuxkit (version used by Python3.9 Docker image) cpu_freq() returns None because /proc/cpuinfo only gives a value in BogoMIPS:

BogoMIPS	: 48.00

i am not sure if this is actionable by you but i thought i would mention it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants