Messages in this thread | | | Date | Fri, 26 Mar 2004 13:17:36 -0800 | From | Andrew Morton <> | Subject | Re: Fw: potential /dev/urandom scalability improvement |
| |
Arjan van de Ven <arjanv@redhat.com> wrote: > > > a) execute a prefetch at addresses which are not PREFETCH_STRIDE-aligned > > and, as a consequence, > > > > b) prefetch data from the next page, outside the range of the user's > > (addr,len). > > well if you assume that cachelines (and prefetch stride) are proper > divisors of PAGE_SIZE is that still true ?
Probably not ;)
If someone does
prefetch_range(4096, 1);
on 4k pagesize, what should we do?
Issuing a single
prefetch 4090
sounds reasonable.
In that case I'm arranging for it to perform
prefetch (4096 - 32)
in that case, which seems neater. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |