Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compute the theoretical peak performance of CPU

Here is my cat /proc/cpuinfo output:

...

processor           : 15
vendor_id           : GenuineIntel
cpu family          : 6
model               : 26
model name          : Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping            : 5
cpu MHz             : 1600.000
cache size          : 8192 KB
physical id         : 1
siblings            : 8
core id             : 3
cpu cores           : 4
apicid              : 23
fpu                 : yes
fpu_exception       : yes
cpuid level         : 11
wp                  : yes
flags               : fpu vme de pse tsc msr pae mce cx8 apic ...
bogomips            : 4533.56
clflush size        : 64
cache_alignment     : 64
address sizes       : 40 bits physical, 48 bits virtual
power management    :

This machine has two CPUs, each with 4 cores with hyperthreading capability, so the total processor number is 16(2 CPU * 4 core * 2 hyperthreading). These processors have same output, to keep clean, I just show the last one's info and omit part of flags in the flags line.

So how do I calculate the peak performance of this machine in terms of GFlops? Let me know if more info should be supplied.

Thanks.

like image 336
user435657 Avatar asked Jun 09 '11 07:06

user435657


1 Answers

You can check the Intel export spec. The GFLOP in the chart is usually referred as the peak of a single chip. It shows 36.256 Gflop/s for E5520.

This single chip has 4 physical cores with SSE. So this GFLOP can also be calculated as: 2.26GHz*2(mul,add)*2(SIMD double precision)*4(physical core) = 36.2.

You system has two CPUs, so your peak is 36.2*2 = 72.4 GFLOP/S.

like image 94
Tom Avatar answered Oct 08 '22 15:10

Tom