From: Segher Boessenkool <segher@koffie.nl>
To: Dave Engebretsen <engebret@vnet.ibm.com>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: RFC: Performance Monitor Counters device
Date: Tue, 17 Sep 2002 06:59:16 +0200 [thread overview]
Message-ID: <3D86B6A4.7D77B588@koffie.nl> (raw)
In-Reply-To: 3D85F54F.5C0D9187@vnet.ibm.com
Dave Engebretsen wrote:
>
> Segher Boessenkool wrote:
> >
> > David Engebretsen wrote:
>
> > The 64-bit idea is very very nice :) That'll allow a program to just set
> > the counters at the start of eexecution, and only read them again when it's
> > finished. Can't get much simpler ;)
>
> Of course this depends on what you are trying to achive. For profiling
> or when timeslicing the counters, this is not needed generally. If you
> want to just collect a fixed set of values over a long run, it is
> usefull. This however is not the mode I have generally been finding
> useful.
Well, it's an easy way to see if a change in a program actually did help ;)
Note that the 32-bit (31, actually) counters can already overflow in about
one or two seconds.
> > I don't want to have the profiling buffers in kernel space, as they can very well
> > be bigger than physical memory... On the other hand, it might be needed for
> > performance (or to avoid races) if doing very fine-grained profiling. I think
> > I'll just sneak out of this by not allowing so fine-grained stuff ;)
>
> Not sure I follow here - allowing a profiling buffer which is even a
> fraction of total system memory will significantly perturb the data.
Not necessarily, like when counting number of insns completed, or something
like that. But for most things, yes of course cache effects will be huge
with a profiling buffer >= 10% of L1 cache or so. Even more so with bigger
buffers.
Cheers,
Segher
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2002-09-17 4:59 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-12 20:03 RFC: Performance Monitor Counters device Segher Boessenkool
2002-09-12 9:52 ` Benjamin Herrenschmidt
2002-09-12 21:45 ` Segher Boessenkool
2002-09-12 10:25 ` Benjamin Herrenschmidt
2002-09-14 11:28 ` Segher Boessenkool
2002-09-15 12:50 ` samuel
2002-09-16 12:38 ` Benjamin Herrenschmidt
2002-09-16 23:50 ` Segher Boessenkool
2002-09-13 3:32 ` Paul Mackerras
2002-09-14 11:36 ` Segher Boessenkool
2002-09-13 10:04 ` Anton Blanchard
2002-09-14 11:39 ` Segher Boessenkool
2002-09-13 22:21 ` David Engebretsen
2002-09-14 11:22 ` Segher Boessenkool
2002-09-16 15:14 ` Dave Engebretsen
2002-09-17 4:59 ` Segher Boessenkool [this message]
2002-09-14 4:41 ` Ethan Benson
2002-09-15 1:37 ` Rob Latham
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=3D86B6A4.7D77B588@koffie.nl \
--to=segher@koffie.nl \
--cc=engebret@vnet.ibm.com \
--cc=linuxppc-dev@lists.linuxppc.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).