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?
相关问题
- slurm: use a control node also for computing
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- Error building gcc 4.8.3 from source: libstdc++.so
- Why should we check WIFEXITED after wait in order
You can look at the
core id
andcpu cores
values in/proc/cpuinfo
. They should provide the values you need.Alternatively, look at the specifications page of your processor.
You can obtain this info by
lscpu
andnproc
all other is in/proc/cpuinfo
lstopo
from thehwloc
package reports the info you want:You can use
likwid-topology -g
to get cpu hierarchy. This is not available by default in linux, you can install in ubuntu withsudo apt-get install likwid
you can use command
this will give information
for processor related info