cpu - how many instructions can it execute in one second? -
- a processor has 4 cores
- each core has 2 - hyper threads
- its clock frequency 2 ghz
- on average, instruction needs 4 cpu cycles execute on each hyperthread
how many instructions can execute in 1 second? need equations use. know 1 ghz has 1 cpu cycle @ 1 nano second therefore 2 ghz 1 cpu cycle in .5 nano seconds.
well, i'll started, it's basic math problem.
2ghz - frequency, in [cycles/second]. 4 - instruction duration, in [cycles/ops].
so 2ghz [cycles/second] / 4 [cycles/ops] = 0.5ghz [ops/second]
. note cycles unit cancels out , "feels right" because we're left units being asked :)
do similar math account hyper-threads , cores - multiplication. (you can carry through units, e.g. [ops*threads*cores/second]
, can dropped in context of answer asking ops/second across all v-cores.)
Comments
Post a Comment