From: Ingo Molnar <mingo@elte.hu>
To: Ling Ma <linguranus@gmail.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
Thomas Gleixner <tglx@linutronix.de>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH RFC] [X86] performance improvement for memcpy_64.S by avoid memory miss predication.
Date: Tue, 20 Oct 2009 08:33:26 +0200 [thread overview]
Message-ID: <20091020063326.GI8550@elte.hu> (raw)
In-Reply-To: <4b097b8f0910192240r254cb792gb5c3217c5bc71c8c@mail.gmail.com>
* Ling Ma <linguranus@gmail.com> wrote:
> Hi Ingo
> Thanks for your suggestion. I used 'perf stat --repeat 10
> /develop/trunk/memcpy/static' to measure before/after patch.
>
> The test program I wrote:
> for (i = 64; i < 4096 *4; i ++)
> do_memcpy(src, dst, i);
>
> when src offset is 0xbe000, dst is 0xad008, the measured result:
>
> Before patch:
> Performance counter stats for '/develop/trunk/memcpy/static' (10 runs):
> <not counted> task-clock-msecs
> <not counted> context-switches
> <not counted> CPU-migrations
> <not counted> page-faults
> <not counted> cycles
> <not counted> instructions
> <not counted> cache-references
> <not counted> cache-misses
> 37.408743997 seconds time elapsed ( +- 0.222% )
hm, on what kind of CPU have you run this? Why are those events not
counting? Is it some older, Pentium-4 alike CPU perhaps?
Ingo
prev parent reply other threads:[~2009-10-20 6:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-19 5:08 linguranus
2009-10-19 7:17 ` Ingo Molnar
[not found] ` <4b097b8f0910192240r254cb792gb5c3217c5bc71c8c@mail.gmail.com>
2009-10-20 6:33 ` Ingo Molnar [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=20091020063326.GI8550@elte.hu \
--to=mingo@elte.hu \
--cc=hpa@zytor.com \
--cc=linguranus@gmail.com \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome