From: Jiri Olsa <jolsa@redhat.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@redhat.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
"Sahasrabudhe, Sheetal" <sheetals@quicinc.com>,
Will Deacon <Will.Deacon@arm.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: perf: child events not killed on release paths, survive indefinitely
Date: Fri, 18 Jul 2014 16:42:48 +0200 [thread overview]
Message-ID: <20140718144248.GA29768@krava.redhat.com> (raw)
In-Reply-To: <20140718143157.GB17328@leverpostej>
On Fri, Jul 18, 2014 at 03:31:57PM +0100, Mark Rutland wrote:
SNIP
> > > I'm not sure what the best way of handling this is. We need to clean up
> > > the children when the last possible user of the event is gone, but it
> > > looks to me like we'd need to have a separate child_refcount or
> > > reader_refcount to be able to tell when the events are still useful and
> > > when the only references which remain are internal.
> > >
> > > Any ideas?
> >
> > Jiri was recently poking at that:
> >
> > lkml.kernel.org/r/1405079782-8139-3-git-send-email-jolsa@kernel.org
>
> Ah. I hadn't spotted that, thanks for the link.
>
> That approach (closing child events when the owner exits) doesn't seem
> to fix the general case, as long running tasks (think interactive
> debugger/profiler) could open and close many events before exiting, if
> nothing else wasting memory until it does so.
>
> My test case triggers with said patch applied (before hanging, probably
> due to the AB-BA deadlock).
yep, peter already found that
http://marc.info/?l=linux-kernel&m=140541548218652&w=2
>
> Jiri, could you add me to Cc for future versions of that series?
>
> I'll have a look and see if I can come up with something; otherwise I'm
> happy to test/review. :)
sure, and vice versa ;-)
jirka
next prev parent reply other threads:[~2014-07-18 14:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-18 12:32 perf: child events not killed on release paths, survive indefinitely Mark Rutland
2014-07-18 14:03 ` Peter Zijlstra
2014-07-18 14:31 ` Mark Rutland
2014-07-18 14:42 ` Jiri Olsa [this message]
2014-07-18 15:50 ` Mark Rutland
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140718144248.GA29768@krava.redhat.com \
--to=jolsa@redhat.com \
--cc=Will.Deacon@arm.com \
--cc=acme@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=paulus@samba.org \
--cc=peterz@infradead.org \
--cc=sheetals@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox