Relative Content

Tag Archive for perf

Using `perf` on the host machine, the symbols of the processes in the container cannot be displayed

My goal is to use perf record on the host machine to collect the hot symbols of all processes, including those in the container.
But I found that the symbol column of the process in the container only has the address. I tried to copy the binary in the container to the host machine, keeping the directory consistent, so that the symbols can be seen. So the problem seems to be that the perf tool cannot correctly identify the binary path in the container.
Is there a solution to this problem? Because it seems unrealistic to copy all the process binaries in the container to the host machine.

what are the components of `cycle_activity.stalls_total` perf counter?

I’m benchmarking a program, and observing that cycle_activity.stalls_any is significantly higher than cycle_activity.stalls_l1_miss, which to me indicates that the cpu is spending time stalled on resources other than data access. What other resources might those be, and what perf counters correspond to them? In other words, I would expect that stalls_any = stalls_l1_miss + X + Y + .... What are X and Y?