Skip to content

[MacOS] psutil.cpu_freq() broken on Apple M1 #1892

@Lomanic

Description

Summary

  • OS: MacOS
  • Architecture: Apple M1
  • Psutil version: N/A
  • Python version: N/A
  • Type: core

Description

Sorry that I couldn't provide some of the info in the template as I don't own an Apple M1 device, but it is highly suspected that calling psutil.cpu_freq() on Apple M1 is failing as the hw.cpufrequency sysctl call (used here) was removed on this arch (can be checked with sysctl hw.cpufrequency on any Apple M1 device, while it is working on amd64).

See shirou/gopsutil#999 and shirou/gopsutil#1000

In shirou/gopsutil#999 a fix was suggested but I couldn't confirm it.

psutil user-base is probably bigger than gopsutil's so I hope this will help both projects find a solution or confirm @shoenig fix in his PR.

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions