Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <richard@atheist.tamu.edu>
Subject: Re: scheduled memcpy
Date: Thu, 1 Aug 1996 09:32:45 -0500 (CDT)	[thread overview]
Message-ID: <m0ulynu-0001vjC@atheist.tamu.edu> (raw)
In-Reply-To: <Pine.LNX.3.91.960801111059.10002F-100000@linux.cs.Helsinki.FI>

Linus wrote:
> 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.

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.

Incidentally, "ldq_u $31, X(R)" is the universal nop -- it doesn't
even get slotted.  You have to use a real destination register.
I've been trying to figure out how fetch and fetch_m should be 
used; whether it helps or hurts to do a fetch on the source as the
first instruction and letting that work while I figure out if we're
aligned or whatnot.  The problem here is fetch talks about 512 byte
aligned blocks.

I'll go back and look at that code with your other suggestions in mind.

r~

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

       reply	other threads:[~1996-08-01 14:32 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 ` Richard Henderson [this message]
1996-08-02  7:05   ` scheduled memcpy Linus Torvalds
1996-08-02  7:16   ` Linus Torvalds
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