From: Peter Zijlstra <peterz@infradead.org>
To: Frederic Weisbecker <fweisbec@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
Arnaldo Carvalho de Melo <acme@redhat.com>,
Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@elte.hu>,
Eric Dumazet <eric.dumazet@gmail.com>
Subject: Re: [PATCH v3] perf: Store active software events in a hashlist
Date: Fri, 16 Apr 2010 12:53:34 +0200 [thread overview]
Message-ID: <1271415214.4807.1957.camel@twins> (raw)
In-Reply-To: <1271206406-8575-1-git-send-regression-fweisbec@gmail.com>
On Wed, 2010-04-14 at 02:53 +0200, Frederic Weisbecker wrote:
>
> Each time a software event triggers, we need to walk through
> the entire list of events from the current cpu and task contexts
> to retrieve a running perf event that matches.
> We also need to check a matching perf event is actually counting.
>
> This walk is wasteful and makes the event fast path scaling
> down with a growing number of events running on the same
> contexts.
>
> To solve this, we store the running perf events in a hashlist to
> get an immediate access to them against their type:event_id when
> they trigger.
Looks good, thanks Frederic!
prev parent reply other threads:[~2010-04-16 10:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-14 0:53 [PATCH v3] perf: Store active software events in a hashlist Frederic Weisbecker
2010-04-16 10:53 ` Peter Zijlstra [this message]
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=1271415214.4807.1957.camel@twins \
--to=peterz@infradead.org \
--cc=acme@redhat.com \
--cc=eric.dumazet@gmail.com \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=paulus@samba.org \
/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