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.
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.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org