Skip to content

Collector does not work with 12th Gen Intel CPU's #1480

@weiznich

Description

@weiznich

Executing `` may fail with the following error messages on a 12th Gen Intel CPU:

thread 'main' panicked at 'measurement of `cpu_core/instructions:u/` only active for 99.97% of the time', collector/src/execute/mod.rs:595:13

and after replacing this panic message with a println

measurement of `cpu_core/instructions:u/` only active for 99.93% of the time
measurement of `cpu_atom/instructions:u/` only active for 0.22% of the time
measurement of `cpu_core/cycles:u/` only active for 99.93% of the time
measurement of `cpu_atom/cycles:u/` only active for 0.22% of the time
measurement of `cpu_core/branch-misses/` only active for 99.93% of the time
measurement of `cpu_atom/branch-misses/` only active for 0.22% of the time
measurement of `cpu_core/cache-misses/` only active for 99.93% of the time
measurement of `cpu_atom/cache-misses/` only active for 0.22% of the time
measurement of `cpu_atom/instructions:u/` only active for 0.00% of the time
thread 'main' panicked at 'process_perf_stat_output failed: ParseError("<not counted>", ParseFloatError { kind: Invalid })', collector/src/execute/bencher.rs:267:17

I suspect that this is due to how perf records events on these hybrid CPU's: https://github.com/torvalds/linux/blob/master/tools/perf/Documentation/intel-hybrid.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions