[lkml]   [2003]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] TCP Zero Copy for mmapped files
> > 1) Does not handle writes that straddle multiple VMAs
> What exactly do you mean? In my test, files larger than a
> page were handled perfectly, as well.

mmap(file1 at location [a,b)
mmap(file2 at location [b,c)
write(sock, a, (size_t)(c - a));

> However, I didn't like the VM waste either, but I believe there
> is no other way.

The VM cost hurts. Badly. Imagine that the network costs ZERO. Then
the map/unmap/vm ops become the dominating term. That's why it is a
fruitless approach, it still has a practical limit which is too low.
Larry McVoy lm at
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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