Leave a comment

To find number of CPU Cores and Virtual Cores Linux / Windows

To check or count number of CPU you can get output by executing below commands on Linux Terminal:

To Count number of CPUs: 

cat /proc/cpuinfo | grep processor

Output :

2

To check the number of cores !
cat /proc/cpuinfo | grep 'core id'
core id         : 0
core id         : 1

$lscpu
Architecture:          i686
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:    2
Socket(s):             1
Vendor ID:             GenuineIntel
CPU family:            15
Model:                 4
Stepping:              7
CPU MHz:               2792.992
BogoMIPS:              5585.98
L1d cache:             16K
L2 cache:              1024K
OR
grep -Pc '^processor\t' /proc/cpuinfo


For Windows Users Use CPU-Z

http://www.cpuid.com/softwares/cpu-z.html

Or

Open Command Prompt and run:

WMIC CPU Get DeviceID,NumberOfCores,NumberOfLogicalProcessors

CPU-check

Open Command Prompt and run:
WMIC CPU Get /Format:List

Example Output:
AddressWidth=32
Architecture=9
Availability=3
Caption=x64 Family 6 Model 69 Stepping 1
CpuStatus=1
CreationClassName=Win32_Processor
CurrentClockSpeed=1701
CurrentVoltage=12
DataWidth=64
Description=x64 Family 6 Model 69 Stepping 1
DeviceID=CPU0
ExtClock=100
Family=11
L2CacheSize=512
L3CacheSize=2048
L3CacheSpeed=0
Level=6
LoadPercentage=3
Manufacturer=GenuineIntel
MaxClockSpeed=1701
Name=Intel(R) Pentium(R) 3558U @ 1.70GHz
NumberOfCores=2
NumberOfLogicalProcessors=2……..

Ctrl + Shift + Esc To  open the Windows Task Manager ==> Performance  Now see boxes in the CPU Usage History section which will show how many cores you have. It has hyper threaded cores also.

Example windows:

CPU-check

 

 

 

Leave a Reply

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