Relation between cpu, multi-processor and multi-core; how many cores my computer has

330 Views Asked by At

My OS is Ubuntu 18.04, my computer cpu is Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz

When I use cat /proc/cpuinfo, I find my cpu has 12 (processor 1 - 11) processors. Every processor has info as below, take process 1 as an example

processor : 1

cpu family : 6
model : 158
model name : Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz stepping : 10
microcode : 0xde
cpu MHz : 800.021
cache size : 12288 KB
physical id : 0
siblings : 12
core id : 1
cpu cores : 6
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 22

We see each processor has 6 cores (cpu cores : 6).

(1) In my opinion, the total number of cores of my computer = #processors * #cores per processor = 12 * 6 = 72 cores . Is that correct understanding?

(2) When I search my cpu Intel(R) Core(TM) i7-8700 CPU info online, I find that the data sheet only says its # of Cores 6 ; # of Threads 12

https://ark.intel.com/content/www/us/en/ark/products/126686/intel-core-i7-8700-processor-12m-cache-up-to-4-60-ghz.html

It does not mention it has 12 processors at all. Why? is it because # of processors is not as important as # of cores?

(3) And what does # of Threads 12 mean, does every core supports running 12 threads simultaneously? Then my computer supports 72*12 threads simultaneously if (1) is correct.

(4) What I have learnt is that there is only one thread running in one core at a specific moment, so multi threads running simultaneously on one core is also possible? If yes, do those threads need to belong to the same process or not?

Thank you so much for your help!

0

There are 0 best solutions below