Just In
- 55 min ago TECNO POVA 6 Pro Vs Nothing Phone (2a): Long Lasting Battery or Performance
- 2 hrs ago Tecno Pova 6 Pro 5G Review: The King of Fast Charging with a Small Catch!
- 3 hrs ago BSNL Introduces New Rs 599 and Rs 699 High-Speed Fiber Broadband Plans: Check Details
- 4 hrs ago TECNO POVA 6 Pro Launched in India: Check Price, Specs, Offers
Don't Miss
- Movies Pushpa 2 Teaser Release Date & Time: Here's When Allu Arjun's Action Drama's First Glance Will Premiere
- Finance 1 Share Split To 5 Shares: Luggage Stock VIP Turns Rs 4 Lakh To Rs 13 Lakh; Prabhudas Upgrades To BUY
- Sports RCB vs KKR, IPL 2024: 'I want to beat RCB even in my Dreams', Gautam Gambhir's Explosive take on 'Won It All' Bengaluru Boys
- News RCB vs KKR IPL Live Streaming: Royal Challengers Bengaluru Vs Kolkata Knight Riders Match Stats, Probable XI
- Automobiles Ather Rizta Pre-Bookings Now Open – Ola S1 & TVS iQube Rival
- Education Karnataka KCET 2024: Registration details and more
- Lifestyle Navratri 2024 Date In April: When Will Chaitra Navratri Festival Start? Significance Of 9 Days, Deets Inside!
- Travel Explore Tamil Nadu's Diverse Wedding Venues
How to check processor details in linux
Linux is an open source operating system
NetMarketShare reports that 1.84 percent out of all the PCs connected to the internet were running Linux, and Chrome OS, which is a Linux variant, has about 0.29 percent. These might seem like small numbers, but when you consider that over 250 million PCs are sold every year, the number of PCs running Linux that is connected to the internet go up to more than a million. If you happen to be one of them or if you have a friend or acquaintance who has a Linux PC and needs help with learning about processor or CPU details.
Look no further. The different commands that you need to use in order to learn details about the processor like the number of cores, availability of hyper threading, architecture, cache size etc. are many, and these include Iscpu, /proc/cpuinfo and Istopo (hwloc). They give detailed information about cpu cores/processing units. The examples that are given below explain how to go about interpreting the data that is obtained.
Vendor and model of processor
Search the /proc/cpuinfo file with the grep command.
$ cat /proc/cpuinfo | grep vendor | uniq
vendor_id : GenuineIntel
Once you learn the name of the processor, you can use the model name to look up the exact specifications online on Intel's website.
$ cat /proc/cpuinfo | grep 'model name' | uniq
model name : Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz
Architecture
The Iscpu command can be used to learn more about the architecture
$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
.....
This proves that the architecture is x86_64 which is 64 bit.
Frequency
The frequency/speed of the processor is reported by both Iscpu and /proc/cpuinfo
$ lscpu | grep -i mhz
CPU MHz: 1998.000
$ cat /proc/cpuinfo | grep -i mhz | uniq
cpu MHz : 1998.000
The number of cores
If you have multiple cores in your CPU, your processor speed will also be much faster.
The Iscpu command will indicate the "cores per socket"
$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
But counting only the number of processors would give you wrong numbers because, in hyperthreaded processors, the number of processors that the operating system sees is twice the number of cores. However /proc/cpuinfo has a field that is named ‘core id' which is a unique id for each core in a single processor. To know the actual number of cores on the processor, you can count the core id.
$ cat /proc/cpuinfo | grep -i 'core id'
core id : 0
core id : 2
core id : 1
core id : 3
Hyper threading
Hyper threading allows individual cores to behave like 2 logical processing units. This will increase the processing power of each core. You will need to compare two different values to learn if a processor has threading or not.
If the number of processing units is equal to the number of cores, that means there is no hyper threading. If the number of processing units is more than the number of cores, then there is hyperthreading.
-
99,999
-
1,29,999
-
69,999
-
41,999
-
64,999
-
99,999
-
29,999
-
63,999
-
39,999
-
1,56,900
-
1,39,900
-
1,29,900
-
79,900
-
65,900
-
12,999
-
96,949
-
16,499
-
38,999
-
49,999
-
30,700
-
12,500
-
68,999
-
23,990
-
1,25,999
-
36,999
-
38,999
-
1,17,840
-
35,000
-
23,960
-
82,510