-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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.Info() returns error when clock speed not available #282
Comments
This specific device is a Synology branded RS815 NAS. The admin web UI for the device shows a clock speed of 1.33ghz, so perhaps gopsutil should fallback to the |
FYI I found another device running linux 3.2.26 where |
From the little bit of work I've done on ARM it seems that missing cpufreq is common and likely never going to be fully covered. So on systems lacking cpufreq it might be worth falling back to There are 3 significant downsides to this:
Still seems worth trying in a fallback. |
@tmm1 Sorry for very very late response. I created #335 which just ignore error. Does this resolve your problem? @schmichael Thank you for researching. I agree your downside view about |
@shirou Seems reasonable to me. Could I open a new issue (and maybe a PR someday soon) for adding a dmidecode fallback? I know it's of extremely limited usefulness, so feel free to say "no thanks." |
@shirou Thanks, that resolves my issue. I also have some other changes locally which you might find useful: fancybits/gopsutil@8abfc8b parse bogomips values @schmichael Thanks for the |
@tmm1 sorry, when I close #335, also closed this issue. 3499dec |
@shirou Thank you. No problem, I am glad they are included in master now. |
I'm getting the following error from
cpu.Info()
:on an ARM device that has no clock speed entry in
/proc/cpuinfo
:and no
cpufreq
node available under/sys/.../cpu
:In this case, I think it would be useful to return the known information about the CPUs, even if the Mhz field is set to 0.
The text was updated successfully, but these errors were encountered: