All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Paul Mackerras <paulus@samba.org>
Cc: linux-kernel@vger.kernel.org, Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [RFC PATCH] perf_counter: Add support for pinned and exclusive counter groups
Date: Wed, 14 Jan 2009 11:08:14 +0100	[thread overview]
Message-ID: <20090114100814.GA23835@elte.hu> (raw)
In-Reply-To: <20090114095743.GA1389@elte.hu>


* Ingo Molnar <mingo@elte.hu> wrote:

> Yeah. Such artifacts at inheritance stem from the reduction in utility 
> that comes from any exclusive-resource-usage scheme, and are expected.
> 
> For example, right now it works just fine to nest 'timec' in itself 
> [there is a reduction in statistical value if we start round-robining, 
> but there's still full utility]. If it used exclusive or pinned counters 
> that might not work.

for example, this measurement works just fine currently:

aldebaran:~/linux/linux> timec -e 1 timec -e 1 timec -e 1 make -j16 kernel/
 [...]
 Performance counter stats for 'make':

   59561.510176  task clock ticks     (msecs)

    92223201071  instructions         (events)

 Wall-clock time elapsed:  6016.011818 msecs


 Performance counter stats for 'timec':

   59562.300425  task clock ticks     (msecs)

    92223534177  instructions         (events)

 Wall-clock time elapsed:  6017.117985 msecs


 Performance counter stats for 'timec':

   59563.307588  task clock ticks     (msecs)

    92223867295  instructions         (events)

 Wall-clock time elapsed:  6018.590227 msecs

The performance counters are layered upon each other in each nested timec 
instance. In the innermost instance ls runs with 3+3 performance counters 
active at once - and it all just works, without the timec apps having any 
knowledge about each other.

And that is i think what powerful kernel abstractions are about. If we 
provide nice and useful abstractions then the hw folks will eventually 
extend the hw side resources, if users keep bumping into them.

If we structure our design around the limitations then users wont actually 
ever bump into the hw limitations in a clear-cut way - they will bump into 
our design. So they'll pester us, not the hw folks ;-)

Such details are the main difference between the perfmon design and the 
perfcounters design.

	Ingo

  reply	other threads:[~2009-01-14 10:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-14  9:24 [RFC PATCH] perf_counter: Add support for pinned and exclusive counter groups Paul Mackerras
2009-01-14  9:57 ` Ingo Molnar
2009-01-14 10:08   ` Ingo Molnar [this message]
2009-01-15  3:34   ` Paul Mackerras
2009-01-15 11:21     ` Ingo Molnar
2009-01-15  2:23 ` Paul Mackerras
2009-01-15 11:21   ` Ingo Molnar

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=20090114100814.GA23835@elte.hu \
    --to=mingo@elte.hu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulus@samba.org \
    --cc=tglx@linutronix.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.