lkml.org 
[lkml]   [1998]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: sendfile(2) idea (was: Thread implementations)
On Sun, Jun 28, 1998 at 09:57:30AM -0700, Linus Torvalds wrote:
>
>
> On Sun, 28 Jun 1998, Oliver Xymoron wrote:
> >
> > Is it possible to optimize the "mmap()+write()" combination instead and
> > avoid adding a new scheme?
>
> No. Think TLB and page table overhead. Think TLB coherency in SMP. Think
> virtual caches.

The suggestion was to do lazy mmap, ie you map at an
address that was going to fault anyway, don't alter the
TLB, 'just' make copy_from_user recognise what's going on.
It doesn't have to work from user space since the mmap
is never touched from user space anyway.

> mmap() _really_ really isn't the solution to zero-copy.

You are probably right, but...

--
Erik Corry

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