Re: "perf top -g" leaking ~300MB per second.

From: Namhyung Kim
Date: Tue Dec 30 2014 - 00:37:18 EST


Hi David and Markus,

On Sat, Dec 13, 2014 at 11:16:43AM -0700, David Ahern wrote:
> On 12/13/14 8:26 AM, Arnaldo Carvalho de Melo wrote:
> >The callchain code was done initially for 'report' and when I made 'top'
> >reuse the hist_entry code allowing 'top' to collect callchains was too
> >easy, but then we need to go thru the callchain/hists/hist_entry code to
> >make sure that they don't leak, will try to do it...
> >
>
> As I recall it is build up of the dead_threads list.

Maybe. But I guess it's because of leak of callchains..

Markus, could you please test below patch how much it affects?