Flamegraph shows a lot of overhead from perf_event

240 views Asked by At

I am new to BPF and perf, I am using

perf record -F 150 -g -p $(pidof  app_name)  -- sleep  60

to profiling a pub sub based app, the publisher side is around 100HZ. and flamegraph is dominated by perf_event, which I think it is related to the tracing. My question:

  1. is this normal ? I perf-ed other toy example(non-pub-sub), which does not have this kind of overhead showing up.
  2. what is the tuning trick I can do to perf my own app ? without showing the overhead of the perf itself ?

enter image description here

enter image description here

0

There are 0 answers