linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dennis Gnad <dennis.gnad@kit.edu>
To: Vince Weaver <vincent.weaver@maine.edu>, David Ahern <dsahern@gmail.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: Understanding timestamps in perf.data
Date: Thu, 3 Sep 2015 09:19:24 +0200	[thread overview]
Message-ID: <55E7F47C.2000403@kit.edu> (raw)
In-Reply-To: <alpine.DEB.2.20.1509021256550.575@vincent-weaver-1.umelst.maine.edu>

On 02.09.2015 19:00, Vince Weaver wrote:
> They might not be relevant for profiling, but some people use the perf
> counters for other tasks.
>
> For example, when measuring phase plot behavior for a system, it would be
> great if you'd be able to say I want a snapshot sample of the cycle and
> instruction counters every 10ms, and then you can plot the CPI behavior of
> the system.

Yeah, actually I wasn't asking about profiling, sorry if this was 
misunderstood for some reason. I am looking into something you could 
call 'workload characterization' and really need the absolute 
performance counter values, as they could for example correlate with the 
resulting temperature or energy-optimal frequency of the cpu/system, 
depending on its specific workload.

> as far as I can tell you can't really do this with perf (the -I option
> only lets you get down to 100ms).

Which -I option do you mean? At least it's not available for my perf 
record (kernel 3.16).

> I ended up trying to write a custom program to do this, but it turns out
> the perf sampling interface has really high overhead when doing this, and
> the interrupt throttle kicks in which makes it useless.

Are you talking about the kernel interface or some interface of the perf 
tool? I think I need a minimum of 100Hz or 1000Hz, but it wouldn't be a 
problem if this is just collected in some kernel shared memory and in 
the end copied to userspace, or at a lower frequency.

> It's a shame, as the old "pfmon" tool that came with perfmon2 could do
> this kind of measurement very easily.
>
> Vince
>

This can not be used with current kernels, I guess? I tried "oprofile" 
before, which can show absolute counts, but instead doesn't support any 
timestamps.

So, it seems there is nothing available that can do what I need. Maybe 
some of you can still recommend where I could start looking next or go 
into more detail? Kernel, perf, oprofile, libpapi are the things that 
come to my mind. If the kernel interface is really the bottleneck, it 
probably has to be there.

Thanks for your help so far,
Dennis

  parent reply	other threads:[~2015-09-03  7:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-02  9:28 Understanding timestamps in perf.data Dennis Gnad
2015-09-02 13:43 ` David Ahern
2015-09-02 15:18   ` Dennis Gnad
2015-09-02 16:44     ` David Ahern
2015-09-02 17:00       ` Vince Weaver
2015-09-02 17:00         ` David Ahern
2015-09-03  7:19         ` Dennis Gnad [this message]
2015-09-03 12:52           ` Vince Weaver
2015-09-03 14:46             ` Dennis Gnad
2015-09-03 15:17               ` Vince Weaver
2015-09-02 19:23       ` Andi Kleen
2015-09-02 19:25         ` David Ahern
2015-09-03  9:50         ` Dennis Gnad

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=55E7F47C.2000403@kit.edu \
    --to=dennis.gnad@kit.edu \
    --cc=dsahern@gmail.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=vincent.weaver@maine.edu \
    /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).