mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-14 22:17:26 +01:00
30 lines
936 B
Plaintext
30 lines
936 B
Plaintext
SHORT Branch prediction miss rate/ratio
|
|
|
|
EVENTSET
|
|
FIXC0 INSTR_RETIRED_ANY
|
|
FIXC1 CPU_CLK_UNHALTED_CORE
|
|
PMC0 BR_INST_RETIRED_ANY
|
|
PMC1 BR_INST_RETIRED_MISPRED
|
|
|
|
METRICS
|
|
Runtime (RDTSC) [s] time
|
|
Runtime unhalted [s] FIXC1*inverseClock
|
|
CPI FIXC1/FIXC0
|
|
Branch rate PMC0/FIXC0
|
|
Branch misprediction rate PMC1/FIXC0
|
|
Branch misprediction ratio PMC1/PMC0
|
|
Instructions per branch FIXC0/PMC0
|
|
|
|
LONG
|
|
Formulas:
|
|
Branch rate = BR_INST_RETIRED_ANY/INSTR_RETIRED_ANY
|
|
Branch misprediction rate = BR_INST_RETIRED_MISPRED/INSTR_RETIRED_ANY
|
|
Branch misprediction ratio = BR_INST_RETIRED_MISPRED/BR_INST_RETIRED_ANY
|
|
Instructions per branch = INSTR_RETIRED_ANY/BR_INST_RETIRED_ANY
|
|
-
|
|
The rates state how often on average a branch or a mispredicted branch occurred
|
|
per instruction retired in total. The branch misprediction ratio sets directly
|
|
into relation what ratio of all branch instruction where mispredicted.
|
|
Instructions per branch is 1/branch rate.
|
|
|