When I am using “perf record -F 99 -g -p – sleep 300” during average load, I am getting the perf.data file without any problem. But when the load is high, it is crashing. The only way to get an ok result is to reduce the frequency to around 30, which is terrible.
Ideally, the rate should be high to get better results(about 997 samples/sec). Is there any solution to this.
I think that the issue might be related to the Linux kernel space. If so, what would I have to do to solve this issue?