[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
On Fri, 2003-01-03 at 01:01, Larry McVoy wrote:
> And the list of applications which do
> sock = socket(...);
> map = mmap(...);
> write(sock, map, bytes);
> are? There are not very many that I know of and if you look carefully
> at the bandwidth graphs in LMbench you'll see why. There is a cross
> over point where mmap becomes cheaper but it used to be around 16-64K.
> I don't know what it is now, I doubt it's moved much. I can check if
> you really want.

You may not be doing an mmap a send, its more likely to look like

page = hash(url);
memcpy(current_time, page->clock, TIMESIZE);
write(sock, page->data, page->len);

that changes the breakeven point a lot


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