How To Find the CPU Information on Centos 7

In this article, we want to teach you How To Find or Check CPU Information (CPU Info) on Centos 7.

The Central Processing Unit (CPU) in your server, also referred to simply as the processor, is what interprets and executes instructions, processing data, and performs tasks like serving web pages, running database queries, and executing other program and computing commands.

How To Find CPU Information on Centos 7

To complete this guide, you need to log in to your server as a root user or a non-root user with sudo privileges. To do this, you can follow our article, the Initial Server Setup with Centos 7.

Now follow the steps below to find out your CPU (Central Processing Unit) information on your server.

Display CPU Information of Centos 7

To display the CPU architecture of your Centos 7, you can use the following command:

lscpu

In your output, you will see something similar to this:

Output
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 2
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 13
Model name: QEMU Virtual CPU version 2.5+
Stepping: 3
CPU MHz: 2199.996
BogoMIPS: 4399.99
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 4096K
L3 cache: 16384K
NUMA node0 CPU(s): 0,1
Flags: fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl xtopology eagerfpu pni cx16 x2apic hypervisor lahf_lm

Also, you can use another command to display your CPU information on Centos 7:

cat /proc/cpuinfo

List Physical CPU on Centos 7

To see how many physical CPUs are in your Centos 7, you can use the following command:

grep physical.id /proc/cpuinfo | sort -u | wc -l

Display the Number of Cores per CPU for Centos

Next, to list the number of cores per CPU for Centos 7, you can run the following command:

grep cpu.cores /proc/cpuinfo | sort -u

List Logical Processors on Centos 7

Then, you can display the number of logical processors for Centos 7 with the command below:

grep processor /proc/cpuinfo | wc -l

Another way is to use the command below:

dmidecode -t4

Check CPU Sockets on Centos 7

Also, you can find out the number of CPU sockets on your Centos 7 with the following command:

grep physical.id /proc/cpuinfo | sort -u | wc -l

Or, you can use the lscpu command:

lscpu | grep -i "socket(s)"

Conclusion

At this point, you learn to easily find your CPU info on your Centos 7 server.

Hope you enjoy it.

May you will be interested in these articles:

How To Set up PHP Composer on Centos 7.

Set up MediaWiki on Centos 7.

How To Install Anaconda on Centos 7.

How To Install VirtualBox on Centos 7.

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Leave a Reply

Your email address will not be published. Required fields are marked *

Stay informed and not overwhelmed, subscribe now!