linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Balbir Singh <bsingharora@gmail.com>
To: Michael Ellerman <mpe@ellerman.id.au>,
	Alistair Popple <alistair@popple.id.au>,
	linuxppc-dev@lists.ozlabs.org
Cc: linuxppc-dev <linuxppc-dev@ozlabs.org>,
	Paul Mackerras <paulus@samba.org>,
	 Nicholas Piggin <npiggin@gmail.com>
Subject: Re: [RFC] [PATCH] Trace TLBIE's
Date: Thu, 06 Apr 2017 16:23:25 +1000	[thread overview]
Message-ID: <1491459805.12351.8.camel@gmail.com> (raw)
In-Reply-To: <8760iiul7r.fsf@concordia.ellerman.id.au>

On Thu, 2017-04-06 at 16:03 +1000, Michael Ellerman wrote:
> Alistair Popple <alistair@popple.id.au> writes:
> 
> > On Wed, 23 Nov 2016 10:40:36 PM Balbir Singh wrote:
> > > 
> > > > But overall I guess it's OK. We'd want to do a quick benchmark to make
> > > > sure it's not adding any overhead.
> > > 
> > > OK.. I'll try and find a benchmark and run it with traces disabled.
> > 
> > For what's it's worth I didn't notice any slow down running a NAMD
> > test with tracing disabled and ~400000 tlbie's in 34s. Turning tracing
> > on could have slowed things down ever so slightly, but I didn't notice
> > as it may have just been in the noise of the benchmark I was running
> > (I wasn't specifically looking at timing, hence the vagueness of the
> > remarks).
> > 
> > Otherwise the patch worked and would be useful - I have already had to
> > setup tlbie counting/tracing several times in the last 12 months.
> > 
> > Tested-by: Alistair Popple <alistair@popple.id.au>
> 
> OK thanks.
> 
> To get it merged I'd like:
>  - always called after the barriers.
>  - no calls in loops, instead add a "count" field to the trace point and
>    when we call it multiple times in a loop we pass the count.
> 
> So you'd see entries something like:
> 
> <...>-5141  [062]  1354.486693: tlbie: lpid=0, local=1, rb=0x7b5d0ff874f11f1, rs=0, ric=0, prs=0, r=0, count=128
> 

I'll double check the patches and repost if required.

Balbir Singh.

      reply	other threads:[~2017-04-06  6:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-23  8:06 [RFC] [PATCH] Trace TLBIE's Balbir Singh
2016-11-23 10:15 ` Michael Ellerman
2016-11-23 11:40   ` Balbir Singh
2017-04-06  5:32     ` Alistair Popple
2017-04-06  6:03       ` Michael Ellerman
2017-04-06  6:23         ` Balbir Singh [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=1491459805.12351.8.camel@gmail.com \
    --to=bsingharora@gmail.com \
    --cc=alistair@popple.id.au \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=mpe@ellerman.id.au \
    --cc=npiggin@gmail.com \
    --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;
as well as URLs for NNTP newsgroup(s).