From: Harald Servat <harald.servat@bsc.es>
To: Andi Kleen <andi@firstfloor.org>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: perf pebs sampling through stores + period is wrong?
Date: Fri, 21 Feb 2014 10:45:44 +0100 [thread overview]
Message-ID: <53072048.5090405@bsc.es> (raw)
In-Reply-To: <87eh2xcw4h.fsf@tassilo.jf.intel.com>
On 20/02/14 22:27, Andi Kleen wrote:
> Harald Servat <harald.servat@bsc.es> writes:
>>
>> $ perf mem -t store record -c 10000 ./a.out
>> ...
>> [perf record: Woken up 4 times to write data]
>> [perf record: Captured and wrote 0.921 MB perf.data (~40247 samples)]
>>
>> Notice that the number of samples raised by 20x, which to me seems
>> very odd because the number of stores was half, so I expected 0.5x
>> here. Or am I supposing this the wrong way?
>
> Likely you're throttling. 10k is a far too low period for such
> measurements
>
> (The cpu can do multiple stores per cycle and it runs at multiple
> Ghz. Each PMI takes many thousands of cycles. You can do the math.)
>
> -Andi
>
Dear Andi,
but then why the loads aren't throttling? There are far more loads in
the app than stores (as seen in the perf stat results), but the loads do
not throttle while store do? Of course, apps face different performance
rate as apps run and there may be situations where the number of
loads/second is either larger or smaller than stores/second, but still
it is a bit confusing why so much difference between loads & stores. I
would expect also the loads to throttle, then.
Regards.
WARNING / LEGAL TEXT: This message is intended only for the use of the
individual or entity to which it is addressed and may contain
information which is privileged, confidential, proprietary, or exempt
from disclosure under applicable law. If you are not the intended
recipient or the person responsible for delivering the message to the
intended recipient, you are strictly prohibited from disclosing,
distributing, copying, or in any way using this message. If you have
received this communication in error, please notify the sender and
destroy and delete any copies you may have received.
http://www.bsc.es/disclaimer
prev parent reply other threads:[~2014-02-21 9:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-20 11:40 perf pebs sampling through stores + period is wrong? Harald Servat
2014-02-20 21:27 ` Andi Kleen
2014-02-21 9:45 ` Harald Servat [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=53072048.5090405@bsc.es \
--to=harald.servat@bsc.es \
--cc=andi@firstfloor.org \
--cc=linux-perf-users@vger.kernel.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).