From: Linus Torvalds <torvalds@cs.Helsinki.FI>
Subject: Re: scheduled memcpy
Date: Thu, 1 Aug 1996 11:19:38 +0300 (EET DST) [thread overview]
Message-ID: <9f7c6208cbf2d338220a5ca767f560c7.axp-list@archive.invalid> (raw)
In-Reply-To: <m0ulGrr-0001uLC@atheist.tamu.edu>
On Tue, 30 Jul 1996, Richard Henderson wrote:
>
> Thanks for the tester. I compared four versions of memcpy; the one
> from glibc, Linus', Martin's, and my own.
If you're comparing different versions, you should make sure that you compare
them with the same physical memory layout, otherwise cache effects can hide
any results (unlucky placement of pages resulting in cache trashing on some
runs, not on others). So you should either use the exact same binary that
tests all the versions on the same memory area (with cache flushes in between
tests), _or_ you'd have to do multiple runs and average them (or take the
minimum value from the runs).
If you're _really_ serious about this (very nice), you should probably unroll
the inner loop a bit (that can help hide load latencies), and you can do
stuff like pre-fetch with a "ldq_u $31,64($srcreg)" etc.
Linus
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
next parent reply other threads:[~1996-08-01 8:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m0ulGrr-0001uLC@atheist.tamu.edu>
1996-08-01 8:19 ` Linus Torvalds [this message]
1996-08-01 16:19 scheduled memcpy David Mosberger-Tang
[not found] <Pine.LNX.3.91.960801111059.10002F-100000@linux.cs.Helsinki.FI>
1996-08-01 14:32 ` Richard Henderson
1996-08-02 7:05 ` Linus Torvalds
1996-08-02 7:16 ` Linus Torvalds
[not found] <m0ul9Fj-0001uTC@atheist.tamu.edu>
1996-08-01 7:52 ` Linus Torvalds
[not found] <199607311356.PAA16694@oscar.comnets.rwth-aachen.de>
1996-07-31 19:40 ` Harald Koenig
1996-07-31 19:40 ` Harald Koenig
1996-07-31 19:40 ` Harald Koenig
1996-07-31 19:40 ` Harald Koenig
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox