How to find processor topology?

I am using Intel (R) Core (TM) i5 CPU M 560 @ 2.67 GHz, as I learned from cat /proc/cpuinfo . But I want to know the exact hierarchy, like how many sockets exist, and how many cores there are for each socket and threads, if supported. Any idea?

+6
source share
5 answers

you can use the command

lscpu

this will give information

for processor information

dmidecode -t processor

+5
source

lstopo from the lstopo package reports the information you want:

 Socket L#0 + L3 L#0 (6144KB) L2 L#0 (256KB) + L1 L#0 (32KB) + Core L#0 PU L#0 (P#0) PU L#1 (P#1) L2 L#1 (256KB) + L1 L#1 (32KB) + Core L#1 PU L#2 (P#2) PU L#3 (P#3) L2 L#2 (256KB) + L1 L#2 (32KB) + Core L#2 PU L#4 (P#4) PU L#5 (P#5) L2 L#3 (256KB) + L1 L#3 (32KB) + Core L#3 PU L#6 (P#6) PU L#7 (P#7) 
+8
source

You can use likwid-topology -g to get the processor hierarchy. This is not possible by default on linux, you can install on ubuntu using sudo apt-get install likwid

+3
source

You can get this information using lscpu and nproc all the rest are in /proc/cpuinfo

+1
source

You can see the core id and cpu cores values ​​in /proc/cpuinfo . They should provide the values ​​you need.

Alternatively, view your processor page specification .

+1
source

Source: https://habr.com/ru/post/952355/


All Articles