Skip to content

The sensor fails to read performance events inside a kubernetes container #1

Open
@PierreRustOrange

Description

@PierreRustOrange

When running the sensor inside a kubernetes container it fails to read some performance events.

When running the following command

/usr/bin/hwpc-sensor "test" -n test  -r csv -U "/reporting/" 
   -s "rapl" -o -e "RAPL_ENERGY_PKG" 
   -s "msr"  -e "TSC" -e "APERF" -e "MPERF" 
  -c "core" -e "CPU_CLK_THREAD_UNHALTED:REF_P" -e "CPU_CLK_THREAD_UNHALTED:THREAD_P" -e "LLC_MISSES" -e "INSTRUCTIONS_RETIRED"

I get this error:

I: 20-06-16 15:00:37 build: version unknown (rev: 7a63055ff2fdfbfdf776d42188a87de19882dd88) (Jun  8 2020 - 13:05:23)
I: 20-06-16 15:00:37 uname: Linux 5.3.0-59-generic #53~18.04.1-Ubuntu SMP Thu Jun 4 14:58:26 UTC 2020 x86_64
E: 20-06-16 15:00:37 config: event 'TSC' is invalid or unsupported by this machine

I have this issue with TSC, MPERF and APERF, but other events (RAPL, etc) work fine.

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