Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@cs.Helsinki.FI>
Subject: Re: scheduled memcpy
Date: Fri, 2 Aug 1996 10:16:40 +0300 (EET DST)	[thread overview]
Message-ID: <a66e4d958475f95a814754db473ee691.axp-list@archive.invalid> (raw)
In-Reply-To: <m0ulynu-0001vjC@atheist.tamu.edu>

On Thu, 1 Aug 1996, Richard Henderson wrote:
> 
> I've since unrolled the inner loops once, but it seemed to make very
> little difference in the timings.  I'm not sure I understand the cause
> of this.  I wouldn't have thought that the memory bug was completely
> saturated just with the single loop.

The _memory_ bus is certainly saturated even with the single loop, and
unrolling the loop shouldn't make any difference at all if you end up waiting
for memory. But unrolling the loop may make some difference when the source
is L1-cached, where the cache latency is just a few cycles and can be 
hidden by the outstanding loads on an ev5.

However, in order to make any sense, unrolling probably has to be 
instruction-scheduled so that you do the right thing in the load delays. 
And there may be interesting behaviour depending on the exact details of 
the cache (like the cache being able to satisfy two loads at the same 
time as long as the loads are not to the same cache block etc - but I 
don't think the ev5 caches do anything like that).

		Linus

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

  parent reply	other threads:[~1996-08-02  7:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.3.91.960801111059.10002F-100000@linux.cs.Helsinki.FI>
1996-08-01 14:32 ` scheduled memcpy Richard Henderson
1996-08-02  7:05   ` Linus Torvalds
1996-08-02  7:16   ` Linus Torvalds [this message]
1996-08-01 16:19 David Mosberger-Tang
     [not found] <m0ulGrr-0001uLC@atheist.tamu.edu>
1996-08-01  8:19 ` 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