Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find my CPU topology?

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

like image 550
Pensu Avatar asked Aug 23 '13 11:08

Pensu


1 Answers

lstopo from the hwloc package reports the info 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)
like image 189
Sebastian Kuzminsky Avatar answered Sep 21 '22 12:09

Sebastian Kuzminsky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!