-
-
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.CpuInfo() return empty data on Raspberry Pi #88
Comments
Thank you for the report! I prefer more widely used way. I think your a) |
@shirou awesome. i would love to contribute :-)
I am thinking of several things, but not sure which one is best.
arm lscpu output
|
@ranjib Thank you for the information. On my understanding, only ARM can not get information from
Will that work? |
ARM CPUs don't include the same fields as x86 and amd64 CPUs in the /proc/cpuinfo list. Pull information from the /sys/... device tree as well as updating when a CPU is done in cpuinfo. Fixes shirou#88
cpu.CPUInfo() returns empty data on Raspberry Pi 2 (quadcore, ARM v7) running ubuntu 15.04 (kernel 3.17) . This is due to /proc/cpuinfo being differently formatted. Following is an example:
CPU frequency cant be obtained from /proc/cpuinfo on ARM. There are two ways to get this data:
a) Invoke
lscpu
and parse the resulting datab) read /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq (one entry for each core)
I dont know whats the preferred way to implement this, @shirou if you can give some feedback, i'd be happy to implement this :-)
thanks for this awesome library
The text was updated successfully, but these errors were encountered: