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?
我从cat / proc / cpuinfo中发现我正在使用Intel(R)Core(TM)i5 CPU M 560 @ 2.67GHz。但我想知道确切的层次结构,例如有多少个套接字,以及每个套接字和线程有多少个核心,如果支持的话。任何想法?
5 个解决方案
#1
5
you can use command
你可以使用命令
lscpu
this will give information
这将提供信息
for processor related info
用于处理器相关信息
dmidecode -t processor
dmidecode -t处理器
#2
8
lstopo
from the hwloc
package reports the info you want:
来自hwloc包的lstopo报告您想要的信息:
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)
#3
3
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
您可以使用likwid-topology -g来获取cpu层次结构。这在linux中默认不可用,你可以使用sudo apt-get install likwid在ubuntu中安装
#4
1
You can obtain this info bylscpu
and nproc
all other is in /proc/cpuinfo
您可以通过lscpu和nproc获取此信息,其他所有信息都在/ proc / cpuinfo中
#5
1
You can look at the core id
and cpu cores
values in /proc/cpuinfo
. They should provide the values you need.
您可以查看/ proc / cpuinfo中的核心ID和cpu核心值。他们应该提供您需要的价值。
Alternatively, look at the specifications page of your processor.
或者,查看处理器的规格页面。
#1
5
you can use command
你可以使用命令
lscpu
this will give information
这将提供信息
for processor related info
用于处理器相关信息
dmidecode -t processor
dmidecode -t处理器
#2
8
lstopo
from the hwloc
package reports the info you want:
来自hwloc包的lstopo报告您想要的信息:
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)
#3
3
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
您可以使用likwid-topology -g来获取cpu层次结构。这在linux中默认不可用,你可以使用sudo apt-get install likwid在ubuntu中安装
#4
1
You can obtain this info bylscpu
and nproc
all other is in /proc/cpuinfo
您可以通过lscpu和nproc获取此信息,其他所有信息都在/ proc / cpuinfo中
#5
1
You can look at the core id
and cpu cores
values in /proc/cpuinfo
. They should provide the values you need.
您可以查看/ proc / cpuinfo中的核心ID和cpu核心值。他们应该提供您需要的价值。
Alternatively, look at the specifications page of your processor.
或者,查看处理器的规格页面。