I need to get CPU cores and details per CPU core. I use cat /proc/cpuinfo
command an it works. But I need to get information for multiple CPU packages. I have only single CPU package. How would the output look like in this situation?
Example CPU setup: 2 CPU packages: CPU package1: Core i7-2000 (4 physical, 8 logical cores), CPU package2: Core i7-3000 (4 physical, 8 logical cores), total 8 physical, 16 logical cores.
Example 1:
processor : 0
. other info for same core
model name : Intel(R) Core(TM) i7-2000
.
. other cores for same CPU package
.
processor : 7
. other info for same core
model name : Intel(R) Core(TM) i7-2000
.
processor : 8
. other info for same core
model name : Intel(R) Core(TM) i7-3000
.
. other cores for same CPU package
.
processor : 15
. other info for same core
model name : Intel(R) Core(TM) i7-3000
or Example 2:
processor : 0
. other info for same core
model name : Intel(R) Core(TM) i7-2000
.
. other cores for same CPU package
.
processor : 7
. other info for same core
model name : Intel(R) Core(TM) i7-2000
.
processor : 0
. other info for same core
model name : Intel(R) Core(TM) i7-3000
.
. other cores for same CPU package
.
processor : 7
. other info for same core
model name : Intel(R) Core(TM) i7-3000
OS: Debian-like Linux, Kernel: 4.19
i7z
./proc/cpuinfo
or process it by using default system applications.