How do I find my CPU topology?

2020-07-05 12:26发布

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?

5条回答
淡お忘
2楼-- · 2020-07-05 12:32

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

Alternatively, look at the specifications page of your processor.

查看更多
姐就是有狂的资本
3楼-- · 2020-07-05 12:34

You can obtain this info by
lscpu and nproc all other is in /proc/cpuinfo

查看更多
爷、活的狠高调
4楼-- · 2020-07-05 12:35

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)
查看更多
Luminary・发光体
5楼-- · 2020-07-05 12:36

You can use likwid-topology -g to get cpu hierarchy. This is not available by default in linux, you can install in ubuntu with sudo apt-get install likwid

查看更多
smile是对你的礼貌
6楼-- · 2020-07-05 12:37

you can use command

lscpu

this will give information

for processor related info

dmidecode -t processor

查看更多
登录 后发表回答