Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command to find information about CPUs on a UNIX machine

Tags:

unix

cpu

Do you know if there is a UNIX command that will tell me what the CPU configuration for my Sun OS UNIX machine is? I am also trying to determine the memory configuration. Is there a UNIX command that will tell me that?

like image 221
Peter Delaney Avatar asked May 06 '09 20:05

Peter Delaney


People also ask

How do I find CPU in Unix?

Open a terminal. 2. Use the cat command to display the data held in /proc/cpuinfo. This command will produce a lot of text, typically it will repeat the same information for the number of cores present in your CPU.

How do I find my CPU information?

Head to Control Panel > System and Security > System to open it. You can also press Windows+Pause on your keyboard to instantly open this window. Your computer's CPU model and speed are displayed to the right of “Processor” under the System heading.

How do you find out what CPU I have Linux?

Get CPU Info in Linux The simplest way to determine what type of CPU you have is by displaying the contents of the /proc/cpuinfo virtual file. Identifying the type of processor using the proc/cpuinfo file does not require installing any additional programs. It will work no matter what Linux distribution you are using.


2 Answers

There is no standard Unix command, AFAIK. I haven't used Sun OS, but on Linux, you can use this:

cat /proc/cpuinfo 

Sorry that it is Linux, not Sun OS. There is probably something similar though for Sun OS.

like image 194
Zifre Avatar answered Oct 01 '22 21:10

Zifre


The nproc command shows the number of processing units available:
$ nproc

Sample outputs: 4

lscpu gathers CPU architecture information form /proc/cpuinfon in human-read-able format:
$ lscpu

Sample outputs:

Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 1
Core(s) per socket: 4
CPU socket(s): 2
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 15
Stepping: 7
CPU MHz: 1866.669
BogoMIPS: 3732.83
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 4096K
NUMA node0 CPU(s): 0-7

like image 29
abanmitra Avatar answered Oct 01 '22 21:10

abanmitra