[Top] [All Lists]

Re: Promblem with PREF (prefetching) in memcpy

To: "Alan Cox" <>
Subject: Re: Promblem with PREF (prefetching) in memcpy
From: "Kevin D. Kissell" <>
Date: Fri, 4 Oct 2002 16:17:01 +0200
Cc: <>
Original-recipient: rfc822;
References: <><><><1033734968.31839.5.camel@irongate.swansea.linux> <00fe01c26ba6$04943480$10eca8c0@grendel><> <010e01c26ba8$2c9400d0$10eca8c0@grendel> <>
From: "Alan Cox" <>
> On Fri, 2002-10-04 at 14:15, Kevin D. Kissell wrote:
> > Which is excatly the point that Carsten was raising when he started this 
> > thread!
> > 
> > The question is how, i.e. throttle memcpy or thow away a "guard band" of 
> > RAM?
> The x86 code basically says
> while(over 320 bytes left)
> {
> prefetch ahead
> copy bits
> }
> while(bytes left)
> copy bits

Which is safe, simple, and efficient, but does seem to have the property
that there's a "cursed" page in the system that can be randomly allocated
and which will be curiously slow on memcopy().  That might or might not
be a problem in the embedded application space.


            Kevin K.

<Prev in Thread] Current Thread [Next in Thread>