lkml.org 
[lkml]   [1998]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Thread implementations...
From
Date
>>>>> "DG" == Dean Gaudet <dgaudet-list-linux-kernel@arctic.org> writes:

DG> On 24 Jun 1998, Eric W. Biederman wrote:

>> >>>>> "RG" == Richard Gooch <Richard.Gooch@atnf.CSIRO.AU> writes:
>>
RG> If we get madvise(2) right, we don't need sendfile(2), correct?
>>
>> It looks like it from here. As far as madvise goes, I think we need
>> to implement madvise(2) as:

DG> ... note that mmap() requires a bunch of kernel structures set up to map
DG> things into the program's memory space... when in reality the program
DG> doesn't care at all about the bytes. (And then there's process address
DG> space limitations...) sendfile() and such don't have these problems, and
DG> it may be far more simple to implement sendfile() than it would be to put
DG> all the hints and such into the mm layer to get mmap() performance up to
DG> the same level.

mmap, madvise(SEQUENTIAL),write
is easy to implement. The mmap layer already does readahead, all we
do is tell it not to be so conservative.

Meanwhile to write sendfile, you need to do all of the same work
(except the page tables) without an interface to do it with.
madvise looks simpler from here.

Eric

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.118 / U:1.180 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site