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:
- is this normal ? I perf-ed other toy example(non-pub-sub), which does not have this kind of overhead showing up.
- what is the tuning trick I can do to perf my own app ? without showing the overhead of the perf itself ?