Help needed: Find cpu type from python
Posted: January 24th, 2017, 2:16 pm
Hi,
On Linux, SABnzbd finds and reports the CPU on which SAB is running. That's handy in case of performance issues.
I've now extended that to Windows en MacOS (see https://github.com/sanderjo/getcpu/blob ... /getcpu.py). It's lacking on FreeBSD because I have no access to FreeBSD.
Could you help?
First:
What is the output of:
Second:
What is a handy command to find the CPU? Suggestions I found on the web:
What is the result of those command on FreeBSD? Do you need to be root?
On Linux, SABnzbd finds and reports the CPU on which SAB is running. That's handy in case of performance issues.
I've now extended that to Windows en MacOS (see https://github.com/sanderjo/getcpu/blob ... /getcpu.py). It's lacking on FreeBSD because I have no access to FreeBSD.
Could you help?
First:
What is the output of:
Code: Select all
python -c "import platform ; print platform.system()"
What is a handy command to find the CPU? Suggestions I found on the web:
Code: Select all
sysctl hw.model
Code: Select all
dmesg | grep -i cpu