lkml.org 
[lkml]   [2004]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Fw: potential /dev/urandom scalability improvement
>>>>> On Fri, 26 Mar 2004 10:49:04 -0800, Andrew Morton <akpm@osdl.org> said:

Andrew> But the start address which is fed into prefetch_range() may
Andrew> not be cacheline-aligned. So if appropriately abused, a
Andrew> prefetch_range() could wander off the end of the user's
Andrew> buffer and into a new page.

Andrew> I think this gets it right, but I probably screwed something
Andrew> up.

Please, let's not make this more complicated than it is. The
cacheline alignment doesn't matter at all. Provided prefetch_range()
is given a range of guaranteed to be valid memory, then it will be
fine. It never touches anything outside the specified range.

--david
-
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.089 / U:1.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site