From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199608020622.IAA15093@ceres.tat.physik.uni-tuebingen.de> Date: Fri, 2 Aug 1996 10:16:40 +0300 (EET DST) From: Linus Torvalds Subject: Re: scheduled memcpy In-Reply-To: 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