pncnmnp / mlscpu Goto Github PK
View Code? Open in Web Editor NEWlscpu for macOS
License: MIT License
lscpu for macOS
License: MIT License
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 :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.