lkml.org 
[lkml]   [2004]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.061 / U:0.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site