Coder Social home page Coder Social logo

mlscpu's Issues

Does not work on Mac Mini M1

Thank you for sharing your helpful script!
I tried it on a rented Mac Mini M1, and got the following output:

Architecture: arm64
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s): 8
Thread(s) per core: 1
Core(s) per socket: 8
Socket(s): 1
2023/07/07 11:40:05 Error executing command  sysctl -n machdep.cpu.vendor  :  exit status 1
Vendor ID: 
CPU family: 
2023/07/07 11:40:05 Error executing command  sysctl -n machdep.cpu.model  :  exit status 1
CPU Model: 
Model name: Apple M1
2023/07/07 11:40:05 Error executing command  sysctl -n machdep.cpu.stepping  :  exit status 1
Stepping: 
2023/07/07 11:40:05 Error converting CPU MHz to int:  strconv.Atoi: parsing "": invalid syntax
CPU MHz: 0
2023/07/07 11:40:05 Error converting CPU MHz to int:  strconv.Atoi: parsing "": invalid syntax
CPU max MHz: 0
2023/07/07 11:40:05 Error converting CPU MHz to int:  strconv.Atoi: parsing "": invalid syntax
CPU min MHz: 0
Hyper-Threading Technology: 
L1d cache: 64K
L1i cache: 128K
L2 cache: 4096K
2023/07/07 11:40:06 Error converting cache size to int:  strconv.Atoi: parsing "": invalid syntax
L3 cache: 0K
Flags: 

When I run e.g. sysctl -n machdep.cpu.model, the error is sysctl: unknown oid 'machdep.cpu.model'.

I don't know if I can be of any help debugging this since the M1 is only rented for a short time, but maybe you can add a caveat in your README.md that it only works for Intel Macs :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.